Skip to content

Clean up buildkite_step.py: fix import, remove dead code#321

Open
khluu wants to merge 1 commit intomainfrom
cleanup/buildkite-step-small-fixes
Open

Clean up buildkite_step.py: fix import, remove dead code#321
khluu wants to merge 1 commit intomainfrom
cleanup/buildkite-step-small-fixes

Conversation

@khluu
Copy link
Copy Markdown
Collaborator

@khluu khluu commented Mar 29, 2026

Summary

  • Move import re from inside a for-loop body to module level
  • Fix _get_step_plugin() to compare against DeviceType.H100 / DeviceType.A100 enum members instead of their .value strings
  • Remove leftover debug print(variables_to_inject) in convert_group_step_to_buildkite_step()
  • Remove unused list_file_diff parameter and dead if step.label.startswith(":docker:") branch in _create_block_step()
  • Remove dead amd_block_step = None assignment and always-true if amd_block_step: guard
  • Add pytest tests for _create_block_step() and _generate_step_key()

Test plan

  • python3 -m pytest tests/test_buildkite_step.py -v -- 17 tests pass
  • Verify no functional regressions in pipeline generation

🤖 Generated with Claude Code

…g print

- Move `import re` from inside loop to module level
- Fix inconsistent DeviceType .value comparisons in _get_step_plugin
- Remove leftover debug print(variables_to_inject)
- Remove unused parameter and dead branch in _create_block_step
- Remove dead amd_block_step = None assignment and always-true guard

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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