Skip to content

[9.4] [ML] Fix missing import os in PR pipeline generator - #3196

Merged
edsavage merged 1 commit into
elastic:9.4from
edsavage:fix/9.4-pipeline-import-os
Sep 16, 2026
Merged

edsavage merged 1 commit into
elastic:9.4from
edsavage:fix/9.4-pipeline-import-os

Conversation

@edsavage

Copy link
Copy Markdown
Contributor

Summary

pipeline.json.py uses os.environ.get() inside the ci:run-qa-tests code path but was missing import os. Any PR carrying the ci:run-qa-tests label triggered a NameError that crashed the pipeline generator in ~25s, blocking the entire Buildkite build before any step ran.

Discovered via backport PR #3194, whose ci:run-qa-tests label (inherited from the original) entered this path for the first time on 9.4.

Only 9.4 is affected — main, 9.5, and 9.99 already have import os; 9.3 and earlier don't use os.environ in this script at all.

Test plan

  • A companion PR against main (add/pr-pipeline-tests) adds dev-tools/unittest/test_pr_pipeline.py, which exercises every os.environ-touching code path and will be backported to active branches including 9.4.

🤖 Generated with Claude Code

pipeline.json.py uses os.environ.get() inside the ci:run-qa-tests code path
but was missing 'import os'. Any PR carrying the ci:run-qa-tests label
triggered a NameError that crashed the pipeline generator in ~25s, blocking
the entire Buildkite build before any step ran.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@elasticsearchmachine

Copy link
Copy Markdown

Pinging @elastic/ml-core (Team:ML)

@edsavage
edsavage merged commit b4a8c83 into elastic:9.4 Sep 16, 2026
15 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants