[gha] Allow QA deployments to be manually triggered#4227
[gha] Allow QA deployments to be manually triggered#4227imnasnainaec wants to merge 2 commits intomasterfrom
Conversation
📝 WalkthroughWalkthroughAdded manual Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GitHubActions as GitHub Actions
participant Workflow as Workflow (deploy_qa / installer_release)
participant Jobs as Jobs (build/make/upload/deploy)
User->>GitHubActions: trigger via push or workflow_dispatch (with input)
GitHubActions->>Workflow: start workflow event (push or workflow_dispatch)
Workflow->>Jobs: evaluate job conditions (event_name, inputs)
alt Conditions met (push or confirmed dispatch)
Jobs->>Jobs: run dependent jobs (build -> deploy/make -> upload)
else Conditions not met
Jobs-->>User: skip gated jobs
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4227 +/- ##
=======================================
Coverage 75.94% 75.94%
=======================================
Files 303 303
Lines 11352 11352
Branches 1407 1407
=======================================
Hits 8621 8621
Misses 2330 2330
Partials 401 401
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/installer_release.yml (1)
82-82: Consider explicit success check forworkflow_runevent for clarity.The condition relies implicitly on the
needs: make_installerdependency to prevent uploads when the upstream workflow fails (sincemake_installerchecksgithub.event.workflow_run.conclusion == 'success'). While functionally correct, an explicit check here would be more defensive and self-documenting.💡 Optional: Add explicit success check
- if: github.event_name == 'workflow_run' || (github.event_name == 'workflow_dispatch' && github.event.inputs.confirm_upload == 'UP') + if: (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') || (github.event_name == 'workflow_dispatch' && github.event.inputs.confirm_upload == 'UP')🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/installer_release.yml at line 82, Update the job-level if condition to explicitly require that for the workflow_run trigger the upstream run concluded successfully: modify the existing condition that reads "github.event_name == 'workflow_run' || (github.event_name == 'workflow_dispatch' && github.event.inputs.confirm_upload == 'UP')" so that the workflow_run branch also checks "github.event.workflow_run.conclusion == 'success'"; keep the workflow_dispatch branch with the confirm_upload check unchanged so the combined condition clearly and defensively requires a successful upstream run or an explicit manual confirmation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/installer_release.yml:
- Line 82: Update the job-level if condition to explicitly require that for the
workflow_run trigger the upstream run concluded successfully: modify the
existing condition that reads "github.event_name == 'workflow_run' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.confirm_upload
== 'UP')" so that the workflow_run branch also checks
"github.event.workflow_run.conclusion == 'success'"; keep the workflow_dispatch
branch with the confirm_upload check unchanged so the combined condition clearly
and defensively requires a successful upstream run or an explicit manual
confirmation.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 391c5fc0-ba8b-4027-a444-867342823851
📒 Files selected for processing (2)
.github/workflows/deploy_qa.yml.github/workflows/installer_release.yml
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/deploy_qa.yml
jasonleenaylor
left a comment
There was a problem hiding this comment.
@jasonleenaylor reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on imnasnainaec).
Allow testing of #4216
https://app.devin.ai/review/sillsdev/TheCombine/pull/4227
This change is
Summary by CodeRabbit