← Back to Pull requests

chore: use the correct testing submodule commits in release verification #11610

Merged
adamreeve merged 3 files (34 lines) on Oct 19, 2026 01:08 UTC
View on GitHub
adamreeve adamreeve commented on Oct 15, 2026 21:46 UTC
Author

Which issue does this PR close?

  • Closes #10078
  • Rationale for this change

    The bad_data::test_invalid_files test has caused issues for people during release verification at least 3 times now, when new invalid files have been added to parquet-testing since the version of that repository that's referenced by the release version's source repository.

    What changes are included in this PR?

    Write a .gitmodules-versions file and include it in the source tarball generated by dev/release/create-tarball.sh
    In verify-release-candidate.sh, read commits to check out from .gitmodules-versions

    Are these changes tested?

    Yes, as much as I could locally without a full RC.

    Are there any significant user-facing changes?

    No.

    Diff: 34 lines (+33 / -1) across 3 files Reviewer: alamb Review duration: 4521m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.27) × (1 − Review Confidence (0.88)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.27 · 34 lines diff across 3 files
    0.27
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.93 · 5 substantive comment(s)
    0.93
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    88%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.213
    Real PR Conversation Timeline
    10 items
    Jefffrey Jefffrey commented on Oct 16, 2026 01:46 UTC
    Contributor

    I don't see a straightforward way to check out the version of parqut-testing corresponding to the release version's submodule

    what if as part of the release process we freeze the submodule commits as part of .gitmodules, so we'll always know the exact commit? 🤔

    adamreeve adamreeve commented on Oct 16, 2026 02:00 UTC
    Author

    Yeah I think something like that could work. I'm not sure we want to modify .gitmodules itself, but we could record the submodule commits in a separate file that gets included in the tarball generated by dev/release/create-tarball.sh. Then we could read that in the verification script to determine the submodule commits to check out.

    I'll switch this PR to draft for now and try to implement that.

    adamreeve adamreeve commented on Oct 16, 2026 02:59 UTC
    Author

    OK I've changed the approach to write out the referenced commits to a .gitmodules-commits file when creating the source tarball, and then read that in the verification script. It's a bit more complex but probably better to ensure we use the same test data versions as this could affect more than just the test_invalid_files test. I'll update the PR description too.

    alamb alamb approved these changes on Oct 16, 2026 20:16 UTC
    Approved Reviewer

    thank you so much 🙏

    I don't really know how to test this other than to make a release candidate, so I think we can do so when preparing for the next release

    Jefffrey Jefffrey commented on Oct 17, 2026 06:29 UTC
    Contributor

    I'm not sure we want to modify .gitmodules itself

    I wonder at this, as it seems the more natural approach 🤔

    adamreeve adamreeve commented on Oct 18, 2026 20:29 UTC
    Author

    I don't really know how to test this other than to make a release candidate, so I think we can do so when preparing for the next release

    Yeah I tested a create-tarball.sh followed by verify-release-candidate.sh with some of the external services mocked out (gpg, svn, serving the RC source). Which caught a problem when a submodule pointed to a commit from a PR rather than a branch (62281cd22e06bfdac07b091e4e4b9597cd0ec13e). But I don't think there's a way to fully test this end-to-end without an actual RC.

    I wonder at this, as it seems the more natural approach 🤔

    I guess we could add a custom field to the .gitmodules file, but this would be a non-standard use of it, which might be surprising if anybody is using that file for anything. I tested adding something extra in there and then git operations like git status failed with an error: fatal: bad config line 4 in file /home/adam/dev/arrow-rs/.gitmodules. I don't expect anyone would be using the source tarball as a git repository, but it seems safer to me to just use a separate file.

    Jefffrey Jefffrey approved these changes on Oct 19, 2026 00:39 UTC
    Approved Reviewer

    ah i remember gitmodules being able to specify branch, so i assumed it would also allow specifying commit but i was wrong. makes sense to use a separate file in this case 👍

    Jefffrey Jefffrey commented on Oct 19, 2026 00:41 UTC
    Contributor

    thanks @adamreeve & @alamb

    adamreeve adamreeve commented on Oct 19, 2026 02:48 UTC
    Author

    Ah yeah it doesn't look like the branch field is supposed to reference a commit directly. I tested this and it doesn't cause immediate errors, but git submodule update --remote gave me: fatal: Unable to find refs/remotes/origin/56653c437c8092f704a092d0d1d4e600124cd49f revision in submodule path 'parquet-testing'

    Reviewers
    Assignees
    adamreeve adamreeve
    Labels
    risk: low confidence: 88.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 27.2% (LOW) · Higher = larger blast radius
    27.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 88.4% · Lower = rushed or shallow review
    88.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.1% · Safe to merge
    3.1%