Repository navigation
feat(ci): open one issue per new entry on flow.google.com/changelogs (#1800) - #1807
Merged
Merged
Conversation
…1800) Flow announces model, composer and settings changes on its changelog page, often before a gflow command breaks on them, and nothing watched it. The bundle-discovery spike shows the entries ship as an object-literal array in the shell bundle that flow.google.com serves without cookies, so the watcher needs no account and no browser. `scripts/ci/flow_changelog_watch.py` reads the entries (id, title, date; the minifier's line breaks and string escapes are handled), skips the 46 in the committed baseline and any entry an issue in the `flow-changelog` label already names, and opens one issue per new entry, oldest first. An empty parse or a shell with no bundle exits 2, so a format change turns the run red instead of reporting nothing new. Standard library only, as driver_watch. Scheduled daily by `.github/workflows/flow-changelog-watch.yml`; `dry_run` prints the plan.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…ding (#1800) Review of the first version found: - A title with a JavaScript escape JSON lacks (`\xHH`, `\'`) raised an uncaught JSONDecodeError on every run; the bundle already writes `\x3c`, `\x3e` and `\xa0` in other strings. Both escapes are now decoded, one escape pair at a time, and any title that still cannot be decoded (or decodes to a lone surrogate) exits 2 as PARSE-CHANGED. - An entry in a new shape was dropped silently while the old ones parsed. The count of entry openings must now equal the count parsed. - Nothing bounded a run: more than MAX_NEW (5) new entries, or an issue listing that reaches ISSUE_LIMIT, exits 2 and opens nothing. - The label is created once, before the issues; a concurrency group stops a manual run racing the schedule; each issue asks to keep its marker and label, which the job reads to avoid a duplicate.
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.
Closes #1800. Part of #1229 (drift handling).
Summary
Flow announces product changes on
flow.google.com/changelogs: models added or retired, composer and settings changes. gflow drives Flow's private surfaces, so an entry there is often the first warning of a change that will break a command. Nothing watched it until now.Spike (
docs/superpowers/spikes/2026-12-05-changelog-bundle-discovery.md): the shell thatflow.google.comserves without cookies names one/_/js/bundle, and that bundle holds the entries as an object-literal array,{title, date, id}. A cookieless GET is enough: no account, no browser. Each entry's page is public atwww.gstatic.com/aitestkitchen/website/flow/changelogs/<id>.html.scripts/ci/flow_changelog_watch.py:scripts/ci/flow_changelog_baseline.json) and any entry already named by an issue under theflow-changeloglabel, open or closed;An empty parse, or a shell that names no bundle, exits 2, so a format change turns the run red instead of reporting nothing new. It uses the standard library only, like
driver_watch.py..github/workflows/flow-changelog-watch.yml: runs daily at 06:30 UTC, withworkflow_dispatchand adry_runoption. Permissions arecontents: readandissues: write. Actions are pinned and checkout keeps no credentials.Docs: a row in the drift-handling table of
docs/FLOW_WIRE_RPCS.md, and a CHANGELOG entry.Verification
tests/scripts/test_flow_changelog_watch.py: 11 passed. Each guard was removed in turn, and every removal failed at least one test:idLive dry run against the real bundle:
python scripts/ci/flow_changelog_watch.py --dry-rungaveentries: 46; new: 0.Gates:
ruff checkandruff formaton the new files,check_repo_hygiene,check_size,check_doc_links,check_website_docs_pii,check_council_memory, andgenerate_website_docs --check.No gflow command, MCP tool or Flow request changes, so no e2e applies. The live dry run is the end-to-end check of the one external surface, the public bundle.