Skip to content

Test out preview artifacts for PRs#593

Merged
tfoote merged 4 commits intoros2from
upload_preview
Sep 9, 2025
Merged

Test out preview artifacts for PRs#593
tfoote merged 4 commits intoros2from
upload_preview

Conversation

@tfoote
Copy link
Member

@tfoote tfoote commented Sep 4, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

HTML artifacts: https://github.com/ros-infrastructure/rosindex/actions/runs/17469799301/artifacts/3929128965.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. Run ghrocker --devel html-artifacts-593 Requires ghrocker installed https://github.com/tfoote/ghrocker
  4. Open http://localhost:4000 in your favorite browser

@tfoote
Copy link
Member Author

tfoote commented Sep 4, 2025

@rkent Hopefully this can make things easier for testing/reviewing content.

It also found a bug in the dependencies that our test builds weren't even having any packages or repos discovered.

@rkent
Copy link
Contributor

rkent commented Sep 4, 2025

I was confused by the word "artifacts" used in this PR. In rosindex, I've used "artifacts" to mean the items in the "_artifacts" folder, which are slowly-changing items that are prerequisites to the rendering. That's what I thought I was downloading. Maybe that just shows my inexperience so that the term "artifacts" did not have a broader meaning to me outside of how we've used it in rosindex. Anyway, I think the github-actions comment should be clearer that you are downloading the website for offline viewing. I'll make some proposed changes in code comments.

The "bug in the dependencies" was intentional to make a test-build faster, but I can see that it only saves seconds and adding the prepare-sources dependency is on net an improvement.

Copy link
Contributor

@rkent rkent left a comment

Choose a reason for hiding this comment

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

Ok this LGTM with changing :"artifacts" to "site" in the automatic comment to use terminology that matches what is used by rosindex.

The automatic comment is a neat trick that I like, BTW.

run: |
./docker/run.sh make test-build No newline at end of file
./docker/run.sh make test-build
- name: Upload document artifacts
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe "upload rendered website"

uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: html-artifacts-${{ github.event.pull_request.number }}
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe "html-site-..."

compression-level: 9 # maximum compression, default 6
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`

- name: Find HTML artifacts link comment
Copy link
Contributor

Choose a reason for hiding this comment

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

"Find HTML site link comment"

comment-author: 'github-actions[bot]'
body-includes: "HTML artifacts:"

- name: Create or update HTML artifacts link comment
Copy link
Contributor

Choose a reason for hiding this comment

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

"... HTML site ..."

comment-id: ${{ steps.find-comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
HTML artifacts: ${{ steps.artifact-upload-step.outputs.artifact-url }}.
Copy link
Contributor

Choose a reason for hiding this comment

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

"HTML site: ..."

1. Click on the above link to download the artifacts archive
2. Extract it
3. Run `ghrocker --devel html-artifacts-${{ github.event.pull_request.number }}` Requires ghrocker installed https://github.com/tfoote/ghrocker
4. Open http://localhost:4000 in your favorite browser
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a line "Or just render the downloaded, extracted folder as a website using your favorite local rendering tool." This is not really dependent on ghrocker, it's just a website folder.

@github-actions
Copy link

github-actions bot commented Sep 9, 2025

Site Test Render: https://github.com/ros-infrastructure/rosindex/actions/runs/17572376902/artifacts/3960851767.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. View it using your favorite local rendering tool.
    a. As one example: Run ghrocker --devel rosindex-test-render-593 Requires ghrocker installed https://github.com/tfoote/ghrocker
    b. Open http://localhost:4000 in your favorite browser

@tfoote
Copy link
Member Author

tfoote commented Sep 9, 2025

Thanks I reworded most of those elements to make it hopefully clearer.

@tfoote tfoote merged commit afb585e into ros2 Sep 9, 2025
2 checks passed
@tfoote tfoote deleted the upload_preview branch September 9, 2025 05:19
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