Skip to content

feat(release): gate releases on pinned compatibility and HGraph concurrency - #3549

Open
wxyucs wants to merge 5 commits into
antgroup:mainfrom
wxyucs:feat/3536-release-compat-concurrency
Open

wxyucs wants to merge 5 commits into
antgroup:mainfrom
wxyucs:feat/3536-release-compat-concurrency

Conversation

@wxyucs

@wxyucs wxyucs commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Change Type

  • Bug fix
  • New feature
  • Improvement/Refactor
  • Documentation
  • CI/Build/Infra

Linked Issue

What Changed

  • release.yml: two new jobs after candidate, both required by build-and-release, both on the pinned SHA inside ci-main-openblas:
    • release-compatibility (120 min): fetches the pinned fixture inventory by asset id, verifies it with verify_compatibility_cache.py, builds the tool, runs scripts/check_compatibility.sh, and confirms every pinned identifier appears in the log.
    • release-hgraph-concurrency (300 min): builds functests and runs the full-size (Daily) HGraph Concurrent Add and (Daily) HGraph Concurrent Add Search Remove cases with all VSAG_DAILY_* unset and OPENBLAS_NUM_THREADS=1; check_concurrency_report.py requires exactly those two passing JUnit cases.
  • scripts/release/compatibility_fixtures.json (85 assets: random_512d_10K.bin + 28 HGraph index/build/search triples from release id 296508526), regenerated by pin_compatibility_fixtures.py; refreshing it is a reviewed change.
  • scripts/release/fetch_compatibility_fixtures.py, scripts/release/check_concurrency_report.py.
  • Tests: tests/scripts/test_release_gates.py (wired into pr-ci.yml). Docs: en/zh resources/check_compatibility.md ("Release Gate").
  • Nightly evidence is never reused in v1.
  • The functests build uses -DENABLE_WERROR=OFF because GCC 13 at -O3 reports a pre-existing false-positive -Wnonnull in src/io/user_defined_io/user_defined_io_test.cpp; the published-artifact builds keep -Werror.

Test Evidence

  • make fmt — N/A (no C++ changes)
  • make lint — N/A (no C++ changes)
  • make test — N/A (no C++ changes)
  • make cov, run tests, and collect coverage — N/A
  • Other (describe below)

Test details:

pytest -q tests/scripts/test_release_gates.py tests/scripts/test_workflow_entries.py tests/scripts/test_compatibility_inputs.py tests/scripts/test_compatibility_cache.py
  -> 85 passed, 394 subtests passed
actionlint -config-file .github/actionlint.yaml .github/workflows/release.yml -> clean

Native end-to-end (Linux x86_64, 128 cores):
pin_compatibility_fixtures.py -> 85 assets, 28 hgraph indexes; re-run byte-identical
fetch_compatibility_fixtures.py -> ok, 85 assets, 286180048 bytes (3m16s)
make release VSAG_ENABLE_TOOLS=ON; COMPATIBILITY_INDEX_DIR=... scripts/check_compatibility.sh
  -> 28 identifiers checked, "All compatibility checks passed"
fetch_compatibility_fixtures.py --check-log -> {"checked": 28, "ok": true}
make release VSAG_ENABLE_TESTS=ON (-DENABLE_WERROR=OFF)
OPENBLAS_NUM_THREADS=1 functests (both cases) --reporter junit -> exit 0, 1384 s
  (Concurrent Add 754.5 s, Add Search Remove 628.4 s)
check_concurrency_report.py -> ok, exactly 2 passing cases

Not validated: execution on a GitHub-hosted runner (4 vCPU; runtime expected well under 300 min);
deferred to the #3541 release rehearsal.

Compatibility Impact

  • API/ABI compatibility: none
  • Behavior changes: releases are blocked unless old-index compatibility and the full HGraph concurrency cases pass on the pinned commit.

Performance and Concurrency Impact

  • Performance impact: none (release workflow only)
  • Concurrency/thread-safety impact: none (adds a gate)

Documentation Impact

  • No docs update needed
  • Updated docs:
    • README.md
    • DEVELOPMENT.md
    • CONTRIBUTING.md
    • Website docs under docs/docs/{en,zh}/src/
    • Other:

Risk and Rollback

  • Risk level: low (manually dispatched release workflow)
  • Rollback plan: revert this PR.

