Skip to content

hotfix: make eic-manifest need optional - #380

Open
wdconinc wants to merge 2 commits into
masterfrom
wdconinc-dedupe-eic-manifest-needs-matrix
Open

hotfix: make eic-manifest need optional#380
wdconinc wants to merge 2 commits into
masterfrom
wdconinc-dedupe-eic-manifest-needs-matrix

Conversation

@wdconinc

@wdconinc wdconinc commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • set eic-manifest to needs the parallel eic job with optional: true
  • keep version as a required need
  • preserve the external-trigger behavior where only eic_ci is built, without failing pipeline creation when other matrix jobs are skipped

Motivation

On the current EICweb GitLab, rule-level matrix-selective needs for this case result in pipeline creation failure (undefined need: eic). Using optional: true is compatible and avoids hard-coding matrix child names.

Use a shared YAML anchor for the eic_ci matrix entry and reuse it in eic-manifest trigger-specific needs to avoid duplicating matrix parameters.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 3, 2026 23:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the GitLab CI configuration to reduce duplication by introducing a YAML anchor for the eic_ci parallel matrix entry in the eic job, then reusing that anchored matrix entry when specifying trigger-specific needs.parallel.matrix for eic-manifest.

Changes:

  • Added an anchored eic_ci matrix entry (&eic_ci_matrix_entry) in the eic job’s parallel.matrix.
  • Removed ci from the shared ENV: list so it’s defined only once via the anchored entry.
  • Updated eic-manifest to use trigger-specific needs.parallel.matrix referencing the anchored matrix entry.

Comment thread .gitlab-ci.yml Outdated
Use optional need on the parallel eic job so external trigger pipelines remain valid when non-ci matrix jobs are skipped by rules.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 3, 2026 23:38
@wdconinc wdconinc changed the title ci(gitlab): deduplicate trigger matrix needs with anchor ci(gitlab): make eic-manifest need optional Aug 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Suppressed comments (1)

.gitlab-ci.yml:484

  • Making the eic need optional allows eic-manifest to be created even when no eic matrix jobs exist in the pipeline. In that case this job will still run and the for metadata_file in build-metadata-*.json loop will execute with a non-matching glob, causing jq/docker buildx commands to fail. Consider adding a guard to exit successfully when no build-metadata artifacts are present, so optional needs doesn’t turn into a runtime failure.
      optional: true
  script:
    - apk add bash jq
    - |
      for metadata_file in build-metadata-*.json; do

@wdconinc wdconinc changed the title ci(gitlab): make eic-manifest need optional hotfix: make eic-manifest need optional Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Capybara summary for PR 380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants