◐ Shell
clean mode source ↗

Ci gen opcode metadata by ShaharNaveh · Pull Request #6677 · RustPython/RustPython

📝 Walkthrough

Walkthrough

Two GitHub Actions workflows are updated to include automatic opcode metadata generation: the CI linting phase now validates metadata is current, while the auto-format PR workflow executes the metadata generation script.

Changes

Cohort / File(s) Summary
Opcode Metadata Generation Workflow Integration
.github/workflows/ci.yaml, .github/workflows/pr-auto-commit.yaml
Adds opcode metadata generation to CI workflows. The ci.yaml introduces a validation step that ensures Lib/_opcode_metadata is updated and fails the build if changes are detected. The pr-auto-commit.yaml adds execution of scripts/generate_opcode_metadata.py in the auto-format pipeline.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Hoppy scripts now synchronize the bytes,
Metadata stays fresh through workflow nights,
CI checks and auto-format align,
Opcodes march in perfect design! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'Ci gen opcode metadata' is vague and uses abbreviated terms ('Ci gen') that don't clearly convey the specific change, making it unclear to someone scanning PR history. Use a more descriptive title like 'Add opcode metadata generation to CI workflows' to clearly indicate the main change.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed The PR addresses the linked issue #6676 by adding the opcode metadata generation step to the auto-format workflow, and additionally adds the step to the lint CI workflow for enforcing up-to-date metadata.
Out of Scope Changes check ✅ Passed The changes are focused on CI workflow updates and opcode metadata generation as specified in the linked issue; no unrelated out-of-scope changes are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.