Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: buildkite-plugins/test-collector-buildkite-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.9.0
Choose a base ref
...
head repository: buildkite-plugins/test-collector-buildkite-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.10.0
Choose a head ref
  • 9 commits
  • 6 files changed
  • 4 contributors

Commits on Jul 3, 2023

  1. Update plugin version

    pzeballos authored Jul 3, 2023
    Copy the full SHA
    89a9084 View commit details

Commits on Jul 4, 2023

  1. Added github actions files

    Michelle (butterkitty) committed Jul 4, 2023
    Copy the full SHA
    d4e75bf View commit details
  2. Corrected release-drafter file to reflect test collector

    Michelle (butterkitty) committed Jul 4, 2023
    Copy the full SHA
    243c2db View commit details
  3. Update to test-collector in boomper.yml

    Michelle (butterkitty) committed Jul 4, 2023
    Copy the full SHA
    7a4c01b View commit details
  4. Merge pull request #58 from buildkite-plugins/github-actions

    Added github actions files
    butterkitty authored Jul 4, 2023
    Copy the full SHA
    634bc81 View commit details

Commits on Jul 14, 2023

  1. Copy the full SHA
    b9fff7a View commit details
  2. fix test for annotations

    pzeballos committed Jul 14, 2023
    Copy the full SHA
    48e74b1 View commit details

Commits on Jul 18, 2023

  1. Merge pull request #61 from buildkite-plugins/sup-1237-annotation-new…

    …lines
    
    SUP-1237 Fix annotation newlines
    pzeballos authored Jul 18, 2023
    Copy the full SHA
    a844f81 View commit details

Commits on Jul 19, 2023

  1. Copy the full SHA
    74d9e3b View commit details
Showing with 52 additions and 12 deletions.
  1. +4 −0 .github/boomper.yml
  2. +22 −0 .github/release-drafter.yml
  3. +14 −0 .github/workflows/draft-release.yml
  4. +6 −6 README.md
  5. +1 −1 hooks/pre-exit
  6. +5 −5 tests/pre-exit-report-link.bats
4 changes: 4 additions & 0 deletions .github/boomper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Config for https://github.com/apps/boomper-bot
updates:
- path: README.md
pattern: 'test-collector#(.*):'
22 changes: 22 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Config for https://github.com/apps/release-drafter
name-template: 'v$NEXT_MINOR_VERSION (🌈 Insert Release Name)'
tag-template: 'v$NEXT_MINOR_VERSION'
categories:
- title: 'Dependency Updates'
label: 'dependencies'
template: |
$CHANGES
## Upgrading
To upgrade, update your `pipeline.yml` files:
```diff
steps:
- command: test.sh
plugins:
- test-collector#$PREVIOUS_TAG:
+ test-collector#v$NEXT_MINOR_VERSION:
files: "test/junit-*.xml"
format: "junit"
```
14 changes: 14 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Draft Release