Checklist

  • I have linked the relevant issue (required for kind/bug and kind/feature; see "Linked Issue" above)
  • I have added/updated tests for new behavior or bug fixes
  • I have considered API compatibility impact
  • I have updated docs if behavior/workflow changed
  • My commit messages follow project conventions (Conventional Commits, DCO sign-off, Assisted-by when applicable, optional [skip ci] prefix)

@pull-request-size pull-request-size Bot added the size/XXL 1000+ changed lines label Dec 1, 2026
@vsag-bot
vsag-bot self-requested a review December 1, 2026 10:22
@vsag-bot

vsag-bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Reviewer | Review complete

Automated pull request review completed.
Review decision: Approved. No actionable findings were identified in this complete static review. CI and merge requirements remain separate.

Model: gpt-6.1-sol; reasoning effort: high.
Review scope: high (1485 changed lines across 10 files).

No actionable inline findings were found.
Review coverage checks completed; this does not prove absence of defects.
Static review only; compilation and runtime tests are outside this review's scope.
File coverage: 10/10; observed passing test runs: 0.
Review: #3549 (review)

@vsag-bot

vsag-bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Merger | Merge Readiness

Head: 65bc3c99 | Base: 7a0b21af | Target: main

Updated: 2026-12-02 03:07:09 UTC

Status: BLOCKED

Merger decision: HOLD (shadow assessment; no merge executed).

  • Conversations: 6 unresolved; resolution required
  • GitHub merge state: BLOCKED

Next owner: Author. Required next step: Resolve the GitHub merge conditions, then reassess.

Merge reliability: 0.00 / 1.00 (WITHHELD)

Scoring basis Points Evidence
Required CI evidence 0.00 / 0.40 0/3 required check groups satisfy the branch policy from the expected source; neutral/skipped are not execution evidence
Branch review policy 0.00 / 0.20 GitHub review decision: REVIEW_REQUIRED; review conditions are not verified
Current AI review 0.40 / 0.40 Current head/base, complete static file coverage, correct verdict and zero P0/P1 findings

Evidence subtotal: 0.40; applicable ceiling: 0.00. Final score = min(subtotal, ceiling). Policy: merge-reliability-v2.

  • Ceiling 0.95: Static analysis and check outcomes do not prove correctness; v2 has an uncalibrated 0.95 policy ceiling.
  • Ceiling 0.00: GitHub merge conditions are BLOCKED; hard gates cannot be offset by other evidence.
  • Ceiling 0.75: No successful execution is recorded; skipped/neutral gates alone are insufficient evidence.
  • Ceiling 0.50: 6 unresolved review threads remain.
  • Ceiling 0.85: The current AI review reports 3 residual risks; see its review for context.
Merge condition State Evidence
PR state PASS OPEN
Rules PASS Active rulesets and branch protection read
Conflicts PASS MERGEABLE
Merge method PASS squash
DCO PENDING Waiting for required result from the expected source
Mergify Merge Protections PENDING Waiting for required result from the expected source
PR CI Gate PENDING Waiting for required result from the expected source
Human review PENDING GitHub: REVIEW_REQUIRED; approvals >= 1; Code Owner approval required; stale approvals dismissed
Conversations BLOCKED 6 unresolved; resolution required
GitHub merge state BLOCKED BLOCKED

AI review: COMPLETE. Static review: patch is correct; CI is reported separately.

Review findings: 0; P0/P1 findings in that review: 0; coverage: 10/10 changed files. Findings are not a count of currently unresolved threads.

CI summary: 1 neutral. Check source: 4d967ecd. Skipped/neutral checks are not evidence that tests executed.

Next action: DCO: Waiting for required result from the expected source; Mergify Merge Protections: Waiting for required result from the expected source; PR CI Gate: Waiting for required result from the expected source; Human review: GitHub: REVIEW_REQUIRED; approvals >= 1; Code Owner approval required; stale approvals dismissed; Conversations: 6 unresolved; resolution required; 1 additional conditions remain

CI check details
Check Source Result Required
Team CI slot allocation CheckRun (App 5831739) neutral no

This is an uncalibrated evidence score, not a probability, correctness guarantee or approval. Zero means the assessment is withheld or lacks positive evidence, not a proven-bad patch. Automatic merging is disabled. New commits or base changes invalidate earlier evidence; never authorize a merge from this score alone.

@vsag-bot vsag-bot added kind/feature Brand-new functionality or capabilities 引入全新的功能、新特性或新能力 area/ci CI/CD, build configuration, and automation CI/CD、构建配置与自动化 area/testing Tests, fixtures, and test infrastructure 测试、夹具与测试基础设施 labels Dec 1, 2026
@vsag-bot

vsag-bot commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Jev-driven classification

Applied: kind/feature, area/ci, area/testing. Existing labels were preserved.

Option probabilities
Option Probability Result
area/ci 98.0% Applied
area/testing 95.0% Applied
kind/feature 94.0% Applied
area/tools 78.0% Not applied
area/docs 75.0% Not applied
module/index 40.0% Not applied
area/docker 38.0% Not applied
area/dependencies 33.0% Not applied
module/datacell 12.0% Not applied
area/bindings-python 7.0% Not applied
area/examples 7.0% Not applied
kind/enhancement 5.0% Not applied
module/api 5.0% Not applied
module/simd 4.0% Not applied
module/attr 3.0% Not applied
area/bindings-node 2.0% Not applied
kind/improvement 1.0% Not applied
kind/bug 0.0% Not applied
kind/cleanup 0.0% Not applied
kind/documentation 0.0% Not applied
kind/epic 0.0% Not applied
kind/refactor 0.0% Not applied
No kind 0.0% Not applied

Model: jev-1.13.0. Selection threshold: 85%. Probabilities are model estimates, not guarantees.

@mergify

mergify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 3 merge protections satisfied — ready to merge.

Show 3 satisfied protections

🟢 Require kind label

  • label~=^kind/

🟢 Require version label

  • label~=^version/

🟢 Require linked issue for feature/bug PRs

  • body~=(?im)(?:^|[\s\-\*])(?:close[sd]?|fix(?:e[sd])?|resolve[sd]?)\s*:?\s+(?:#\d+|[\w.\-]+/[\w.\-]+#\d+|https?://github\.com/[\w.\-]+/[\w.\-]+/issues/\d+)

@mergify mergify Bot added the area/docs Website and repository documentation 网站与仓库文档 label Dec 1, 2026
@mergify

mergify Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

@vsag-bot vsag-bot left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review complete · 5ae70a6 · Comment only · 1/1 resolved · gpt-6.1-sol/high

Reviewer | Code review

Automated pull request review completed.
Review decision: Comment only. No approval was submitted.

Model: gpt-6.1-sol; reasoning effort: high.
Review scope: high (1406 changed lines across 9 files).
Submitted 1 inline comment.
Review coverage checks completed; this does not prove absence of defects.
Static review only; compilation and runtime tests are outside this review's scope.
File coverage: 9/9; observed passing test runs: 0.

Reviewed commit 5ae70a6.

Comment thread .github/workflows/release.yml Resolved
@vsag-bot
vsag-bot self-requested a review December 1, 2026 11:01

@vsag-bot vsag-bot left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Review complete · 3a8ec54 · Comment only · 1/1 resolved · gpt-6.1-sol/high

Reviewer | Code review

Automated pull request review completed.
Review decision: Comment only. No approval was submitted.

Model: gpt-6.1-sol; reasoning effort: high.
Review scope: high (1434 changed lines across 9 files).
Submitted 1 inline comment.
Review coverage checks completed; this does not prove absence of defects.
Static review only; compilation and runtime tests are outside this review's scope.
File coverage: 9/9; observed passing test runs: 0.

Reviewed commit 3a8ec54.

Comment thread .github/workflows/release.yml Resolved
wxyucs and others added 2 commits December 1, 2026 11:19
…rrency

Add two release gates that run on the pinned candidate commit and block
build-and-release:

- release-compatibility downloads a reviewed, pinned inventory of HGraph
  compatibility fixtures by asset id, verifies sizes and SHA-256 digests,
  runs scripts/check_compatibility.sh and confirms every pinned identifier
  was checked.
- release-hgraph-concurrency builds functests and runs the full-size
  "(Daily) HGraph Concurrent Add" and "... Add Search Remove" cases with all
  VSAG_DAILY_* variables cleared, then verifies the JUnit report contains
  exactly those two passing cases.

Nightly evidence is never reused in this first version.

Closes: antgroup#3536

Signed-off-by: Xiangyu Wang <wxy407827@antgroup.com>
Assisted-by: GitHub Copilot CLI:claude-opus-5.5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Configure the Git safe directory after actions/checkout in both release gate
jobs; the helper script does not exist before checkout.

Signed-off-by: Xiangyu Wang <wxy407827@antgroup.com>
Assisted-by: GitHub Copilot CLI:claude-opus-5.5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@wxyucs
wxyucs force-pushed the feat/3536-release-compat-concurrency branch from 3a8ec54 to b4b4087 Compare December 1, 2026 11:20
@vsag-bot
vsag-bot self-requested a review December 1, 2026 11:23
vsag-bot
vsag-bot previously approved these changes Dec 1, 2026

@vsag-bot vsag-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewer | Code review

Automated pull request review completed.
Review decision: Approved. No actionable findings were identified in this complete static review. CI and merge requirements remain separate.

Model: gpt-6.1-sol; reasoning effort: high.
Review scope: high (1434 changed lines across 9 files).
No actionable inline findings were found.
Review coverage checks completed; this does not prove absence of defects.
Static review only; compilation and runtime tests are outside this review's scope.
File coverage: 9/9; observed passing test runs: 0.

Reviewed commit b4b4087.

Container run steps default to sh (dash), which rejects set -o pipefail; select
bash for the compatibility and concurrency gate jobs.

Reject release candidates that lack any scripts/release helper of the running
workflow revision, so an older source_sha fails in the candidate job instead
of midway through the release.

Signed-off-by: Xiangyu Wang <wxy407827@antgroup.com>
Assisted-by: GitHub Copilot CLI:claude-opus-5.5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
vsag-bot
vsag-bot previously approved these changes Dec 1, 2026

@vsag-bot vsag-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewer | Code review

Automated pull request review completed.
Review decision: Approved. No actionable findings were identified in this complete static review. CI and merge requirements remain separate.

Model: gpt-6.1-sol; reasoning effort: high.
Review scope: high (1468 changed lines across 10 files).
No actionable inline findings were found.
Review coverage checks completed; this does not prove absence of defects.
Static review only; compilation and runtime tests are outside this review's scope.
File coverage: 10/10; observed passing test runs: 0.

Reviewed commit 39f03ce.

Enumerate scripts/release from github.workflow_sha instead of the main
checkout, so later main updates or reruns cannot invalidate a pinned
candidate, and fail closed when the helper list cannot be read.

Signed-off-by: Xiangyu Wang <wxy407827@antgroup.com>
Assisted-by: GitHub Copilot CLI:claude-opus-5.5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vsag-bot
vsag-bot self-requested a review December 1, 2026 13:52
vsag-bot
vsag-bot previously approved these changes Dec 1, 2026

@vsag-bot vsag-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewer | Code review

Automated pull request review completed.
Review decision: Approved. No actionable findings were identified in this complete static review. CI and merge requirements remain separate.

Model: gpt-6.1-sol; reasoning effort: high.
Review scope: high (1474 changed lines across 10 files).
No actionable inline findings were found.
Review coverage checks completed; this does not prove absence of defects.
Static review only; compilation and runtime tests are outside this review's scope.
File coverage: 10/10; observed passing test runs: 0.

Reviewed commit bd00ddf.

…rkflow

A same-named but older helper in the pinned checkout could silently ignore
settings the executing workflow relies on. Reject a candidate whose
scripts/release differs from github.workflow_sha, and pin the gate in
test_workflow_entries.py.

Signed-off-by: Xiangyu Wang <wxy407827@antgroup.com>
Assisted-by: GitHub Copilot CLI:claude-opus-5.5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@vsag-bot vsag-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewer | Code review

Automated pull request review completed.
Review decision: Approved. No actionable findings were identified in this complete static review. CI and merge requirements remain separate.

Model: gpt-6.1-sol; reasoning effort: high.
Review scope: high (1485 changed lines across 10 files).
No actionable inline findings were found.
Review coverage checks completed; this does not prove absence of defects.
Static review only; compilation and runtime tests are outside this review's scope.
File coverage: 10/10; observed passing test runs: 0.

Reviewed commit 65bc3c9.

@vsag-lgtm vsag-lgtm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Automated review @ 65bc3c99 — 3 inline suggestion(s).

-u VSAG_DAILY_SHARD_INDEX \
-u VSAG_DAILY_SHARD_COUNT \
-u VSAG_DAILY_WORKERS \
-u VSAG_DAILY_CORE_ONLY \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[warning] The env -u list omits three VSAG_DAILY_* variables that the Daily test harness reads.

tests/fixtures/framework/daily_test_plan.h reads VSAG_DAILY_CHOICES, VSAG_DAILY_EVENTS and VSAG_DAILY_PHASE_FILE, and scripts/testing/daily_run.py injects exactly those three when it runs Daily units; none of them is in this list or in DAILY_VARIABLES in tests/scripts/test_release_gates.py, so CI cannot catch the gap. If VSAG_DAILY_CHOICES leaks in with a foreign or partial JSON, the planner either throws Daily plan is missing a generator choice or silently runs non-default generator choices; if VSAG_DAILY_EVENTS is set and VSAG_DAILY_PHASE_FILE points at an unwritable path, WritePhaseEvent throws Cannot write Daily phase trace. Any of these breaks the promise of the step comment above ("every VSAG_DAILY_* variable is cleared") and of the job summary ("all VSAG_DAILY_* variables unset"), so the two (Daily) cases no longer reliably measure the default concurrency behavior this gate exists to pin. Needs confirmation: does ghcr.io/antgroup/vsag:ci-main-openblas export any of the three? If so, or if unsure, add them to the -u list, the comment, the summary and DAILY_VARIABLES.

Suggested change
-u VSAG_DAILY_CORE_ONLY \
-u VSAG_DAILY_CORE_ONLY \
-u VSAG_DAILY_CHOICES \
-u VSAG_DAILY_EVENTS \
-u VSAG_DAILY_PHASE_FILE \

- name: Python packaging helper regressions (no native build)
run: >-
python3 -m unittest
tests/scripts/test_release_gates.py

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[warning] This new module imports yaml, but the step runs bare system python3 with no venv, and the module is listed first.

No other module in this python3 -m unittest list imports yaml, and the repository only obtains PyYAML where a step installs it explicitly (scripts/ci/check-selection-requirements.txt pins PyYAML==6.0.3 for the venv used above), so nothing proves the ubuntu-24.04 runner's system python3 provides it. Needs confirmation: run python3 -c 'import yaml' on the runner image. If it fails, the ImportError makes the whole regression step exit non-zero (verified locally: one bad import turns python -m unittest into exit 1) and blocks CI. Either add a dependency install step like the SIMD selection job, or drop the yaml usage in tests/scripts/test_release_gates.py.

Suggested change
tests/scripts/test_release_gates.py
- name: Install helper requirements
run: python3 -m pip install --user PyYAML==6.0.3


# Release jobs run helpers from the pinned checkout, so the candidate's scripts/release must
# match the executing workflow revision exactly; otherwise pin a newer source_sha.
stale="$(git diff --name-status "$WORKFLOW_SHA^{commit}" "$SOURCE_SHA^{commit}" -- scripts/release)"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[suggestion] The drift gate watches only scripts/release, but the release jobs also execute other scripts from the same pinned checkout.

scripts/ci/configure-git-safe-directory.sh runs in this job right after checkout, and scripts/check_compatibility.sh runs in the release-compatibility job (release.yml line 198); both come from the SOURCE_SHA checkout. A change to either file between WORKFLOW_SHA and SOURCE_SHA passes this gate while the release tooling actually drifted, so the "release tooling matches the candidate" guarantee is only as strong as these pathspecs. Consider widening the diff filter.

Suggested change
stale="$(git diff --name-status "$WORKFLOW_SHA^{commit}" "$SOURCE_SHA^{commit}" -- scripts/release)"
stale="$(git diff --name-status "$WORKFLOW_SHA^{commit}" "$SOURCE_SHA^{commit}" -- scripts/release scripts/ci/configure-git-safe-directory.sh scripts/check_compatibility.sh)"

@vsag-lgtm vsag-lgtm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Automated review @ 65bc3c99 — 3 inline suggestion(s).

-u VSAG_DAILY_SHARD_INDEX \
-u VSAG_DAILY_SHARD_COUNT \
-u VSAG_DAILY_WORKERS \
-u VSAG_DAILY_CORE_ONLY \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[warning] The env -u list omits three VSAG_DAILY_* variables that the Daily test harness reads.

tests/fixtures/framework/daily_test_plan.h reads VSAG_DAILY_CHOICES, VSAG_DAILY_EVENTS and VSAG_DAILY_PHASE_FILE, and scripts/testing/daily_run.py injects exactly those three when it runs Daily units; none of them is in this list or in DAILY_VARIABLES in tests/scripts/test_release_gates.py, so CI cannot catch the gap. If VSAG_DAILY_CHOICES leaks in with a foreign or partial JSON, the planner either throws Daily plan is missing a generator choice or silently runs non-default generator choices; if VSAG_DAILY_EVENTS is set and VSAG_DAILY_PHASE_FILE points at an unwritable path, WritePhaseEvent throws Cannot write Daily phase trace. Any of these breaks the promise of the step comment above ("every VSAG_DAILY_* variable is cleared") and of the job summary ("all VSAG_DAILY_* variables unset"), so the two (Daily) cases no longer reliably measure the default concurrency behavior this gate exists to pin. Needs confirmation: does ghcr.io/antgroup/vsag:ci-main-openblas export any of the three? If so, or if unsure, add them to the -u list, the comment, the summary and DAILY_VARIABLES.

Suggested change
-u VSAG_DAILY_CORE_ONLY \
-u VSAG_DAILY_CORE_ONLY \
-u VSAG_DAILY_CHOICES \
-u VSAG_DAILY_EVENTS \
-u VSAG_DAILY_PHASE_FILE \

- name: Python packaging helper regressions (no native build)
run: >-
python3 -m unittest
tests/scripts/test_release_gates.py

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[warning] This new module imports yaml, but the step runs bare system python3 with no venv, and the module is listed first.

No other module in this python3 -m unittest list imports yaml, and the repository only obtains PyYAML where a step installs it explicitly (scripts/ci/check-selection-requirements.txt pins PyYAML==6.0.3 for the venv used above), so nothing proves the ubuntu-24.04 runner's system python3 provides it. Needs confirmation: run python3 -c 'import yaml' on the runner image. If it fails, the ImportError makes the whole regression step exit non-zero (verified locally: one bad import turns python -m unittest into exit 1) and blocks CI. Either add a dependency install step like the SIMD selection job, or drop the yaml usage in tests/scripts/test_release_gates.py.

Suggested change
tests/scripts/test_release_gates.py
- name: Install helper requirements
run: python3 -m pip install --user PyYAML==6.0.3


# Release jobs run helpers from the pinned checkout, so the candidate's scripts/release must
# match the executing workflow revision exactly; otherwise pin a newer source_sha.
stale="$(git diff --name-status "$WORKFLOW_SHA^{commit}" "$SOURCE_SHA^{commit}" -- scripts/release)"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

[suggestion] The drift gate watches only scripts/release, but the release jobs also execute other scripts from the same pinned checkout.

scripts/ci/configure-git-safe-directory.sh runs in this job right after checkout, and scripts/check_compatibility.sh runs in the release-compatibility job (release.yml line 198); both come from the SOURCE_SHA checkout. A change to either file between WORKFLOW_SHA and SOURCE_SHA passes this gate while the release tooling actually drifted, so the "release tooling matches the candidate" guarantee is only as strong as these pathspecs. Consider widening the diff filter.

Suggested change
stale="$(git diff --name-status "$WORKFLOW_SHA^{commit}" "$SOURCE_SHA^{commit}" -- scripts/release)"
stale="$(git diff --name-status "$WORKFLOW_SHA^{commit}" "$SOURCE_SHA^{commit}" -- scripts/release scripts/ci/configure-git-safe-directory.sh scripts/check_compatibility.sh)"

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci CI/CD, build configuration, and automation CI/CD、构建配置与自动化 area/docs Website and repository documentation 网站与仓库文档 area/testing Tests, fixtures, and test infrastructure 测试、夹具与测试基础设施 kind/feature Brand-new functionality or capabilities 引入全新的功能、新特性或新能力 size/XXL 1000+ changed lines version/1.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[improve](release): gate candidates on index compatibility and HGraph concurrency

3 participants