Skip to content

Commit

Permalink
[forge] Implement ability to run multiple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
perryjrandall committed Sep 21, 2022
1 parent 1279411 commit 06abbab
Show file tree
Hide file tree
Showing 14 changed files with 925 additions and 147 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/forge-continuous.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Forge Continuous"
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"
pull_request:
paths:
- 'testsuite/**.py'

# cancel redundant builds
concurrency:
# cancel redundant builds on PRs (only on PR, not on branches)
group: ${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.ref) || github.sha }}
cancel-in-progress: true

permissions:
contents: read
id-token: write #required for GCP Workload Identity federation which we use to login into Google Artifact Registry
issues: write
pull-requests: write

jobs:
forge-continuous:
uses: ./.github/workflows/run-forge.yaml
secrets: inherit
with:
COMMENT_HEADER: forge-continuous
# Use the cache ID as the Forge namespace so we can limit Forge test concurrency on k8s, since Forge
# test lifecycle is separate from that of GHA. This protects us from the case where many Forge tests are triggered
# by this GHA. If there is a Forge namespace collision, Forge will pre-empt the existing test running in the namespace.
FORGE_NAMESPACE: forge-continuous
FORGE_TEST_SUITE: continuous
1 change: 0 additions & 1 deletion .github/workflows/run-forge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ on:
FORGE_TEST_SUITE:
required: false
type: string
default: land_blocking
description: Test suite to run
POST_TO_SLACK:
required: false
Expand Down
6 changes: 3 additions & 3 deletions testsuite/fixtures/forge-test-runner-template.fixture

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testsuite/fixtures/testFormatComment.fixture

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testsuite/fixtures/testFormatPreComment.fixture

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions testsuite/fixtures/testGetHumioForgeLinkAbsolute.fixture

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions testsuite/fixtures/testGetHumioForgeLinkRelative.fixture

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions testsuite/fixtures/testGetHumioLogsLinkAbsolute.fixture

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions testsuite/fixtures/testGetHumioLogsLinkRelative.fixture

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 06abbab

Please sign in to comment.