Repository navigation
Release 0.5.4: compaction_windows view, smoke-test unpickling allowlist - #501
Merged
Merged
Conversation
haiyuan-eng-google
approved these changes
Sep 28, 2026
caohy1988
marked this pull request as ready for review
September 29, 2026 16:47
haiyuan-eng-google
pushed a commit
that referenced
this pull request
Sep 30, 2026
…ghtly) (#502) * audit: document compaction_windows partition limitation in SDK.md (nightly) The 0.5.4 CHANGELOG (#501) records a known limitation of the compaction_windows view (#494): it exposes no event `timestamp` column, so a query through it reads every partition of the events table and fails on a table that sets `require_partition_filter`. SDK.md's compaction_windows section, the view's reference doc, did not say so. Add the limitation to SDK.md, with a pointer to the adk_event_compactions per-event view for time-bounded queries. A new test ties the note to the view: it fails while the view has no `timestamp` column and SDK.md omits the limitation, and it fails once a `timestamp` column is added, so the note goes away with that fix. * audit: scope compaction_windows doc test to its SDK.md section (nightly) Review of c3c5cc8 found that test_partition_limitation_is_documented searched all of SDK.md for `require_partition_filter`. The test still passed after the limitation paragraph was deleted, as long as the token appeared anywhere else in the file. Scope the search to the "Cross-event views" section, and require one paragraph there to name both `require_partition_filter` and the `adk_event_compactions` pointer. A renamed heading now raises ValueError instead of widening the search. SDK.md now also says that `adk_event_compactions` is not a drop-in replacement: it does not deduplicate windows or skip malformed boundaries, and it has `agent` rather than `app_name`.
Merged
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.
Summary
This bumps the version from
0.5.3to0.5.4and cuts the CHANGELOG for the 10 PRs merged sincev0.5.3(#490–#497, #499, #500). Like #487, it touches two files:pyproject.tomlandCHANGELOG.md. It is a patch release: no public API is removed or renamed, and the wheel's dependencies are unchanged.compaction_windowscross-event view (adk-2.0 consumer: compaction_windows view (TIMESTAMP_MICROS conversion, fractional fixture) #216 / feat(views): add compaction windows view (#216) #494)tracing-v*tags, and its compatibility notes are in the CHANGELOG.[Unreleased]is now empty.[Unreleased]moves into[0.5.4]. Its dash now matches the other entries, and it gains a known-limitation sentence: the view exposes notimestampcolumn, so there is no partition pruning, and it fails on tables that setrequire_partition_filter.client.CATEGORICAL_AI_GENERATE_QUERYandsystem_evaluator.strip_markdown_fences, and where to import them from.Why 0.5.4 and not 0.6.0
This project bumps the minor version for headline releases: 0.3.0, 0.4.0, and 0.5.0 (LangSmith export plus Grafana). Additive API ships in patch releases: 0.4.1, 0.5.1, 0.5.2 and 0.5.3. The 0.5.3 release added
EventsTableNotFoundError, new extras, and the cross-event registry that #494 now fills.This range is smaller than any of those releases:
That fits the project's patch-release precedent, though it is not a promise of full behavioral compatibility. This wheel has two compatibility effects, both described in the CHANGELOG:
The tracing path changes (#499) belong to the separately versioned producer and are not in this wheel.
Verification (local, on this branch)
python -m buildproducesbigquery_agent_analytics-0.5.4-py3-none-any.whlandbigquery_agent_analytics-0.5.4.tar.gz. The wheel contains onlybigquery_agent_analyticsandbigquery_ontology, notproducers/.ci.yml"Verify package version" passes on the built artifacts.release.yml's tag check passes when simulated withGITHUB_REF_NAME=v0.5.4: pyproject0.5.4equals tag0.5.4.The CI Format-job gates pass:
autoformat.shleaves no diff insrc/ tests/ examples/ scripts/ dashboards/Full
pytest --tb=short -qwith.[dev,streamlit]on Python 3.12: 5277 passed, 83 skipped, 0 failed (4 min 41 s, including the live headless-Chrome configurator smoke test)git diff --checkis clean.The audit: restrict unpickling of smoke-test child output (nightly security) #492 claim was checked by running
_restricted_loadson pickledExtractedPropertyvalues:str, int/float/bool/Nonein a dict/list, sets, tz-awaredatetime,Decimaluuid.UUIDThe second commit (
44c1d71) changes only CHANGELOG wording after review:chmod go-wAfter it, the wheel and sdist were rebuilt,
git diff --checkis clean, and the longest line in[0.5.4]is 76 characters.The third commit (
699c31a) only changes the[0.5.4]date to 2026-09-29.After merge (release owner only)
Merging does not publish.
release.ymlruns only when a GitHub release is published.Copy the release step below, save it to a file, and run it with Bash:
pbpaste > /tmp/v0.5.4-release.sh && bash /tmp/v0.5.4-release.sh(macOS/bin/bash3.2 works). It needsghand Python 3.11+ (fortomllib). Pasting it into zsh also works. Don't paste it into macOS/bin/bash3.2: that shell has no bracketed paste, so a long paste can lose characters and leave the prompt waiting with nothing run.The block runs in a subshell, so a failed check ends only the block. Each check has an explicit stop, and every
ghcall's exit status is checked, so a failed check or lookup stops the block. Every check except the final tag check runs beforegh release create. Before the PR merges,mergeCommit.oidis empty, andgh release create --target ""falls back to the default branch, which would tagmain.The final check reads the exact ref
refs/tags/v0.5.4, so a branch namedv0.5.4cannot satisfy it, and it peels an annotated tag to its commit.This produces the same flat body as v0.5.3. You can add a short
--notespointer to the CHANGELOG and a note that #499 is not in this wheel.The tag check and
gh release createare separate calls, not one atomic step. If someone else createsv0.5.4between them, GitHub publishes the release on that tag and ignores--target. If that tag is on another commit, the block's last check fails after the release exists: do not approve PyPI then.Approve PyPI only after the block has printed
v0.5.4 resolves to <squash SHA>:v0.5.4still resolves to the squash SHA. There must be exactly one "Release to PyPI" run forv0.5.4; if there is more than one, stop and find out why before approving anything. On that run's page, confirm the commit is the squash SHA and Build package passed. Then approve thepypienvironment deployment. It has a required reviewer; TestPyPI publishes without a gate.bigquery-agent-analytics0.5.4.Do not
haiyuan-eng-google): the ruleset requires one, and the author cannot approve their own PR.