Skip to content

test(otel,prometheus): binary tests pass with the CI binaries set, and counts match main (#3369) - #3590

Merged
lex00 merged 1 commit into
mainfrom
gucci6/c3-fix-binaries
Oct 6, 2026
Merged

lex00 merged 1 commit into
mainfrom
gucci6/c3-fix-binaries

Conversation

@lex00

@lex00 lex00 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Part of #3369

These fix the test-binaries job and test-shard 1 on main. Only test files change.

  • lexicons/prometheus/src/import/roundtrip.test.ts: the observe-converge example adds observe-converge/rules.yml to 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 two promtool test rules runs now happen in a beforeAll, 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.ts and lexicons/otel/src/op/activities/otelcol.test.ts: the tests asserted the default binary name. CI sets $AMTOOL and $OTELCOL_BIN, which take precedence over the default. Both tests now pass bin explicitly.
  • 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) and node scripts/lint-docs-sentences.mjs (lint-rules/audit-rules.mdx) also fail on main. #3589 fixes both, so this PR leaves them alone.

…OL and AMTOOL set, the SLO promtool run moves out of the unit budget, and the example and composite counts match main (#3369)
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.

1 participant