Skip to content

Commit 1c42a81

Browse files
CopilotGrantBirki
andcommitted
Fix acceptance test log output and integration test failure
Co-authored-by: GrantBirki <[email protected]>
1 parent 52fdb86 commit 1c42a81

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.bundle/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
BUNDLE_BIN: "bin"
3-
BUNDLE_PATH: "vendor/gems"
3+
BUNDLE_PATH: "/home/runner/work/hooks/hooks/vendor/bundle"
44
BUNDLE_CACHE_PATH: "vendor/cache"
55
BUNDLE_CACHE_ALL: "true"
66
BUNDLE_SPECIFIC_PLATFORM: "true"

lib/hooks/core/config_validator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class ValidationError < StandardError; end
1515
optional(:handler_dir).filled(:string) # For backward compatibility
1616
optional(:handler_plugin_dir).filled(:string)
1717
optional(:auth_plugin_dir).maybe(:string)
18+
optional(:lifecycle_plugin_dir).maybe(:string)
1819
optional(:log_level).filled(:string, included_in?: %w[debug info warn error])
1920
optional(:request_limit).filled(:integer, gt?: 0)
2021
optional(:request_timeout).filled(:integer, gt?: 0)

script/acceptance

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ if ! docker info &> /dev/null; then
2323
fi
2424

2525
echo -e "${PURPLE}[#]${OFF} ${BLUE}Killing old docker processes${OFF}"
26-
docker compose -f "$COMPOSE_FILE" down --remove-orphans -v -t 1
27-
docker network prune --force
28-
docker compose -f "$COMPOSE_FILE" up --build -d
26+
docker compose -f "$COMPOSE_FILE" down --remove-orphans -v -t 1 &> /dev/null
27+
docker network prune --force &> /dev/null
28+
docker compose -f "$COMPOSE_FILE" up --build -d &> /dev/null
2929

3030
echo -e "${PURPLE}[#]${OFF} ${BLUE}Running acceptance tests${OFF}"
3131
bundle exec rspec spec/acceptance/acceptance_tests.rb
3232

3333
if [ "$KEEP_UP" == "false" ]; then
3434
echo -e "${PURPLE}[#]${OFF} ${BLUE}Stopping docker processes${OFF}"
35-
docker compose -f "$COMPOSE_FILE" down --remove-orphans -v -t 1
36-
docker network prune --force
35+
docker compose -f "$COMPOSE_FILE" down --remove-orphans -v -t 1 &> /dev/null
36+
docker network prune --force &> /dev/null
3737
else
3838
echo -e "${PURPLE}[#]${OFF} ${BLUE}Keeping docker processes up${OFF}"
3939
fi

0 commit comments

Comments
 (0)