Commit 1e580e50 authored by clabby's avatar clabby Committed by GitHub

Run `kontrol-tests` job every six hours rather than on PRs / merges to (#9301)

`develop`
parent d5baafd7
...@@ -1331,16 +1331,6 @@ jobs: ...@@ -1331,16 +1331,6 @@ jobs:
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
- run:
# This is a workaround for how check-changed doesn't work in
# the merge queue. By running this check the kontrol tests will
# run on PR builds and on develop, but not the merge queue.
name: Ensure PR/develop
command: |
if [ -z "$CIRCLE_PULL_REQUEST" ] && [ "$CIRCLE_BRANCH" != "develop" ]; then
echo "Not a PR or develop branch, skipping kontrol tests"
circleci step halt
fi
- run: - run:
name: Checkout Submodule name: Checkout Submodule
command: make submodules command: make submodules
...@@ -1354,6 +1344,7 @@ jobs: ...@@ -1354,6 +1344,7 @@ jobs:
working_directory: ./packages/contracts-bedrock working_directory: ./packages/contracts-bedrock
- store_artifacts: - store_artifacts:
path: ./packages/contracts-bedrock/kontrol-results_latest.tar.gz path: ./packages/contracts-bedrock/kontrol-results_latest.tar.gz
- notify-failures-on-develop
workflows: workflows:
main: main:
...@@ -1622,7 +1613,6 @@ workflows: ...@@ -1622,7 +1613,6 @@ workflows:
- check-generated-mocks-op-service - check-generated-mocks-op-service
- cannon-go-lint-and-test - cannon-go-lint-and-test
- cannon-build-test-vectors - cannon-build-test-vectors
- kontrol-tests
- shellcheck/check: - shellcheck/check:
name: shell-check name: shell-check
# We don't need the `exclude` key as the orb detects the `.shellcheckrc` # We don't need the `exclude` key as the orb detects the `.shellcheckrc`
...@@ -1855,6 +1845,14 @@ workflows: ...@@ -1855,6 +1845,14 @@ workflows:
- slack - slack
- oplabs-fpp-nodes - oplabs-fpp-nodes
scheduled-kontrol-tests:
when:
equal: [ build_six_hours, <<pipeline.schedule.name>> ]
jobs:
- kontrol-tests:
context:
- slack
scheduled-docker-publish: scheduled-docker-publish:
when: when:
equal: [ build_hourly, <<pipeline.schedule.name>> ] equal: [ build_hourly, <<pipeline.schedule.name>> ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment