mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #15513 from chaochn47/add_etcd_test_analyzer
add etcd test analyzer build and integrate into measure-test-flakiness workflow
This commit is contained in:
commit
8aeef56cc7
11
.github/workflows/measure-test-flakiness.yaml
vendored
11
.github/workflows/measure-test-flakiness.yaml
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
11
Makefile
11
Makefile
@ -12,6 +12,17 @@ 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
|
||||
bin/etcd-test-analyzer: $(TEMP_TEST_ANALYZER_DIR)/*
|
||||
make -C ${TEMP_TEST_ANALYZER_DIR} build
|
||||
mkdir -p ${TEST_ANALYZER_BIN}
|
||||
install ${TEMP_TEST_ANALYZER_DIR}/bin/etcd-test-analyzer ${TEST_ANALYZER_BIN}
|
||||
${TEST_ANALYZER_BIN}/etcd-test-analyzer -h
|
||||
|
||||
$(TEMP_TEST_ANALYZER_DIR)/*:
|
||||
git clone "https://github.com/endocrimes/etcd-test-analyzer.git" ${TEMP_TEST_ANALYZER_DIR}
|
||||
|
||||
# Tests
|
||||
|
||||
GO_TEST_FLAGS?=
|
||||
|
Loading…
x
Reference in New Issue
Block a user