Skip to content

Commit 8e33ebf

Browse files
authored
Merge branch 'main' into issue-34732-plugins-portlet
2 parents 7cc340e + 0dfcd6e commit 8e33ebf

120 files changed

Lines changed: 8829 additions & 2065 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
"Bash(gh api*)",
1818
"Bash(gh label list*)",
1919
"Bash(gh auth refresh*)",
20+
"Bash(gh auth status*)",
21+
"Bash(gh repo view*)",
22+
"Bash(python3 --version*)",
23+
"Bash(ls .claude/skills/cicd-diagnostics/*)",
24+
"Bash(python3 .claude/skills/cicd-diagnostics/*)",
2025
"Bash(jq*)",
2126
"Bash(cat ~/.config/dotcms/create-issue/*)",
2227
"Bash(mkdir -p ~/.config/dotcms/create-issue*)",

.claude/skills/cicd-diagnostics/SKILL.md

Lines changed: 105 additions & 724 deletions
Large diffs are not rendered by default.

.claude/skills/cicd-diagnostics/WORKFLOWS.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,31 @@ gh run list --workflow=cicd_2-merge-queue.yml --limit 10
162162
- Detection: Deployment step failures
163163
- Action: Verify environment configuration in GitHub secrets
164164

165+
**Deployment Step Behavior (CRITICAL for diagnosis)**:
166+
167+
The deployment job (`cicd_comp_deployment-phase.yml`) has multiple steps with different
168+
failure semantics. Not every error in the logs causes the job to fail:
169+
170+
| Step | `continue-on-error` | Fails job? | Artifact source |
171+
|---|---|---|---|
172+
| Build/Push Docker Image | no | YES | `inputs.artifact-run-id` (correct) |
173+
| Build/Push Docker Dev Image | no | YES | `inputs.artifact-run-id` (correct) |
174+
| CLI Deploy (deploy-jfrog) | **yes** | **NO** | `inputs.artifact-run-id` — but NOT forwarded by caller, defaults to `github.run_id` |
175+
| CLI Publish (deploy-cli-npm) | no | YES | `github.run_id` (CLI artifacts always from same run) |
176+
| SDKs Publish (deploy-javascript-sdk) | no | YES | N/A — runs its own Maven build from checkout |
177+
178+
**Diagnostic trap**: When `artifact-run-id` differs from `github.run_id` (build reuse),
179+
the CLI Deploy step fails with `Artifact not found for name: maven-repo` — but because
180+
it has `continue-on-error: true`, this error is **visible in logs but does NOT fail the job**.
181+
If the job still fails, the real cause is a later step. Always check which step actually
182+
killed the job before concluding.
183+
184+
**Artifact-run-id propagation chain**:
185+
When Trunk Build is skipped (reused from a prior merge queue run), the trunk workflow
186+
passes `artifact-run-id: <prior-run-id>` to the deployment phase. Steps that correctly
187+
forward this retrieve artifacts from the right place. Steps that default to `github.run_id`
188+
will fail because the current run has no build artifacts.
189+
165190
**Important Notes**:
166191
- Tests are NOT re-run (assumes merge queue validation)
167192
- Test failures here indicate artifact corruption or environment issues

0 commit comments

Comments
 (0)