Repository navigation
test(otel,prometheus): binary tests pass with the CI binaries set, and counts match main (#3369) - #3590
Merged
Conversation
…OL and AMTOOL set, the SLO promtool run moves out of the unit budget, and the example and composite counts match main (#3369)
This was referenced Oct 6, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3369
These fix the
test-binariesjob and test-shard 1 on main. Only test files change.lexicons/prometheus/src/import/roundtrip.test.ts: the observe-converge example addsobserve-converge/rules.ymlto the built files, so it is now in the expected list. Its file round-trips like the others, so it stays in the test rather than being excluded.lexicons/prometheus/src/op/slo-rule-tests.test.ts: the promtool run over the generated files took 17.8s on the runner, over the 15s unit budget. The twopromtool test rulesruns now happen in abeforeAll, which the budget does not count. The assertion stays in a test, so the job still fails if the run is skipped.lexicons/prometheus/src/op/activities/promtool.test.tsandlexicons/otel/src/op/activities/otelcol.test.ts: the tests asserted the default binary name. CI sets$AMTOOLand$OTELCOL_BIN, which take precedence over the default. Both tests now passbinexplicitly.packages/core/src/cli/commands/check-lexicon.test.ts: otel now has five composites, so the expected count is 5.node scripts/depcheck.mjs(zod undeclared in otel and prometheus) andnode scripts/lint-docs-sentences.mjs(lint-rules/audit-rules.mdx) also fail on main. #3589 fixes both, so this PR leaves them alone.