Skip to content

Make next gix-transport test GIX_TEST_FIXTURE_HASH-aware - #3059

Merged
Sebastian Thiel (Byron) merged 3 commits into
GitoxideLabs:mainfrom
cruessler:run-gix-transport-tests-with-sha-256-2
Oct 14, 2026
Merged

Sebastian Thiel (Byron) merged 3 commits into
GitoxideLabs:mainfrom
cruessler:run-gix-transport-tests-with-sha-256-2

Conversation

@cruessler

@cruessler cruessler commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

This PR replaces the previously hard-coded fixture for the handshake_v1_and_request test that only exercised SHA-1 by extending the fixture script added in 951b9fc. The fixture script runs git upload-pack to generate the expected message.

This PR is a follow-up to #3043.

@cruessler
Christoph Rüßler (cruessler) marked this pull request as ready for review October 13, 2026 19:59
@cruessler Christoph Rüßler (cruessler) changed the title Make next gix-transport test GIX_TEST_FIXTURE_HASH-aware Make next gix-transport test GIX_TEST_FIXTURE_HASH-aware Oct 13, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T20:07:05.964779Z 45717fc Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Byron Byron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks a lot! I love how this new baseline can be extended and am already looking forward to future follow-ups.

The changes to the test look quite elaborate and I don't say I understand every detail of it, after all, one would have to have a mental picture of what's contained in the baseline files. Did you write that entirely unassisted? If not, it's probably time to use something like the Assisted-by: <agent identity> commit message trailer.

@Byron
Sebastian Thiel (Byron) force-pushed the run-gix-transport-tests-with-sha-256-2 branch from bc0d94a to bdca714 Compare October 14, 2026 03:25
This commit replaces the previously hard-coded fixture that only
exercised SHA-1 by extending the fixture script added in 951b9fc. The
fixture script runs `git upload-pack` to generate the expected message.
…tured baselines

<!-- agent -->
A flaky Windows fetch test failed while generating `make_remote_repos.sh`,
before the worktree assertions ran. The fixture output stopped after cloning
`credential-helpers`, leaving no failing command or process exit status to
explain the abort. Expected merge conflicts earlier in the script further
obscured where setup actually failed.

Enable `set -x` by default for `.sh` fixtures on Bash 4.1 and newer. Route
traces through `BASH_XTRACEFD` to a duplicate of the original stderr, so
commands that redirect stderr into fixture baselines do not capture tracing
output. Keep successful fixture generation quiet by retaining the runner's
existing policy of printing captured output only on failure.

Bash 3.2, including the version shipped with macOS, cannot redirect xtrace
independently of stderr. Use an inherited `ERR` trap there to report the
failed command, script location, and status through the same descriptor.
Include the subprocess exit status in the runner's error on every platform.

Add coverage for silent command lookup failures, unchanged redirected stderr
baselines, and exit statuses in fixture errors. This improves diagnosis; it
does not identify or fix the original Windows flake.

Assisted-by: GPT 6.1 Sol
Co-authored-by: GPT 6.1 Sol <codex@openai.com>
@Byron
Sebastian Thiel (Byron) force-pushed the run-gix-transport-tests-with-sha-256-2 branch from bdca714 to d839468 Compare October 14, 2026 04:25
@Byron
Sebastian Thiel (Byron) merged commit 8dc7afd into GitoxideLabs:main Oct 14, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants