Skip to content

Conversation

@crobert-1
Copy link
Member

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.

Link to tracking issue

Flakiness introduced because we forgot to add the Run Windows label in just the last couple of days:
#38813
#38842

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.

@crobert-1 crobert-1 requested a review from a team as a code owner March 21, 2025 17:37
@crobert-1 crobert-1 requested a review from MovieStoreGuy March 21, 2025 17:37
done

if [[ $LABELS =~ "receiver/sqlserver" ]]; then
LABELS+=",Run Windows"
Copy link
Member Author

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 gh CLI, 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.

Copy link
Member

@songy23 songy23 left a 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

@songy23 songy23 added the ci-cd CI, CD, testing, build issues label Mar 21, 2025
Copy link
Contributor

@atoulme atoulme left a 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.

@crobert-1
Copy link
Member Author

crobert-1 commented Mar 21, 2025

may be worth opening a PR to sqlserver receiver to test after this is merged

Good idea, I can open a no-op PR to test once it's merged 👍

@songy23 songy23 merged commit e8f329b into open-telemetry:main Mar 21, 2025
181 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 21, 2025
@crobert-1
Copy link
Member Author

It worked 👍

@crobert-1 crobert-1 deleted the run_windows_sqlserver_receiver branch March 21, 2025 18:48
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd CI, CD, testing, build issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants