aspnet / Configuration

[Archived] Interfaces and providers for accessing configuration files. Project moved to https://github.com/aspnet/Extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Test failure: ThrowsWhenNotOptionalAndDirectoryDoesntExist

aspnet-hello opened this issue · comments

This test fails occasionally with the following error:

Assert.Contains() Failure
Not found: The directory name
In value:  The path must be absolute.
Parameter name: root
   at Microsoft.Extensions.Configuration.KeyPerFile.Test.KeyPerFileTests.ThrowsWhenNotOptionalAndDirectoryDoesntExist() in /_/test/Config.KeyPerFile.Test/KeyPerFileTests.cs:line 31

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.

This test failed on master.

CC @Eilon (because the bot doesn't know who else to pick)

This issue was made automatically. If there is a problem contact ryanbrandenburg.

Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

  • Is this actually a flaky test?

    • No, this is a regular test failure, fix the test/product (TODO: Link to commit/PR)
    • Yes, proceed below...
  • Is this test failure caused by product code flakiness? (Either this product, or another product this test depends on.)

    • File a bug against the product (TODO: Link to other bug)
    • Is it possible to change the test to avoid the flakiness?
      • Yes? Go to the "Change the test!" section.
      • No?
        • Disable the test (TODO: Link to PR/commit)
        • Wait for other bug to be resolved
        • Wait for us to get build that has the fix
        • Re-enable our test (TODO: Link to PR/commit)
        • Close this bug
  • Is it that the test itself is flaky? This includes external transient problems (e.g. remote server problems, file system race condition, etc.)

    • Is there is a way to change our test to avoid this flakiness?
      • Yes? Change the test!
        • Change the test to avoid the flakiness, for example by using a different test strategy, or by adding retries w/ timeouts (TODO: Link to PR/commit)
        • Run the test 100 times locally as a sanity check.
        • Close this bug
      • No?
        • Is there any logging or extra information that we could add to make this more diagnosable when it happens again?
          • Yes?
            • Add the logging (TODO: Link to PR/commit)
          • No?
            • Delete the test because flaky tests are not useful (TODO: Link to PR/commit)

This comment was made automatically. If there is a problem contact ryanbrandenburg.

Fixed by 5d87c79 waiting til fix is propagated before closing issue

ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

Can we backport this test fix to 2.2?

ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on 2.2.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

@natemcmaster what's the best way for me to backport? Just reapply the changes or should I try to cherrypick the single commit over?

I usually try a soft cherry-pick to backport changes. git cherry-pick --no-commit

Fix backported, will wait a day or so to make sure no more bot reports before closing

ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.
ThrowsWhenNotOptionalAndDirectoryDoesntExist failed with about the same error on master.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

Closing to see if its fixed