-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[chore][CI/CD] Always run windows tests for receiver/sqlserver PRs #38863
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
[chore][CI/CD] Always run windows tests for receiver/sqlserver PRs #38863
Conversation
| done | ||
|
|
||
| if [[ $LABELS =~ "receiver/sqlserver" ]]; then | ||
| LABELS+=",Run Windows" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You can add the same label multiple times in the
ghCLI, it will only get added in GitHub once (in other words, adding multiple times is the same operation as once, it's an idempotent operation.) - Tested on another repo, adding labels with spaces works without issue.
- Tested on another repo, there must not be a space after the delimiting comma.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be worth opening a PR to sqlserver receiver to test after this is merged
atoulme
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bit of a hack to put this in the codeowners script but I'd rather have it.
Good idea, I can open a no-op PR to test once it's merged 👍 |
…pen-telemetry#38863) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description The SQL Server receiver heavily depends on Windows functionality, and every change should be tested on Windows. Failing tests are often hit as a result of forgetting to add the `Run Windows` label. I'm sure there's a better way to do this logic that would allow for adding more components to the list of components that require `Run Windows`, so I'm happy to hear feedback. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Flakiness introduced because we forgot to add the `Run Windows` label in just the last couple of days: open-telemetry#38813 open-telemetry#38842 <!--Describe what testing was performed and which tests were added.--> #### Testing Tested the regex matching, it worked with `receiver/sqlserver` as exact match, in the middle of a string, beginning of string, end of string, and not in string.
Description
The SQL Server receiver heavily depends on Windows functionality, and every change should be tested on Windows. Failing tests are often hit as a result of forgetting to add the
Run Windowslabel.I'm sure there's a better way to do this logic that would allow for adding more components to the list of components that require
Run Windows, so I'm happy to hear feedback.Link to tracking issue
Flakiness introduced because we forgot to add the
Run Windowslabel in just the last couple of days:#38813
#38842
Testing
Tested the regex matching, it worked with
receiver/sqlserveras exact match, in the middle of a string, beginning of string, end of string, and not in string.