Skip to content
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

team: embed TEAMS.yaml #113835

Merged
merged 1 commit into from
Nov 6, 2023
Merged

team: embed TEAMS.yaml #113835

merged 1 commit into from
Nov 6, 2023

Conversation

RaduBerinde
Copy link
Member

The internal/team code looks for TEAMS.yaml in the repo. This
means that roachtest must be run in the tree (and if the branches
don't match, obscure errors could happen in principle).

This commit moves to embedding the data using go:embed. Because
go:embed doesn't allow embedding of files outside the package, we
also have to add a generation rule to copy the file.

Fixes: #111661
Release note: None

The `internal/team` code looks for `TEAMS.yaml` in the repo. This
means that `roachtest` must be run in the tree (and if the branches
don't match, obscure errors could happen in principle).

This commit moves to embedding the data using `go:embed`. Because
`go:embed` doesn't allow embedding of files outside the package, we
also have to add a generation rule to copy the file.

Fixes: cockroachdb#111661
Release note: None
@RaduBerinde RaduBerinde requested review from a team as code owners November 4, 2023 21:23
@RaduBerinde RaduBerinde requested review from srosenberg and removed request for a team November 4, 2023 21:23
Copy link

blathers-crl bot commented Nov 4, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@RaduBerinde
Copy link
Member Author

CC @rickystewart for the bazel which involved a lot of trial-and-error.

@RaduBerinde
Copy link
Member Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 6, 2023

Build succeeded:

@craig craig bot merged commit 70c8f60 into cockroachdb:master Nov 6, 2023
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

internal/team: embed TEAMS.yaml
3 participants