on:
push:
branches:
- main

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.8.0:
- test-collector#v1.9.0:
files: "test/junit-*.xml"
format: "junit"
```
@@ -121,7 +121,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.8.0:
- test-collector#v1.9.0:
files:
- "test-data-*.json"
format: "json"
@@ -143,7 +143,7 @@ steps:
- label: "🔍 Test Analytics"
command: buildkite-agent artifact download tests-*.xml
plugins:
- test-collector#v1.8.0:
- test-collector#v1.9.0:
files: "tests-*.xml"
format: "junit"
```
@@ -157,7 +157,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.8.0:
- test-collector#v1.9.0:
files: "test-data-*.json"
format: "json"
branches: "-qa$"
@@ -170,7 +170,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.8.0:
- test-collector#v1.9.0:
files: "test-data-*.json"
format: "json"
exclude-branches: "^legacy$"
@@ -183,7 +183,7 @@ steps:
- label: "🔨 Test"
command: "make test"
plugins:
- test-collector#v1.8.0:
- test-collector#v1.9.0:
files: "test-data-*.json"
format: "json"
branches: "^stage-"
2 changes: 1 addition & 1 deletion hooks/pre-exit
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ annotation-link() {
REPORT_COUNT=$((REPORT_COUNT + 1))
done

buildkite-agent annotate --style info --context "test-collector" "Check the test report(s) here: \n\n${REPORTS}"
echo -e "Check the test report(s) here: \n\n${REPORTS}" | buildkite-agent annotate --style info --context "test-collector"
else
echo "There are no report URLs to annotate."
fi
10 changes: 5 additions & 5 deletions tests/pre-exit-report-link.bats
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ COMMON_CURL_OPTIONS='--form \* --form \* --form \* --form \* --form \* --form \*

@test "Annotates report link with jq" {
stub curl "-X POST --silent --show-error --max-time 30 --form format=junit ${COMMON_CURL_OPTIONS} \* \* \* -H \* : echo 'curl success'"
stub buildkite-agent "annotate --style info --context \"test-collector\" \* : echo 'annotation success'"
stub buildkite-agent "annotate --style info --context \"test-collector\" : echo 'annotation success'"

run "$PWD/hooks/pre-exit"

@@ -44,7 +44,7 @@ COMMON_CURL_OPTIONS='--form \* --form \* --form \* --form \* --form \* --form \*

@test "Annotates report link without jq" {
stub curl "-X POST --silent --show-error --max-time 30 --form format=junit ${COMMON_CURL_OPTIONS} \* \* \* -H \* : echo 'curl success'"
stub buildkite-agent "annotate --style info --context \"test-collector\" \* : echo 'annotation success'"
stub buildkite-agent "annotate --style info --context \"test-collector\" : echo 'annotation success'"
stub which "jq : exit 1"

run "$PWD/hooks/pre-exit"
@@ -67,7 +67,7 @@ COMMON_CURL_OPTIONS='--form \* --form \* --form \* --form \* --form \* --form \*
"-X POST --silent --show-error --max-time 30 --form format=junit ${COMMON_CURL_OPTIONS} \* \* \* -H \* : echo 'curl success 1'" \
"-X POST --silent --show-error --max-time 30 --form format=junit ${COMMON_CURL_OPTIONS} \* \* \* -H \* : echo 'curl success 2'" \
"-X POST --silent --show-error --max-time 30 --form format=junit ${COMMON_CURL_OPTIONS} \* \* \* -H \* : echo 'curl success 3'"
stub buildkite-agent "annotate --style info --context \"test-collector\" \* : echo 'annotation success'"
stub buildkite-agent "annotate --style info --context \"test-collector\" : echo 'annotation success'"


run "$PWD/hooks/pre-exit"
@@ -95,7 +95,7 @@ COMMON_CURL_OPTIONS='--form \* --form \* --form \* --form \* --form \* --form \*
"-r '.run_url' \* : echo https://buildkite.com/organizations/example/analytics/suites/collector-test/runs/1" \
"-r '.run_url' \* : echo https://buildkite.com/organizations/example/analytics/suites/collector-test/runs/2" \
"-r '.run_url' \* : echo https://buildkite.com/organizations/example/analytics/suites/collector-test/runs/1"
stub buildkite-agent "annotate --style info --context \"test-collector\" \* : echo 'annotation success' with params \${6}"
stub buildkite-agent "annotate --style info --context \"test-collector\" : echo 'annotation success' with stdin:; cat"


run "$PWD/hooks/pre-exit"
@@ -117,7 +117,7 @@ COMMON_CURL_OPTIONS='--form \* --form \* --form \* --form \* --form \* --form \*
@test "Annotates report link absorbs empty file error" {
export CURL_RESP_FILE="response.json"
stub curl "-X POST --silent --show-error --max-time 30 --form format=junit ${COMMON_CURL_OPTIONS} \* \* \* -H \* : echo 'curl success'"
stub buildkite-agent "annotate --style info --context \"test-collector\" \* : echo 'annotation success'"
stub buildkite-agent "annotate --style info --context \"test-collector\" : echo 'annotation success'"

run "$PWD/hooks/pre-exit"