ci: format release please generated files#438
Conversation
📝 WalkthroughWalkthroughThe release-please workflow now extracts the release PR head branch, checks it out with RELEASE_PLEASE_TOKEN, sets up pnpm/Node 22 and syncs versions, runs Prettier on generated files, and—if files changed—commits and pushes the formatting changes back to the release PR; tests assert these steps and that ChangesRelease automation formatting workflow
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
0f5fab2 to
d8f6869
Compare
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/release-please.yml:
- Around line 83-88: The Prettier invocation in the "Format Release Please
generated files" step currently ignores the repository's .prettierignore; update
the run command that calls pnpm exec prettier (the invocation in that step) to
include the same ignore path used by repo tooling (add --ignore-path
.prettierignore) so CI respects the repo formatting contract when writing
.release-please-manifest.json and apps/desktop/src-tauri/tauri.conf.json.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 3ce46228-379f-4c0f-a4b7-1b14ad6a20ca
📒 Files selected for processing (2)
.github/workflows/release-please.ymlapps/desktop/tests/ci/release-workflow-environments.test.ts
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: CodeQL (rust)
- GitHub Check: Desktop E2E Smoke (Windows)
🧰 Additional context used
🪛 zizmor (1.25.2)
.github/workflows/release-please.yml
[error] 73-73: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): this step
(cache-poisoning)
Summary
Cargo.lock, run Prettier on generated release files, and push fixes back only when needed.Related issue or RFC
Related to #410.
AI assistance disclosure
Testing evidence
pnpm.cmd --filter @touchai/desktop test:unit tests/ci/release-workflow-environments.test.tspassed.pnpm.cmd --filter @touchai/desktop test:unit tests/ci/release-codeowners-policy.test.tspassed.pnpm.cmd --filter @touchai/desktop test:typecheckpassed before later targeted release-policy updates.pnpm.cmd run format:checkpassed.pnpm check:rustandpnpm type:check; both completed, with existingtry_lock_mutexRust warnings.pnpm test:prwas not run locally because this PR only changes release workflow policy and the targeted CI policy/type/format checks cover the changed surface; full CI is running on the PR.pnpm test:e2ewas not run locally because this change does not touch desktop runtime, UI, or E2E paths.TDD: yes. The release workflow policy test was added first and observed failing before the workflow implementation was added.
Risk notes
AgentService, runtime, MCP, or schema impact: none.Cargo.lockneeds the released package version synced.Screenshots or recordings
Not applicable; CI workflow-only change.
Checklist
[WIP]or similar title prefixes.AgentService, runtime, MCP, or schema boundaries, there is an accepted RFC.pnpm test:prfor this code PR, or this is a docs-only change.pnpm test:coverage:rustor relied on CI coverage evidence.pnpm test:e2elocally or documented why CI is the first valid proof.