Skip to content

Conversation

@jfroche
Copy link
Collaborator

@jfroche jfroche commented Oct 10, 2025

Integrate bashlog framework throughout the test harness to provide better visibility and reduce default log output noise.

  • Add log_cmd function to capture command execution, stdout, and stderr to debug.log
  • Replace raw echo statements with structured log info/error/debug calls
  • Extract check_postgres_ready function to eliminate code duplication
  • Improve error handling with proper trap handling via on_exit function
  • Show debug logs only on test failures to reduce noise
  • Switch from 'set -e' to 'set -uo pipefail' for better error control
  • Migrate test harness to use writeShellApplication for better shell script handling, fix shellcheck warnings.

Integrate bashlog framework throughout the test harness to provide
better visibility and debuggability:

- Add log_cmd function to capture command execution, stdout, and stderr to debug.log
- Replace raw echo statements with structured log info/error/debug calls
- Extract check_postgres_ready function to eliminate code duplication
- Improve error handling with proper trap handling via on_exit function
- Show debug logs only on test failures to reduce noise
- Switch from 'set -e' to 'set -uo pipefail' for better error control
@jfroche jfroche requested review from a team as code owners October 10, 2025 13:55
…lApplication

Migrate test harness to use writeShellApplication for better shell script handling,
fix shellcheck warnings.
@jfroche jfroche force-pushed the chore/harness-less-verbose branch from 4fc1725 to a80b66c Compare October 10, 2025 14:03
@jfroche jfroche merged commit 514d1a5 into develop Oct 27, 2025
14 checks passed
@jfroche jfroche deleted the chore/harness-less-verbose branch October 27, 2025 11:17
hunleyd added a commit that referenced this pull request Oct 27, 2025
* origin/develop:
  chore: add our substituter config to flake.nix (#1839)
  refactor: improve test harness logging and error handling (#1834)
  feat: support multiple versions of the pgroonga extension (#1677)
  refactor(ansible): bring our ansible up to modern ansible-lint standards (#1862)
  fix: bump version for new release (#1860)
encima pushed a commit that referenced this pull request Oct 28, 2025
* refactor: improve test harness logging and error handling

Integrate bashlog framework throughout the test harness to provide
better visibility and debuggability:

- Add log_cmd function to capture command execution, stdout, and stderr to debug.log
- Replace raw echo statements with structured log info/error/debug calls
- Extract check_postgres_ready function to eliminate code duplication
- Improve error handling with proper trap handling via on_exit function
- Show debug logs only on test failures to reduce noise
- Switch from 'set -e' to 'set -uo pipefail' for better error control

* refactor: convert postgres check harness from runCommand to writeShellApplication

Migrate test harness to use writeShellApplication for better shell script handling,
fix shellcheck warnings.
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.

3 participants