-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,828 additions
and
577 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,19 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
name: Command Dispatch for testing | ||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
env: | ||
ALT_AWS_ACCESS_KEY_ID: ${{ secrets.ALT_AWS_ACCESS_KEY_ID }} | ||
ALT_AWS_SECRET_ACCESS_KEY: ${{ secrets.ALT_AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: us-west-2 | ||
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
GOLANGCI_LINT_VERSION: v1.61.0 | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} | ||
PROVIDER: eks | ||
PUBLISH_REPO_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
PUBLISH_REPO_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }} | ||
PULUMI_API: https://api.pulumi-staging.io | ||
PULUMI_ENABLE_RESOURCE_REFERENCES: "1" | ||
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/.. | ||
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget | ||
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | ||
PYPI_USERNAME: __token__ | ||
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }} | ||
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
TF_APPEND_USER_AGENT: pulumi | ||
jobs: | ||
command-dispatch-for-testing: | ||
name: command-dispatch-for-testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: peter-evans/slash-command-dispatch@v4 | ||
with: | ||
commands: | | ||
run-acceptance-tests | ||
release | ||
issue-type: pull-request | ||
permission: write | ||
reaction-token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: pulumi/pulumi-eks | ||
token: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
name: command-dispatch | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
- edited | ||
- uses: actions/checkout@v4 | ||
- name: Run Build | ||
uses: peter-evans/slash-command-dispatch@v4 | ||
with: | ||
token: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
reaction-token: ${{ secrets.GITHUB_TOKEN }} | ||
commands: run-acceptance-tests | ||
permission: write | ||
issue-type: pull-request | ||
repository: pulumi/pulumi-eks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
env: | ||
ALT_AWS_ACCESS_KEY_ID: ${{ secrets.ALT_AWS_ACCESS_KEY_ID }} | ||
ALT_AWS_SECRET_ACCESS_KEY: ${{ secrets.ALT_AWS_SECRET_ACCESS_KEY }} | ||
ALT_AWS_PROFILE: ${{ secrets.ALT_AWS_PROFILE }} | ||
AWS_REGION: us-west-2 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GOLANGCI_LINT_VERSION: v1.61.0 | ||
|
@@ -256,12 +255,6 @@ jobs: | |
role-duration-seconds: 7200 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Configure AWS CLI | ||
run: | | ||
aws configure set default.aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws configure set default.aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws configure set aws_access_key_id ${{ secrets.ALT_AWS_ACCESS_KEY_ID }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
aws configure set aws_secret_access_key ${{ secrets.ALT_AWS_SECRET_ACCESS_KEY }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
- name: Link nodejs binary for testing | ||
run: | | ||
cd ${{ github.workspace }}/bin | ||
|
@@ -270,12 +263,12 @@ jobs: | |
id: test_split | ||
uses: hashicorp-forge/[email protected] | ||
with: | ||
working-directory: examples | ||
working-directory: tests | ||
flags: -tags=nodejs | ||
total: ${{ matrix.total }} | ||
index: ${{ matrix.index }} | ||
- name: Run tests | ||
run: cd examples && go test -tags=nodejs -v -json -count=1 -cover -timeout 3h -parallel 6 . --run="${{ steps.test_split.outputs.run}}" 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
run: cd tests && go test -tags=nodejs -v -json -count=1 -cover -timeout 3h -parallel 6 . --run="${{ steps.test_split.outputs.run}}" 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 10 | ||
|
@@ -367,12 +360,6 @@ jobs: | |
role-duration-seconds: 7200 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Configure AWS CLI | ||
run: | | ||
aws configure set default.aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws configure set default.aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws configure set aws_access_key_id ${{ secrets.ALT_AWS_ACCESS_KEY_ID }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
aws configure set aws_secret_access_key ${{ secrets.ALT_AWS_SECRET_ACCESS_KEY }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
- name: Link nodejs binary for testing | ||
run: | | ||
cd ${{ github.workspace }}/bin | ||
|
@@ -381,12 +368,12 @@ jobs: | |
id: test_split | ||
uses: hashicorp-forge/[email protected] | ||
with: | ||
working-directory: examples | ||
working-directory: tests | ||
flags: -tags=python | ||
total: ${{ matrix.total }} | ||
index: ${{ matrix.index }} | ||
- name: Run tests | ||
run: cd examples && go test -tags=python -v -json -count=1 -cover -timeout 3h -parallel 6 . --run="${{ steps.test_split.outputs.run}}" 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
run: cd tests && go test -tags=python -v -json -count=1 -cover -timeout 3h -parallel 6 . --run="${{ steps.test_split.outputs.run}}" 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -478,18 +465,12 @@ jobs: | |
role-duration-seconds: 7200 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Configure AWS CLI | ||
run: | | ||
aws configure set default.aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws configure set default.aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws configure set aws_access_key_id ${{ secrets.ALT_AWS_ACCESS_KEY_ID }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
aws configure set aws_secret_access_key ${{ secrets.ALT_AWS_SECRET_ACCESS_KEY }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
- name: Link nodejs binary for testing | ||
run: | | ||
cd ${{ github.workspace }}/bin | ||
yarn install && yarn link @pulumi/eks | ||
- name: Run tests | ||
run: cd examples && go test -tags=dotnet -v -json -count=1 -cover -timeout 3h -parallel 6 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
run: cd tests && go test -tags=dotnet -v -json -count=1 -cover -timeout 3h -parallel 6 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
test-go: | ||
name: Run Go Tests | ||
needs: | ||
|
@@ -573,18 +554,12 @@ jobs: | |
role-duration-seconds: 7200 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Configure AWS CLI | ||
run: | | ||
aws configure set default.aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws configure set default.aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws configure set aws_access_key_id ${{ secrets.ALT_AWS_ACCESS_KEY_ID }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
aws configure set aws_secret_access_key ${{ secrets.ALT_AWS_SECRET_ACCESS_KEY }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
- name: Link nodejs binary for testing | ||
run: | | ||
cd ${{ github.workspace }}/bin | ||
yarn install && yarn link @pulumi/eks | ||
- name: Run tests | ||
run: cd examples && go test -tags=go -v -json -count=1 -cover -timeout 3h -parallel 6 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
run: cd tests && go test -tags=go -v -json -count=1 -cover -timeout 3h -parallel 6 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
name: cron | ||
"on": | ||
schedule: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
inputs: | ||
runTests: | ||
type: string | ||
description: "The tests in examples to record snapshots for, as a regex for `go test -run`. Defaults to `TestExamplesUpgrades`" | ||
description: "The tests to record snapshots for, as a regex for `go test -run`. Defaults to `TestExamplesUpgrades`" | ||
required: true | ||
default: "TestExamplesUpgrades" | ||
targetBranch: | ||
|
@@ -16,7 +16,6 @@ on: | |
env: | ||
ALT_AWS_ACCESS_KEY_ID: ${{ secrets.ALT_AWS_ACCESS_KEY_ID }} | ||
ALT_AWS_SECRET_ACCESS_KEY: ${{ secrets.ALT_AWS_SECRET_ACCESS_KEY }} | ||
ALT_AWS_PROFILE: ${{ secrets.ALT_AWS_PROFILE }} | ||
AWS_REGION: us-west-2 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
@@ -209,12 +208,6 @@ jobs: | |
role-duration-seconds: 7200 | ||
role-session-name: ${{ env.PROVIDER }}@githubActions | ||
role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} | ||
- name: Configure AWS CLI | ||
run: | | ||
aws configure set default.aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws configure set default.aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws configure set aws_access_key_id ${{ secrets.ALT_AWS_ACCESS_KEY_ID }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
aws configure set aws_secret_access_key ${{ secrets.ALT_AWS_SECRET_ACCESS_KEY }} --profile ${{ secrets.ALT_AWS_PROFILE }} | ||
- name: Clear GitHub Actions Ubuntu runner disk space | ||
uses: jlumbroso/[email protected] | ||
with: | ||
|
@@ -231,7 +224,7 @@ jobs: | |
- name: Record provider test snapshots | ||
run: | | ||
cd provider && go test -tags nodejs -run '${{ inputs.runTests }}' -provider-snapshot -v -json -count=1 -cover -timeout 4h -parallel 20 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
cd tests && go test -tags nodejs -run '${{ inputs.runTests }}' -provider-snapshot -v -json -count=1 -cover -timeout 4h -parallel 20 . 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
# TODO,tkappler Not sure why this is happening, but gotestfmt-action seems to download and unpack into the repository's root folder. | ||
# https://github.com/GoTestTools/gotestfmt-action/blob/v2/index.js#L6 | ||
|
Oops, something went wrong.