Skip to content

Commit

Permalink
Merge branch 'mirroring-basvandijk/github-release-testing-workflow' i…
Browse files Browse the repository at this point in the history
…nto 'master'

Syncing basvandijk/github-release-testing-workflow from GitHub

This workflow runs on pushes to the rc--\* and hotfix--\* branches and tests things like nightly and staging system-tests. 

See merge request dfinity-lab/public/ic!19186
  • Loading branch information
marko-k0 committed May 8, 2024
2 parents cd5224a + 2cc8c74 commit 00550d0
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 23 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/release-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Release Testing

on:
push:
branches:
- 'hotfix-*-rc--*'
- 'rc--*'
workflow_dispatch:

env:
AWS_SHARED_CREDENTIALS_CONTENT: ${{ secrets.AWS_SHARED_CREDENTIALS_FILE }}
BAZEL_STARTUP_ARGS: "--output_base=/var/tmp/bazel-output/"
CI_COMMIT_SHA: ${{ github.sha }}
CI_COMMIT_REF_PROTECTED: ${{ github.ref_protected }}
CI_JOB_NAME: ${{ github.job }}
CI_JOB_ID: ${{ github.job }} # github does not expose this variable https://github.com/orgs/community/discussions/8945
CI_JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
CI_PIPELINE_SOURCE: ${{ github.event_name }}
CI_PROJECT_DIR: ${{ github.workspace }}
CI_MERGE_REQUEST_TARGET_BRANCH_NAME: ${{ github.event.pull_request.base.ref }}
ROOT_PIPELINE_ID: ${{ github.run_id }}

jobs:
bazel-system-test-nightly:
name: Bazel System Test Nightly
runs-on:
labels: bazel-runner-large
container:
image: ghcr.io/dfinity-sandbox/ic-build@sha256:994f76fcc90400ec9f8be3d540bd529ff1b3768b7f7f6963887022c57ec1ab24
timeout-minutes: 180 # 3 hours
if: ${{ vars.RUN_CI == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run Bazel System Test Nightly
id: bazel-test-all
uses: ./.github/actions/bazel-test-all/
with:
BAZEL_COMMAND: "test"
BAZEL_TARGETS: "//... --deleted_packages=gitlab-ci/src/gitlab_config"
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
BAZEL_EXTRA_ARGS: "--keep_going --verbose_failures --test_tag_filters=system_test_nightly"
- name: After script
run: |
bazel clean
bazel-system-test-staging:
name: Bazel System Test Staging
continue-on-error: True
runs-on:
labels: bazel-runner-large
container:
image: ghcr.io/dfinity-sandbox/ic-build@sha256:994f76fcc90400ec9f8be3d540bd529ff1b3768b7f7f6963887022c57ec1ab24
timeout-minutes: 180 # 3 hours
if: ${{ vars.RUN_CI == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run Bazel System Test Staging
id: bazel-test-all
uses: ./.github/actions/bazel-test-all/
with:
BAZEL_COMMAND: "test"
BAZEL_TARGETS: "//... --deleted_packages=gitlab-ci/src/gitlab_config"
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
BAZEL_EXTRA_ARGS: "--keep_going --verbose_failures --test_tag_filters=system_test_staging"
- name: After script
run: |
bazel clean
23 changes: 0 additions & 23 deletions .github/workflows/schedule-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,6 @@ env:
ROOT_PIPELINE_ID: ${{ github.run_id }}

jobs:
bazel-system-test-nightly:
name: Bazel System Test Nightly
runs-on:
labels: bazel-runner-large
container:
image: ghcr.io/dfinity-sandbox/ic-build@sha256:994f76fcc90400ec9f8be3d540bd529ff1b3768b7f7f6963887022c57ec1ab24
timeout-minutes: 180 # 3 hours
if: ${{ vars.RUN_CI == 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run Bazel System Test Nightly
id: bazel-test-all
uses: ./.github/actions/bazel-test-all/
with:
BAZEL_COMMAND: "test"
BAZEL_TARGETS: "//... --deleted_packages=gitlab-ci/src/gitlab_config"
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
BAZEL_EXTRA_ARGS: "--keep_going --verbose_failures --test_tag_filters=system_test_nightly"
- name: After script
run: |
bazel clean
# TODO: there was some issue with this job so commented out for now:
#
# rust-benchmarks:
Expand Down

0 comments on commit 00550d0

Please sign in to comment.