Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

bazel: transcribe test ownership to bazel tags#62664

Merged
Strum355 merged 7 commits into
mainfrom
nsc/ciobsv-test-tags
May 16, 2024
Merged

bazel: transcribe test ownership to bazel tags#62664
Strum355 merged 7 commits into
mainfrom
nsc/ciobsv-test-tags

Conversation

@Strum355

@Strum355 Strum355 commented May 14, 2024

Copy link
Copy Markdown
Contributor

Transcribes from https://docs.google.com/spreadsheets/d/1Vu-Nk0dSCDJb_1cffbd29sr3NQkhJAmVAU9x_M7TnTU/edit#gid=0 into Bazel tags as part of #60455. Includes a quick script dev/check-test-ownership.sh that reports the % of tests that have an owning team assigned to them.
We exclude certain types of tests due to their irrelevance (mostly things in e.g. ./.aspect, ./docs and diff tests that just check to make sure generated files are as expected).
Once we have this data being fed into BigQuery, we can start including it in our Redash dashboards.
A follow-up PR will be required that checks in CI to make sure we don't fall below the 70% ownership threshold outlined by the OKR.

Test plan

Not changing any logic about anything, just metadata about the build

@Strum355 Strum355 requested a review from a team May 14, 2024 14:34
@Strum355 Strum355 self-assigned this May 14, 2024
@cla-bot cla-bot Bot added the cla-signed label May 14, 2024
@graphite-app

graphite-app Bot commented May 14, 2024

Copy link
Copy Markdown

(Notifying @sourcegraph/source of a change that affects gitserver)

@graphite-app graphite-app Bot added the team/source Tickets under the purview of Source - the one Source to graph it all label May 14, 2024
@eseliger

Copy link
Copy Markdown
Member

I wonder if this could be implemented using owner/codeowner files or so. That way we would get Own data in Sourcegraph on tests as well 😬

@Strum355 Strum355 force-pushed the nsc/ciobsv-test-tags branch from 5e4f696 to b581c93 Compare May 16, 2024 14:17
@Strum355

Copy link
Copy Markdown
Contributor Author

I wonder if this could be implemented using owner/codeowner files or so. That way we would get Own data in Sourcegraph on tests as well 😬

I had originally looked into that, but it operates at a different level than we'd want and there doesn't appear to be the same level of query-ability vs bazel query. Having it as part of bazel tags gives us a 1:1 relationship with the data that we consume from bazel for test timings/cache hits/etc, and an easy way to find what test targets aren't covered. We also get to avoid checking out sg/sg in https://buildkite.com/sourcegraph/devx-build-metrics for every data upload we perform

@Strum355 Strum355 merged commit 9b6ba77 into main May 16, 2024
@Strum355 Strum355 deleted the nsc/ciobsv-test-tags branch May 16, 2024 14:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed di/ci-obs team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants