Skip to content

Commit

Permalink
add etcd test analyzer build and integrate into measure-test-flakines…
Browse files Browse the repository at this point in the history
…s workflow

Signed-off-by: Chao Chen <[email protected]>
  • Loading branch information
chaochn47 committed Mar 28, 2023
1 parent 8b93e0e commit b8bbd9e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/measure-test-flakiness.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Measure Test Flakiness

on:
schedule:
- cron: "0 0 * * 0"
- cron: "0 0 * * 0" # run every Sunday at midnight

permissions: read-all

Expand All @@ -12,6 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
- run: "./scripts/measure-test-flakiness.sh"
env:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
./scripts/measure-test-flakiness.sh
make bin/etcd-test-analyzer
bin/etcd-test-analyzer run -token $GITHUB_TOKEN -max-age=168h -workflow Tests -branch main
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ build:
tools:
GO_BUILD_FLAGS="${GO_BUILD_FLAGS} -v" ./scripts/build_tools.sh

TEMP_TEST_ANALYZER_DIR=/tmp/etcd-test-analyzer
TEST_ANALYZER_BIN=${PWD}
bin/etcd-test-analyzer: $(TEMP_TEST_ANALYZER_DIR)/*
cd ${TEMP_TEST_ANALYZER_DIR}/; go build -v -o ${TEST_ANALYZER_BIN}/bin/etcd-test-analyzer; ${TEST_ANALYZER_BIN}/bin/etcd-test-analyzer -h

$(TEMP_TEST_ANALYZER_DIR)/*:
cd /tmp; git clone "https://github.com/endocrimes/etcd-test-analyzer.git"

# Tests

GO_TEST_FLAGS?=
Expand Down

0 comments on commit b8bbd9e

Please sign in to comment.