ci: publish tests with Maester Bot - #2068
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe publishing workflow authenticates with a GitHub App, checks out ChangesTest repository publishing
Estimated code review effort: 3 (Moderate) | ~15–30 minutes Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/publish-tests.yaml:
- Around line 89-90: Update the publishing workflow around the commit and git
push commands to handle concurrent publishers: either serialize runs that update
main or fetch the latest main, rebase the generated commit, and retry a
non-fast-forward push. Preserve the existing commit message and ensure the
workflow does not fail solely because another run advanced main first.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 59799328-1e14-45ff-836b-6b02d6a49e3c
📒 Files selected for processing (1)
.github/workflows/publish-tests.yaml
Summary
cpina/github-action-push-to-another-repositorywith official GitHub actions and explicit Git commands.maester365/maester-testswith onlycontents: write.tests/, and push only when the generated tree changed.maester-bot[bot]and remove the workflow's dependency on the permanent SSH deploy key.Why
The existing publishing action is no longer maintained for feature development and hides a small clone/copy/commit/push operation behind a third-party container. Maester already has a GitHub App with the required contents permission, so using its short-lived repository-scoped token reduces credential lifetime and makes the publishing behavior visible in this repository.
GitHub App access
The Maester Bot installation already includes
maester365/maester-testsand grants code write access. The workflow further limits the minted token to that repository andcontents: write.After a successful manual
publish-testsrun, the now-unusedSSH_DEPLOY_KEYrepository secret can be removed separately.Validation
git diff --check.github/workflows/publish-tests.yamlsuccessfully as YAML.bash -n.maester365/maester-tests; the resulting destinationtests/tree exactly matched the source tree.workflow_dispatch.Summary by CodeRabbit