ci(nightly): a rolling nightly prerelease of main, linked from the readme #1062
Closed
hckrman101 wants to merge 9 commits from
ci-nightly-prerelease into main
pull from: ci-nightly-prerelease
merge into: MagicBeanDev:main
MagicBeanDev:main
MagicBeanDev:github/pr/2893
MagicBeanDev:github/pr/2890
MagicBeanDev:github/pr/2887
MagicBeanDev:github/pr/2878
MagicBeanDev:github/pr/2875
MagicBeanDev:github/pr/2874
MagicBeanDev:github/pr/2873
MagicBeanDev:github/pr/2871
MagicBeanDev:github/pr/2756
MagicBeanDev:github/pr/2897
MagicBeanDev:github/pr/2896
MagicBeanDev:github/pr/2718
MagicBeanDev:github/pr/2842
MagicBeanDev:github/pr/2691
MagicBeanDev:github/pr/2895
MagicBeanDev:github/pr/2743
MagicBeanDev:github/pr/2765
MagicBeanDev:github/pr/2708
MagicBeanDev:github/pr/2732
MagicBeanDev:github/pr/2755
MagicBeanDev:github/pr/2817
MagicBeanDev:github/pr/2876
MagicBeanDev:release-please--branches--main
MagicBeanDev:release-please--branches--main--release-notes
MagicBeanDev:github/pr/2778
MagicBeanDev:github/pr/2888
MagicBeanDev:github/pr/2866
MagicBeanDev:github/pr/2877
MagicBeanDev:github/pr/2800
MagicBeanDev:github/pr/2829
MagicBeanDev:github/pr/2850
MagicBeanDev:github/pr/2889
MagicBeanDev:github/pr/2882
MagicBeanDev:github/pr/2860
MagicBeanDev:github/pr/2849
MagicBeanDev:github/pr/2886
MagicBeanDev:github/pr/2794
MagicBeanDev:github/pr/2840
MagicBeanDev:github/pr/2830
MagicBeanDev:github/pr/2834
MagicBeanDev:github/pr/2719
MagicBeanDev:github/pr/2742
MagicBeanDev:github/pr/2741
MagicBeanDev:github/pr/2820
MagicBeanDev:github/pr/2771
MagicBeanDev:github/pr/2859
MagicBeanDev:github/pr/2858
MagicBeanDev:github/pr/2823
MagicBeanDev:github/pr/2757
MagicBeanDev:github/pr/2769
MagicBeanDev:github/pr/2844
MagicBeanDev:github/pr/2843
MagicBeanDev:github/pr/2673
MagicBeanDev:github/pr/2855
MagicBeanDev:github/pr/2739
MagicBeanDev:github/pr/2807
MagicBeanDev:github/pr/2851
MagicBeanDev:github/pr/2789
MagicBeanDev:github/pr/2814
MagicBeanDev:github/pr/2818
MagicBeanDev:github/pr/2774
MagicBeanDev:github/pr/2772
MagicBeanDev:github/pr/2750
MagicBeanDev:github/pr/2786
MagicBeanDev:github/pr/2785
MagicBeanDev:github/pr/2782
MagicBeanDev:github/pr/2779
MagicBeanDev:github/pr/2775
MagicBeanDev:github/pr/2706
MagicBeanDev:github/pr/2766
MagicBeanDev:github/pr/2747
MagicBeanDev:github/pr/2759
MagicBeanDev:github/pr/2745
MagicBeanDev:github/pr/2740
MagicBeanDev:github/pr/2733
MagicBeanDev:github/pr/2725
MagicBeanDev:github/pr/2727
MagicBeanDev:github/pr/2728
MagicBeanDev:github/pr/2729
MagicBeanDev:github/pr/2721
MagicBeanDev:github/pr/2722
MagicBeanDev:github/pr/2715
MagicBeanDev:github/pr/2714
MagicBeanDev:github/pr/2707
MagicBeanDev:github/pr/2703
MagicBeanDev:github/pr/2705
MagicBeanDev:github/pr/2697
MagicBeanDev:github/pr/2679
MagicBeanDev:github/pr/2676
MagicBeanDev:github/pr/2669
MagicBeanDev:docs/what-hookshot-connects-to
MagicBeanDev:fix/hdr-encode-test
MagicBeanDev:fix/main-tests
MagicBeanDev:fix/play-cache-files
MagicBeanDev:perf/game-barrier-order
MagicBeanDev:feat/heap-lazy
MagicBeanDev:feat/texture-detail
MagicBeanDev:perf/astc-opaque-bc1
MagicBeanDev:fix/fs-dir-lock
MagicBeanDev:fix/framegen-native-kept
MagicBeanDev:fix/update-no-downgrade
MagicBeanDev:port/k10-gcn-f16-mirrors
MagicBeanDev:fix/framegen-mult-cap
MagicBeanDev:chore/release-as-2.1.1
MagicBeanDev:perf/pcache-load-switch
MagicBeanDev:fix/prepare-progress-log
MagicBeanDev:fix/update-closes-stale-game
MagicBeanDev:fix/hdr-scaled-sampled
MagicBeanDev:perf/first-start-preset
MagicBeanDev:perf/zero-upload
MagicBeanDev:fix/vcore-escape-2s
MagicBeanDev:test/fake-gh-atomic
MagicBeanDev:perf/batch-idle-flush
MagicBeanDev:test/finish-stub-a
MagicBeanDev:chore/record-2.1.0
MagicBeanDev:fix/main-red-tests
MagicBeanDev:fix/test-display-startup-driver-cache
MagicBeanDev:feat/mesh-shader-mode
MagicBeanDev:fix/menu-probes-at-startup
MagicBeanDev:fix/fps-counter-classic
MagicBeanDev:fix/test-log-batch-flake
MagicBeanDev:fix/narrow-screen-hud
MagicBeanDev:ci/prereleases
MagicBeanDev:release/v2.0.15
MagicBeanDev:hotfix/v2.0.15
MagicBeanDev:fix/present-ahead-replay
MagicBeanDev:release/v2.0.13
MagicBeanDev:fix/bracket-paths-2013
MagicBeanDev:fix/hdr-overlays-2013
MagicBeanDev:fix/fps-counter-scale-2013
MagicBeanDev:fix/stick-seen-at-rest
MagicBeanDev:hotfix/menu-fits-screen
MagicBeanDev:fix/f1-always-opens-menu
MagicBeanDev:fix/ini-keep-lines
MagicBeanDev:claude/cranky-pike-7cf247
MagicBeanDev:perf/texture-answer-flat
MagicBeanDev:fix/stamp-test-modules
MagicBeanDev:fix/appimage-fonts
MagicBeanDev:fix/display-awake
MagicBeanDev:release/v2.0.12
MagicBeanDev:fix/discord-windows
MagicBeanDev:rc/v2.0.12-tests
MagicBeanDev:fix/dlss-keep-feature
MagicBeanDev:rc/v2.0.12
MagicBeanDev:button-icons
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
autorelease: pending
autorelease: tagged
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
github_actions
Pull requests that update GitHub Actions code
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
question
Further information is requested
testing wanted
wontfix
This will not be worked on
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot!1062
Loading…
Reference in a new issue
No description provided.
Delete branch "ci-nightly-prerelease"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Depends on #1059: this branch is built on it, because both change the release jobs of the two build workflows and
scripts/release_upload.sh. Until #1059 is merged, the diff here also shows that PR's commits. Onlyci(nightly): a rolling nightly prerelease of main, linked from the readme, the merge of #1059's branch into this one, andci(nightly): the nightly's AppImage updates to the next nightly, and its files keep SHA256SUMS currentbelong to this PR.What this adds
Today the only way to get a build of main is a workflow run's artifacts, and GitHub only lets signed-in users download those. This adds a rolling
nightlyprerelease that anyone can download, and a readme section that links to it.How it works
nightlytoscripts/release_upload.sh, so a release and the nightly share one upload step, and no build step is duplicated.nightly,release_upload.shmoves thenightlytag to the commit through the git refs API. The move usesGITHUB_TOKEN, so it starts no workflow. The script then writes the commit SHA and its date in the notes, keeps the release a prerelease and never "latest", and replaces the files with--clobber. Once the new AppImage and.zsyncare up, it removes the previous commit's, so neither is ever missing. Then it makesSHA256SUMSagain (scripts/release_files.sh finish). The Linux and Windows jobs both do this, and each one checks the uploadedSHA256SUMSagainst the files afterwards, so it ends up listing every file.Hookshot-<git describe>-x86_64.AppImageand its.zsync,hookshot-linux.txt,HookshotBuilder.exe,hookshot-setup.txtandSHA256SUMS. Every file has a build provenance attestation, as for a release (#1059), sogh attestation verify <file> -R NotRexed/Hookshotworks on a nightly too. The notes end with the same "Which file do I download?" table. On a push to main, the Linux workflow now also keeps its update-parts artifact, which it used to keep only for releases. New parts go tolinux-partsandbuilder-partsas they do for a release, so both lists point at files that exist.gh-releases-zsync|NotRexed|Hookshot|nightly|Hookshot-*-x86_64.AppImage.zsync. The Linux build setsHOOKSHOT_UPDATE_RELEASE=nightlyon a push to main that is not a release. AppImageUpdate readsreleases/tags/nightlyfor it, so a nightly AppImage updates to the next nightly, not to a release. Release AppImages keeplatest. Gear Lever ignores the release name unless it islatest-preorlatest-all, and always readsreleases/latest. For a nightly AppImage, it offers the latest release instead. docs/versioning.md notes this.nightlytag, the same way they skipbuilder-partsandlinux-parts.releases/latest,release_parts.py previousskips prereleases, andnightlyis not av*tag, so release-please andgit describeignore it.release_upload.shrefuses file names that look like game data, dumps or NVIDIA runtime files.HookshotBuilder.exe --tag nightly:builder/setup/setup.creads--tagto pick that release'shookshot-setup.txt, and without it the setup installs the latest release. docs/versioning.md gets a short nightly section.How it was tested
scripts/release_upload.sh,scripts/release_files.shandscripts/linux/publish_parts.sh.python -I -B tests/run_all.pypasses.nightly-teststood in for main. The only test-only changes were the branch name in the two build workflows and inrelease_upload.sh's check for main's newest commit.nightlyprerelease at that commit, withHookshot-v1.0.0-4-gc8e8161-x86_64.AppImage, its.zsync,hookshot-linux.txt,HookshotBuilder.exe,hookshot-setup.txtandSHA256SUMS, and the table in the notes. It was not "latest".sha256sum -c SHA256SUMSpassed for all five files, andgh attestation verifypassed for all six. The AppImage's update information isgh-releases-zsync|hckrman101|Hookshot|nightly|Hookshot-*-x86_64.AppImage.zsync, and its.zsyncmatched the file (length, SHA-1, name, relative URL, and a sample of block sums).Hookshot-v1.0.0-5-g4c81b23-x86_64.AppImageand its.zsyncreplaced the first push's, which were removed, andSHA256SUMSwas made again. It listed exactly the new files, andsha256sum -candgh attestation verifypassed again. I followed AppImageUpdate's code with the first push's update information, and it resolved to the second push's.zsync, whose AppImage was on the release.What a maintainer has to do
contents: write, and the nightly needs nothing more.linux-partsandbuilder-parts, so prune those now and then if they grow too large.nightlytag and release. Until then, the readme link goes nowhere.Read through the nightly part (tag move through the refs API, the newest-commit check,
--clobberplus removal of the previous AppImage/.zsync only after the new ones are up, the SHA256SUMS retry loop, the parts-upload race handling, thenightlytag skips, all action refs SHA-pinned). I found one real problem, inline, and otherwise it looks right.CI: the red jobs are not from this PR. Both Python source checks fail on
nx2/test_draw_parameters(no member named 'mesh_fallback' in 'Ctx', the fixture breakage),test_draw_stream_visibility,test_sampler_admission,test_lift_cleanup_error,test_recomplauncher_json, and (Windows)nx2/test_nup_out_of_space. Those fail on main too. actionlint, AppImage, Windows builder and Vulkan jobs pass. Merging main should clear the fixture ones.Order: this branch carries #1059's commits (still open), so #1059 has to merge first.
Nits, no action needed: the notes and README say "after every change" while a push that lands before the previous one's builds finish simply skips (documented in the PR text, fine).
Verified problem: the new
|| (github.event_name == 'push' && github.ref == 'refs/heads/main')clause also matches the Release workflow'sworkflow_call, becausegithub.event_nameandgithub.refare the caller's (a push to main). So for a release made by release-please, this job runs even withvars.CI_RELEASE_WINDOWS == 'false', and uploadsHookshotBuilder.exe/hookshot-setup.txtto the draft, which defeats the by-hand opt-out (the publish job'sWINDOWS_BY_HANDthen keeps the draft but the files are already attached). Suggest scoping the nightly clause withenv.RELEASE_TAG == ''(orinputs.tag == ''), as theHOOKSHOT_UPDATE_RELEASEexpression in linux-appimage.yml already does. The Linux job has no such switch, so it is unaffected.Folded into #2018, which carries this nightly prerelease, with the fix from the review (the Windows nightly clause is scoped with
!inputs.tag), alongside the release-candidate and Promote flow on top of #1059. Closing in favor of it.