Skip to content

[CI] Publish nightly reduced data files#596

Merged
MridulS merged 7 commits into
mainfrom
reduced_data_nightly
Jun 3, 2026
Merged

[CI] Publish nightly reduced data files#596
MridulS merged 7 commits into
mainfrom
reduced_data_nightly

Conversation

@MridulS

@MridulS MridulS commented May 21, 2026

Copy link
Copy Markdown
Member

First step for #591

@github-actions github-actions Bot added the CI label May 21, 2026
@github-actions

Copy link
Copy Markdown

Hi! Your PR was missing some labels 🔖 so I added them: CI

@MridulS

MridulS commented May 21, 2026

Copy link
Copy Markdown
Member Author

Seems to work fine https://github.com/scipp/ess/releases/tag/reduced_data_nightly

Integrated and analysis tests can fetch the files from stable urls like https://github.com/scipp/ess/releases/download/reduced_data_nightly/dream_reduced.cif going forward.

@MridulS MridulS marked this pull request as ready for review May 21, 2026 15:00
Comment thread .github/workflows/nightly.yml Outdated
permissions:
contents: write
steps:
- uses: actions/checkout@v6

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we even need to checkout here?

Comment thread .github/workflows/nightly.yml Outdated
echo "Publishing ${#files[@]} file(s):"
printf ' %s\n' "${files[@]}"
gh release delete reduced_data_nightly --yes --cleanup-tag 2>/dev/null || true
gh release create reduced_data_nightly \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What happens if we skip the delete step and just try to push new files to an existing release?
For example, when uploading the built docs as assets to a release, we use a different action that just add files to a release.
I wonder if you can replace files with that, and avoid having to create the release entirely (now that it has been created once)?

@nvaytet nvaytet May 21, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There seems to be an option for overwriting:
overwrite false If an asset with the same name already exists, overwrite it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Another reason to maybe use the action to upload assets is that I seem to get a gh notification every time a release is made.

Just uploading would not add any noise to our inboxes.

@MridulS

MridulS commented Jun 2, 2026

Copy link
Copy Markdown
Member Author

This should work now: https://github.com/scipp/ess/releases/tag/reduced_data_nightly

We edit the release instead of a new release so shouldn't create any more notifications.

@MridulS MridulS enabled auto-merge June 3, 2026 07:11
@MridulS MridulS added this pull request to the merge queue Jun 3, 2026
Merged via the queue into main with commit af9d308 Jun 3, 2026
5 checks passed
@MridulS MridulS deleted the reduced_data_nightly branch June 3, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants