Repository navigation
Weekly workflow: refetch the public board and push a branch only when it changed - #673
Merged
Merged
Conversation
…y when it changed
…old like their lower-case pairs (owner 428a: full case folding)
There was a problem hiding this comment.
Bompus AI Review (Gemini 4 Neon): 0 finding(s).
Review 2: findings below high are posted only within 3 lines of a change since f839a3c.
1 finding(s) found again and not posted again: an earlier review on this pull request already carries each one, under the ref code shown.
ref f064eb·.github/workflows/panel-board-refresh.yml:48high: Weekly refresh force-pushes over existing panel-board-refresh commits and churns date-only updates
… and pushes nothing for an unchanged board; the refresh script restores only its two files; the PR lookup is same-repository and fails closed; checkout is always main
…-request steps, a merge commit on the branch is never the job's, a refused publish fails the run, and a test pins the lease
…t (owner pick 430a: Actions may not create pull requests)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #671 and #672: the catalog's board rows and the Bug Hunt snapshot go stale when nobody refetches. A weekly workflow (Monday 14:17 UTC, also runnable by hand) refetches the public board with
refresh-recommendations.mjs --fetchand, only when a row or the board's own update changed, pushes the regenerated snapshot and catalog to the branchpanel-board-refreshand pushes the regenerated snapshot and catalog to the branchpanel-board-refresh.scripts/refresh-panel-board.shdoes the fetch and the decision. It compares the files without the dates every fetch rewrites (fetch date, review date, each entry'schecked): when nothing else changed it restores the files and reportschanged=false; otherwise it runs the catalog--checkand the skill and doc-rule tests and reportschanged=true. I ran both paths locally against the live board (unchanged board: files restored; one row edited: 403 tests pass).contentsandpull-requestswrite only in the one job; actions pinned to the SHAscheck.ymluses, Bun 1.4.4, a 15-minute timeout, one run at a time (concurrency, never cancelled), forks skipped. No board text reaches a shell command or the pull request text.bun run checkandtest/doc-rules.test.mjspass.Also in this PR (owner 428a asked for full case folding in the deny screen): the screen now folds a capital sharp s (U+1E9E) and a sigma's final or medial form as it already folded a small sharp s and a final sigma at the end of a string. Before, a denied
Straßemissed a publishedSTRAẞE, and a deniedΟΔΥΣΣΕΥΣmissedΟΔΥΣΣΕΥΣ.exampleorΟΔΥΣΣΕΥΣTOOL, because JavaScript lowercases a sigma by what follows it. The test failed on those pairs before the fix.Bot round 1 changes: the push is now
scripts/publish-panel-board.sh, which never overwrites a refresh branch that holds work that is not the job's (every commit the branch has that main lacks must be the workflow bot's and touch only the two generated files) and pushes nothing when the branch already holds this board; replacing it uses a lease on the SHA read. The refresh script restores only its two files from temporary copies, so other uncommitted edits survive. The pull-request lookup is same-repository, into main, and fails closed. The checkout is always main. Tests run both scripts against a bare remote and a saved board.Owner pick 430a: the job opens no pull request; the pull-request step was removed, and with it the
pull-requests: writepermission.