chore: use the correct testing submodule commits in release verification #11610
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? 🤔
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.
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.
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
I'm not sure we want to modify .gitmodules itself
I wonder at this, as it seems the more natural approach 🤔
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.
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 👍
thanks @adamreeve & @alamb
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'
alamb
adamreeve
Which issue does this PR close?
Rationale for this change
The
bad_data::test_invalid_filestest has caused issues for people during release verification at least 3 times now, when new invalid files have been added toparquet-testingsince 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-versionsfile and include it in the source tarball generated bydev/release/create-tarball.shIn
verify-release-candidate.sh, read commits to check out from.gitmodules-versionsAre these changes tested?
Yes, as much as I could locally without a full RC.
Are there any significant user-facing changes?
No.