Skip to content

feat(ci): reapply of capybara pages deployment and fix issues#1049

Open
wdconinc wants to merge 10 commits intomainfrom
reapply-capybara
Open

feat(ci): reapply of capybara pages deployment and fix issues#1049
wdconinc wants to merge 10 commits intomainfrom
reapply-capybara

Conversation

@wdconinc
Copy link
Contributor

Briefly, what does this PR introduce?

Reverts 6821c01 (re-applies a604499) with the following fixes:

  • Fix matrix.head_sha reference in get-docs-from-main (no matrix in that job), and use 'branch: main' to download from the main branch
  • Fix download path in build-artifacts-page: download github-pages-staging to _site/ (after jekyll build) instead of artifacts/ (from PR linux-eic-shell.yml: fix download step in build-artifacts-page #859)
  • Use if-no-files-found: ignore for get-docs-from-main upload to handle case where main branch has no capybara artifact yet
  • Update action versions to match current workflow (dawidd6 v15, upload-artifact v6, download-artifact v7, upload-pages-artifact v4)

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue: capybara)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.

Reverts 6821c01 (re-applies
a604499) with the following fixes:

- Fix matrix.head_sha reference in get-docs-from-main (no matrix in
  that job): use 'branch: main' to download from the main branch
- Fix download path in build-artifacts-page: download github-pages-staging
  to _site/ (after jekyll build) instead of artifacts/ (from PR #859)
- Use if-no-files-found: ignore for get-docs-from-main upload to handle
  case where main branch has no capybara artifact yet
- Update action versions to match current workflow (dawidd6 v15,
  upload-artifact v6, download-artifact v7, upload-pages-artifact v4)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 26, 2026 02:25
@github-actions github-actions bot added the topic: infrastructure Regarding build system, CI, CD label Feb 26, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the linux-eic-shell GitHub Actions workflow to (re-)enable publishing Capybara report artifacts into the GitHub Pages site, including collecting artifacts from open PRs and main.

Changes:

  • Renames/standardizes the merged Capybara artifact to capybara and adds jobs to collect Capybara artifacts from open PRs and from main.
  • Adjusts the GitHub Pages build job to merge “staging” artifacts into the Jekyll _site/ output before uploading the Pages artifact.
  • Extends the deploy job to post/update a “Capybara summary” PR comment (and modifies job permissions accordingly).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +788 to +789
run:
find _site/
Copy link

Copilot AI Feb 26, 2026

Choose a reason for hiding this comment

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

The List content to publish step has invalid YAML: run: is declared as a mapping with a nested find _site/ key, so the workflow will fail to parse. Change this to a scalar (run: find _site/) or a block (run: |\n find _site/).

Suggested change
run:
find _site/
run: find _site/

Copilot uses AI. Check for mistakes.
@wdconinc wdconinc changed the title feat(ci): revert revert of capybara pages deployment and fix issues feat(ci): reapply of capybara pages deployment and fix issues Feb 26, 2026
wdconinc and others added 4 commits February 25, 2026 23:00
When no capybara artifact exists on main yet (e.g. first run), the
get-docs-from-main job previously uploaded nothing (if-no-files-found:
ignore), leaving zero github-pages-staging-* artifacts for the merge
step in build-artifacts-page to find, causing it to fail with
'No artifacts found matching pattern'.

Add a step to always create publishing_docs/.keep so the upload
never has zero files, and change if-no-files-found to error so
any future regression is caught immediately.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
wdconinc and others added 5 commits February 26, 2026 16:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
The upload-artifact/merge@v6 + download-artifact@v7 sequence was
failing consistently with 'Artifact download failed after 5 retries'.

Since all artifacts are already downloaded into artifacts/ in the
Download artifacts for jekyll page step, we can copy the
github-pages-staging-* content directly into _site/ without the
merge+download round trip.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Instead of copying from artifacts/, use download-artifact with a
pattern filter and merge-multiple to download github-pages-staging-*
directly into _site/.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: infrastructure Regarding build system, CI, CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants