beads/internal/hooks
matt wilkie 7865493f76
test: port Windows hardening fixes (#4600)
* test: port Windows hardening fixes

Port the live Windows/test hardening fixes from contributor PRs #3797, #3801, #3802, #3806, and #3812 onto current upstream/main.

#3801 is applied to the moved dbproxy server test path. The release-script test harness also normalizes Bash-visible paths so the fake bd is selected reliably from Windows-hosted test runs.

Co-authored-by: sms <114885497+seanmartinsmith@users.noreply.github.com>

Agent-Signature: codex-gpt-5.5-high on behalf of matt wilkie

* fix(test): keep release-script fixtures out of source tree, preserve PATH

releaseTestTempDir previously created .tmp-release-tests under the
source repo root, requiring a writable checkout to even start the
release-script tests. Use t.TempDir() instead so the tests run from
read-only checkouts and packaging build directories.

runReleaseDryRunWithEnv hard-coded PATH to "<fakebin>:/usr/bin:/bin",
dropping the caller's PATH entirely. On systems where bash or core
utilities live elsewhere (e.g. Nix/Guix), the inner `bash
scripts/release.sh` invocation then failed. Prepend the fake bd
directory to the caller's actual PATH (converted per-entry via
shellPath for Bash) instead of replacing it.

Addresses Codex cross-vendor review finding (2026-07-07) on PR #4600.

Agent-Signature: claude-fable-5-high on behalf of matt wilkie
2026-07-07 12:59:50 -07:00
..
hooks.go feat(otel): opt-in OpenTelemetry instrumentation (#1940) 2026-02-22 15:36:57 -08:00
hooks_otel.go feat(otel): opt-in OpenTelemetry instrumentation (#1940) 2026-02-22 15:36:57 -08:00
hooks_test.go test: port Windows hardening fixes (#4600) 2026-07-07 12:59:50 -07:00
hooks_unix.go feat(otel): opt-in OpenTelemetry instrumentation (#1940) 2026-02-22 15:36:57 -08:00
hooks_windows.go feat(otel): opt-in OpenTelemetry instrumentation (#1940) 2026-02-22 15:36:57 -08:00