Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit 4bbaf91

Browse files
author
Jamie Brynes
authored
Add test failure reporting (#232)
1 parent b090430 commit 4bbaf91

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

.buildkite/hooks/post-checkout

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ if [[ -z "${BUILDKITE-}" ]]; then
77
ci/bootstrap.sh
88
exit 0
99
fi
10-
if [[ "${BUILDKITE_AGENT_META_DATA_QUEUE}" != "trigger-pipelines" ]]; then
10+
if [[ "${BUILDKITE_AGENT_META_DATA_QUEUE}" != "trigger-pipelines" ]] && [[ "${BUILDKITE_AGENT_META_DATA_OS}" == "windows" ]]; then
1111
ci/bootstrap.sh
1212
fi

.buildkite/hooks/pre-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
set -euo pipefail
33
[[ -n "${DEBUG:-}" ]] && set -x
44

5-
if [[ "${BUILDKITE_AGENT_META_DATA_CAPABLE_OF_BUILDING}" == "gdk-for-unity" ]]; then
5+
if [[ "${BUILDKITE_AGENT_META_DATA_CAPABLE_OF_BUILDING}" == "gdk-for-unity" ]] && [[ "${BUILDKITE_AGENT_META_DATA_OS}" == "windows" ]]; then
66
spatial auth login --log_level debug
77
fi

.buildkite/premerge.steps.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,48 @@ common: &common
3131
- exit_status: 128
3232
limit: 3
3333

34+
linux: &linux
35+
agents:
36+
- "capable_of_building=gdk-for-unity"
37+
- "environment=production"
38+
- "permission_set=builder"
39+
- "platform=linux" # if you need a different platform, configure this: macos|linux|windows.
40+
- "queue=v3-1562766449-11b126f880607f28-------z"
41+
- "scaler_version=2"
42+
timeout_in_minutes: 60 # TODO(ENG-548): reduce timeout once agent-cold-start is optimised.
43+
retry:
44+
automatic:
45+
# This is designed to trap and retry failures because agent lost connection. Agent exits with -1 in this case.
46+
- exit_status: -1
47+
limit: 3
48+
3449
# NOTE: step labels turn into commit-status names like {org}/{repo}/{pipeline}/{step-label}, lower-case and hyphenated.
3550
# These are then relied on to have stable names by other things, so once named, please beware renaming has consequences.
3651

52+
dag: true
53+
3754
steps:
3855
- label: "test"
56+
id: "test"
3957
command: bash -c ci/test.sh
4058
<<: *common
4159
artifact_paths:
4260
- logs/**/*
4361

62+
- label: "annotate test results :pencil2:"
63+
depends_on:
64+
- step: "test"
65+
allow_failure: true
66+
plugins:
67+
- improbable/test-summary#d7289cac8297018fd1b452dcf828979307b3ebc6:
68+
inputs:
69+
- label: ":octagonal_sign: Test failures "
70+
artifact_path: "logs\\nunit\\*.xml"
71+
type: nunit
72+
formatter:
73+
type: details
74+
<<: *linux
75+
4476
- label: "build :android:"
4577
command: bash -c .shared-ci/scripts/build-worker.sh
4678
<<: *common

ci/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ source .shared-ci/scripts/pinned-tools.sh
1313
PROJECT_DIR="$(pwd)"
1414
mkdir -p "${PROJECT_DIR}/logs/"
1515

16-
EDITMODE_TEST_RESULTS_FILE="${PROJECT_DIR}/logs/editmode-test-results.xml"
16+
EDITMODE_TEST_RESULTS_FILE="${PROJECT_DIR}/logs/nunit/editmode-test-results.xml"
1717

1818
echo "--- Testing Unity: Editmode :writing_hand:"
1919

0 commit comments

Comments
 (0)