Skip to content

Update claude gazelle skill to add required tags for per platform tests - #49274

Closed
aiuto wants to merge 18 commits into
mainfrom
aiuto/gaz_skill
Closed

Update claude gazelle skill to add required tags for per platform tests#49274
aiuto wants to merge 18 commits into
mainfrom
aiuto/gaz_skill

Conversation

@aiuto

@aiuto aiuto commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Updates an AI agent skill to create a new BUILD.bazel file so that go_test use a gotag that matches the platform we are running the test on.

Motivation

We have a lot of code that is os specific, and our tests are written to expect that they always run with the correct tag.

Describe how you validated your changes

Learned this from experience. Many of our early attempts at letting claude do bazel conversions ended up with PRs that would fail tests on specific platforms.

@aiuto
aiuto requested a review from a team as a code owner April 13, 2026 17:32
@aiuto aiuto added changelog/no-changelog No changelog entry needed qa/no-code-change No code change in Agent code requiring validation labels Apr 13, 2026
@dd-octo-sts dd-octo-sts Bot added the internal Identify a non-fork PR label Apr 13, 2026
@github-actions github-actions Bot added the short review PR is simple enough to be reviewed quickly label Apr 13, 2026
@aiuto aiuto added the ask-review Ask in slack required teams to review this PR label Apr 13, 2026
@aiuto

aiuto commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator Author

/merge -@ 11am UTC

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Apr 13, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-04-13 17:34:20 UTC ℹ️ Start processing command /merge -@ 11am UTC


2026-04-13 17:34:22 UTC ℹ️ MergeQueue: merge request scheduled for Tue, 14 Apr 2026 11:00:00 UTC

Pull Request scheduled to be added to the queue on Tue, 14 Apr 2026 11:00:00 UTC


2026-04-14 11:00:31 UTC ℹ️ MergeQueue: waiting for PR to be ready

This merge request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
It will be added to the queue as soon as checks pass and/or get approvals. View in MergeQueue UI.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2026-04-14 12:49:57 UTC ⚠️ MergeQueue: This merge request was unqueued

tony.aiuto@datadoghq.com unqueued this merge request

@dd-octo-sts

dd-octo-sts Bot commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Files inventory check summary

File checks results against ancestor 6dfc3af2:

Results for datadog-agent_7.79.0~devel.git.856.e01a561.pipeline.108155849-1_amd64.deb:

No change detected

- When **`bazel test` / `bazel build` fails** in a way that points to wrong or missing symbols from tag-gated sources — add the needed tags on that package’s `go_test` (and/or `go_library`) so the compiler enables the same constraints.
- When you follow the **`//go:build test`** pattern below (library sources with `test` in the build line) — use `gotags = ["test"] # keep` on the embedding `go_test`.
- For **k8s-style tags** (`kubeapiserver`, `kubelet`, etc.) — add `gotags` **per package** only when that package’s **sources or tests** are actually behind those `//go:build` lines (including tag-gated `*_test.go`). Do not add them speculatively to every test under a tree.
- For **OS-specific test files** (e.g. `poller_darwin_test.go`, `poller_linux_test.go`) that rely on the platform being set as a build tag — use a `select()` to pass the right OS tag at test time:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need it, GOOS and GOARCH do it for us on the toolchain level. I ran the tests to confirm that this select is a no-op

@aiuto aiuto Apr 14, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the weird thing is that I see different behaviors.
Next time I get a pure windows library in a migration PR, I'll reduce it down to that as a demonstration
I'll move to draft for now.

@github-actions github-actions Bot added medium review PR review might take time and removed short review PR is simple enough to be reviewed quickly labels Apr 14, 2026
@aiuto

aiuto commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator Author

/merge -c

@gh-worker-devflow-routing-ef8351

gh-worker-devflow-routing-ef8351 Bot commented Apr 14, 2026

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2026-04-14 12:49:52 UTC ℹ️ Start processing command /merge -c

@aiuto
aiuto marked this pull request as draft April 14, 2026 12:50
@dd-octo-sts

dd-octo-sts Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had activity in the past 15 days.

It will be closed in 30 days if no further activity occurs. If this pull request is still relevant, adding a comment or pushing new commits will keep it open. Also, you can always reopen the pull request if you missed the window.

Thank you for your contributions!

@dd-octo-sts dd-octo-sts Bot added the stale label May 2, 2026
@dd-octo-sts

dd-octo-sts Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

This pull request was automatically closed because it has been stale for 15 days with no activity.

If this pull request is still relevant, please reopen it or create a new pull request with updated information.

Thanks!

@dd-octo-sts dd-octo-sts Bot closed this Jun 1, 2026
@aiuto
aiuto deleted the aiuto/gaz_skill branch June 2, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ask-review Ask in slack required teams to review this PR auto-closed changelog/no-changelog No changelog entry needed internal Identify a non-fork PR medium review PR review might take time qa/no-code-change No code change in Agent code requiring validation stale team/agent-devx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants