From c546fb90954d7f078b0ae56e706f3c1fedddf615 Mon Sep 17 00:00:00 2001 From: Nicolas BRIERE Date: Mon, 16 Dec 2024 11:57:57 +0100 Subject: [PATCH] fix(emergency): increase retry and timeout. Pray for this :pray: --- .github/workflows/build-image.yml | 15 +++++------ .github/workflows/create-apk-artifact.yml | 8 +++--- .github/workflows/dotnet-publish.yml | 4 +-- .github/workflows/publish-apk-s3.yml | 4 +-- .github/workflows/publish-bundle-codepush.yml | 4 +-- .github/workflows/run-aws.yml | 10 +++---- .../workflows/run-docker-upload-artifact.yml | 16 ++++++------ .github/workflows/run-docker-with-db.yml | 22 ++++++++-------- .github/workflows/run-docker.yml | 26 +++++++++---------- .github/workflows/run-python.yml | 20 +++++++------- .github/workflows/terraform.yml | 4 +-- 11 files changed, 65 insertions(+), 68 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 9a41016..b3381a7 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -1,4 +1,4 @@ -name: 'BuildImage' +name: "BuildImage" on: workflow_call: @@ -51,14 +51,13 @@ on: image-version: value: ${{ jobs.build-image.outputs.image-version }} - jobs: build-image: runs-on: ubuntu-latest permissions: - contents: read - id-token: write - packages: write + contents: read + id-token: write + packages: write environment: name: ${{ inputs.environment_name }} env: @@ -88,8 +87,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} @@ -133,7 +132,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - + - name: Build uses: docker/build-push-action@v6 with: diff --git a/.github/workflows/create-apk-artifact.yml b/.github/workflows/create-apk-artifact.yml index 03757d8..99bd625 100644 --- a/.github/workflows/create-apk-artifact.yml +++ b/.github/workflows/create-apk-artifact.yml @@ -102,8 +102,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} @@ -163,7 +163,7 @@ jobs: node-version: ${{ inputs.node-version }} registry-url: "https://npm.pkg.github.com" scope: "@ZeroGachis" - cache: 'npm' + cache: "npm" - name: Get Smartway APK keystore if: ${{steps.get-existing-apk.outputs.need-new-apk == 'true'}} or ${{ inputs.environment == 'pullrequest' }} @@ -192,7 +192,7 @@ jobs: regex: '(.*)' replacement: '${{ steps.vault.outputs.CODE_PUSH_SERVER_URL }}' include: "^android/app/src/main/res/values/strings.xml" - + - name: Set code push key in string.xml if: ${{ inputs.environment != 'pullrequest' }} uses: mingjun97/file-regex-replace@v1 diff --git a/.github/workflows/dotnet-publish.yml b/.github/workflows/dotnet-publish.yml index b13f362..0698558 100644 --- a/.github/workflows/dotnet-publish.yml +++ b/.github/workflows/dotnet-publish.yml @@ -66,8 +66,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} diff --git a/.github/workflows/publish-apk-s3.yml b/.github/workflows/publish-apk-s3.yml index 439e89e..e1af96a 100644 --- a/.github/workflows/publish-apk-s3.yml +++ b/.github/workflows/publish-apk-s3.yml @@ -67,8 +67,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} diff --git a/.github/workflows/publish-bundle-codepush.yml b/.github/workflows/publish-bundle-codepush.yml index 61b1930..623fb7a 100644 --- a/.github/workflows/publish-bundle-codepush.yml +++ b/.github/workflows/publish-bundle-codepush.yml @@ -66,8 +66,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} diff --git a/.github/workflows/run-aws.yml b/.github/workflows/run-aws.yml index c15adc0..7fc6875 100644 --- a/.github/workflows/run-aws.yml +++ b/.github/workflows/run-aws.yml @@ -41,9 +41,9 @@ on: jobs: run-aws: permissions: - contents: read - id-token: write - packages: read + contents: read + id-token: write + packages: read runs-on: ubuntu-latest environment: name: ${{ inputs.environment_name }} @@ -71,8 +71,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} diff --git a/.github/workflows/run-docker-upload-artifact.yml b/.github/workflows/run-docker-upload-artifact.yml index 6b7c690..427f6b2 100644 --- a/.github/workflows/run-docker-upload-artifact.yml +++ b/.github/workflows/run-docker-upload-artifact.yml @@ -1,4 +1,4 @@ -name: 'Run-Docker-Command-Upload-Artifact' +name: "Run-Docker-Command-Upload-Artifact" on: workflow_call: @@ -64,11 +64,11 @@ jobs: run-docker: runs-on: ubuntu-latest permissions: - contents: read - id-token: write - packages: read - actions: write - checks: write + contents: read + id-token: write + packages: read + actions: write + checks: write environment: name: ${{ inputs.environment_name }} container: @@ -98,8 +98,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} diff --git a/.github/workflows/run-docker-with-db.yml b/.github/workflows/run-docker-with-db.yml index 1597a40..3555403 100644 --- a/.github/workflows/run-docker-with-db.yml +++ b/.github/workflows/run-docker-with-db.yml @@ -1,4 +1,4 @@ -name: 'Run-Docker-Command' +name: "Run-Docker-Command" on: workflow_call: @@ -68,11 +68,11 @@ jobs: run-docker: runs-on: ubuntu-latest permissions: - contents: read - id-token: write - packages: read - actions: write - checks: write + contents: read + id-token: write + packages: read + actions: write + checks: write environment: name: ${{ inputs.environment_name }} container: @@ -93,7 +93,7 @@ jobs: env: POSTGRES_PASSWORD: postgres ports: - - 5432:5432 + - 5432:5432 steps: - name: Tailscale @@ -111,8 +111,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} @@ -145,9 +145,9 @@ jobs: id: test-report if: ${{ always() && inputs.enable_test_report == true }} with: - name: '${{ inputs.test_report_name }}' + name: "${{ inputs.test_report_name }}" path: ${{ inputs.workdir }}/${{ inputs.test_report_path }} working-directory: ${{ inputs.workdir }} reporter: ${{ inputs.test_report_format }} max-annotations: 0 - list-tests: 'failed' + list-tests: "failed" diff --git a/.github/workflows/run-docker.yml b/.github/workflows/run-docker.yml index eddc32b..c4d7fb4 100644 --- a/.github/workflows/run-docker.yml +++ b/.github/workflows/run-docker.yml @@ -1,4 +1,4 @@ -name: 'Run-Docker-Command' +name: "Run-Docker-Command" on: workflow_call: @@ -40,8 +40,8 @@ on: required: false type: string aws_region: - required: false - type: string + required: false + type: string aws_github_role_name: required: false type: string @@ -68,11 +68,11 @@ jobs: run-docker: runs-on: ubuntu-latest permissions: - contents: read - id-token: write - packages: read - actions: write - checks: write + contents: read + id-token: write + packages: read + actions: write + checks: write environment: name: ${{ inputs.environment_name }} container: @@ -103,8 +103,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} @@ -125,7 +125,6 @@ jobs: aws-region: ${{ env.AWS_REGION }} role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/${{ inputs.aws_github_role_name }} - - name: run-command working-directory: ${{ inputs.workdir }} run: ${{ inputs.run_command }} @@ -135,10 +134,9 @@ jobs: id: test-report if: ${{ always() && inputs.enable_test_report == true }} with: - name: '${{ inputs.test_report_name }}' + name: "${{ inputs.test_report_name }}" path: ${{ inputs.workdir }}/${{ inputs.test_report_path }} reporter: ${{ inputs.test_report_format }} working-directory: ${{ inputs.workdir }} max-annotations: 0 - list-tests: 'failed' - + list-tests: "failed" diff --git a/.github/workflows/run-python.yml b/.github/workflows/run-python.yml index a25d934..b9e7dc0 100644 --- a/.github/workflows/run-python.yml +++ b/.github/workflows/run-python.yml @@ -39,8 +39,8 @@ on: required: false type: string aws_region: - required: false - type: string + required: false + type: string aws_github_role_name: required: false type: string @@ -63,10 +63,10 @@ jobs: run-python: runs-on: ubuntu-latest permissions: - contents: read - id-token: write - packages: read - checks: write + contents: read + id-token: write + packages: read + checks: write environment: name: ${{ inputs.environment_name }} env: @@ -91,8 +91,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }} @@ -124,8 +124,8 @@ jobs: id: test-report if: ${{ always() && inputs.enable_test_report == true }} with: - name: '${{ inputs.test_report_name }}' + name: "${{ inputs.test_report_name }}" path: ${{ inputs.test_report_path }} reporter: ${{ inputs.test_report_format }} max-annotations: 0 - list-tests: 'failed' + list-tests: "failed" diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 3672307..f037296 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -104,8 +104,8 @@ jobs: id: secrets with: action: hashicorp/vault-action@v3 - attempt_limit: 5 - attempt_delay: 150 + attempt_limit: 15 + attempt_delay: 500 with: | url: ${{ env.VAULT_URL }} role: ${{ env.VAULT_GITHUB_ACTIONS_ROLE }}