comment gotestfmt for now
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
5efe804a20
commit
0b012b529f
2 changed files with 7 additions and 20 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
@ -176,13 +176,6 @@ jobs:
|
||||||
path: complement_test_results.jsonl
|
path: complement_test_results.jsonl
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload Complement logs (gotestfmt)
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: complement_test_logs_gotestfmt.log
|
|
||||||
path: complement_test_logs_gotestfmt.log
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
- name: Diff Complement results with checked-in repo results
|
- name: Diff Complement results with checked-in repo results
|
||||||
run: |
|
run: |
|
||||||
diff -u --color=always tests/test_results/complement/test_results.jsonl complement_test_results.jsonl > >(tee -a complement_diff_output.log)
|
diff -u --color=always tests/test_results/complement/test_results.jsonl complement_test_results.jsonl > >(tee -a complement_diff_output.log)
|
||||||
|
@ -204,11 +197,6 @@ jobs:
|
||||||
echo '```diff' >> $GITHUB_STEP_SUMMARY
|
echo '```diff' >> $GITHUB_STEP_SUMMARY
|
||||||
tail -n 100 complement_diff_output.log | sed 's/\x1b\[[0-9;]*m//g' >> $GITHUB_STEP_SUMMARY
|
tail -n 100 complement_diff_output.log | sed 's/\x1b\[[0-9;]*m//g' >> $GITHUB_STEP_SUMMARY
|
||||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
echo '# Complement gotestfmt logs (last 100 lines)' >> $GITHUB_STEP_SUMMARY
|
|
||||||
echo '```diff' >> $GITHUB_STEP_SUMMARY
|
|
||||||
tail -n 100 complement_test_logs_gotestfmt.log | sed 's/\x1b\[[0-9;]*m//g' >> $GITHUB_STEP_SUMMARY
|
|
||||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -67,7 +67,6 @@ set +o pipefail
|
||||||
env \
|
env \
|
||||||
-C "$COMPLEMENT_SRC" \
|
-C "$COMPLEMENT_SRC" \
|
||||||
COMPLEMENT_BASE_IMAGE="$COMPLEMENT_BASE_IMAGE" \
|
COMPLEMENT_BASE_IMAGE="$COMPLEMENT_BASE_IMAGE" \
|
||||||
COMPLEMENT_ENABLE_DIRTY_RUNS=1 \
|
|
||||||
go test -tags="conduwuit_blacklist" -timeout 1h -json ./tests/... | tee "$LOG_FILE"
|
go test -tags="conduwuit_blacklist" -timeout 1h -json ./tests/... | tee "$LOG_FILE"
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
@ -79,17 +78,17 @@ cat "$LOG_FILE" | jq -s -c 'sort_by(.Test)[]' | jq -c '
|
||||||
) | {Action: .Action, Test: .Test}
|
) | {Action: .Action, Test: .Test}
|
||||||
' > "$RESULTS_FILE"
|
' > "$RESULTS_FILE"
|
||||||
|
|
||||||
if command -v gotestfmt &> /dev/null; then
|
#if command -v gotestfmt &> /dev/null; then
|
||||||
echo "using gotestfmt on $LOG_FILE"
|
# echo "using gotestfmt on $LOG_FILE"
|
||||||
grep '^{"Time":' "$LOG_FILE" | gotestfmt > "complement_test_logs_gotestfmt.log"
|
# grep '{"Time":' "$LOG_FILE" | gotestfmt > "complement_test_logs_gotestfmt.log"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "complement logs saved at $LOG_FILE"
|
echo "complement logs saved at $LOG_FILE"
|
||||||
echo "complement results saved at $RESULTS_FILE"
|
echo "complement results saved at $RESULTS_FILE"
|
||||||
if command -v gotestfmt &> /dev/null; then
|
#if command -v gotestfmt &> /dev/null; then
|
||||||
echo "complement logs in gotestfmt pretty format outputted at complement_test_logs_gotestfmt.log (use an editor/terminal/pager that interprets ANSI colours and UTF-8 emojis)"
|
# echo "complement logs in gotestfmt pretty format outputted at complement_test_logs_gotestfmt.log (use an editor/terminal/pager that interprets ANSI colours and UTF-8 emojis)"
|
||||||
fi
|
#fi
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue