-
Notifications
You must be signed in to change notification settings - Fork 10
Add new release status trait #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Could you please update tests too? Any particular reason that one status captures all |
This was mostly due to the naming conventions of the packages, how there's packages labeled preview, packages labled rc1 and packages labled rc2. I don't mind switching to simply just say if the .NET version is GA or non-GA. |
There is a benefit to the "preview, rc1, rc2" distinction in that tests can be set skip preview versions while still running on rc1 or rc2 and vice versa but realistically due to the progression of .NET packages I doubt there will ever be a use case for that. |
I see. Do you think it makes sense to combine |
Makes sense to me. I've added this change in the latest push. |
Currently for an upcoming release, we can either let the test fail, or we can add @nicrowe00 why do we need something in addition? can you explain the use-case? |
c4b64dc
to
f59bf30
Compare
@tmds This is for tests that aren't expected to pass while we're in the preview phase but are expected to pass once the new version of .NET is released. Setting it to skip based on this rather than version=10 means the test will automatically start working and passing again after release and there is no need to update the test traits in another PR. |
Adding a new trait to the test runner that reports whether the version of .NET being tested is a released, preview, rc1 or rc2 version of .NET. Trait appears in the output as 'status='. To skip tests using this trait, in the tests JSON file enter: status=released status=preview status=rc Also updating test matrix
Can you give some examples? |
The current example for this is dotnet-monitor-works: redhat-developer/dotnet-regular-tests#380. |
We want to validate dotnet monitor works when there is a package available. We should avoid tests that only run against released versions. When they fail, they block the release until they are manually waived. I think this trait is enabling something we should avoid. |
If the package becomes available for it then yes, obviously we should set it to run again. |
Personally, I don't mind having these tests continue to fail until the underlying issue is resolved. Have we requested Microsoft to release a preview package? Since @omajid disabled the test, I expect he'll follow up on when the test needs to be re-enabled. I think we should avoid tests that run only against released versions. They turn into bad surprises. |
dotnet-monitor-works was re-enabled: redhat-developer/dotnet-regular-tests#384. I'm going to close this PR as I don't think it makes sense to pursue this feature further at this time. |
Adding a new trait to the test runner that reports whether the version of .NET being tested is a released, preview, rc1 or rc2 version of .NET.
Trait appears in the output as 'status='.
To skip tests using this trait, in the tests JSON file enter:
status=released
status=preview
status=rc