Skip to content

Commit

Permalink
fromJSON is required
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 committed Mar 27, 2024
1 parent 44fc6e6 commit 5d378e9
Show file tree
Hide file tree
Showing 30 changed files with 54 additions and 54 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_conformance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
dependencies-versions:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
outputs:
helm-kong: ${{ steps.set-versions.outputs.helm-kong }}
Expand All @@ -25,7 +25,7 @@ jobs:
echo "helm-kong=$(yq -ojson -r '.integration.helm.kong' < .github/test_dependencies.yaml )" >> $GITHUB_OUTPUT
conformance-tests:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
name: ${{ matrix.name }}
runs-on: ubuntu-latest
needs: dependencies-versions
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_docker_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:

jobs:
prepare-tags:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.merge-tags.outputs.tags }}
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
echo "tags: ${{ steps.merge-tags.outputs.tags }}"
build:
timeout-minutes: ${{ vars.GHA_EXTENDED_TIMEOUT_MINUTES }}
timeout-minutes: ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES) }}
runs-on: ubuntu-latest
needs: prepare-tags
outputs:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/_e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ on:

jobs:
setup-e2e-tests:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
outputs:
test_names: ${{ steps.set_test_names.outputs.test_names }}
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
run: echo "Test names ${{ steps.set_test_names.outputs.test_names }}"

dependencies-versions:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
outputs:
kind: ${{ steps.set-versions.outputs.kind }}
Expand All @@ -92,7 +92,7 @@ jobs:
echo "istio=$(yq -r -ojson '.e2e.istio' < .github/test_dependencies.yaml | jq -c)" >> $GITHUB_OUTPUT
kind:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
if: ${{ !cancelled() }}
needs:
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
path: "*-tests.xml"

gke:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
if: ${{ inputs.run-gke }}
environment: "gcloud"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
path: "*-tests.xml"

istio:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
if: ${{ inputs.run-istio }}
runs-on: ubuntu-latest
needs: dependencies-versions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_envtest_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
envtest-tests:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
steps:
- name: checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_integration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ on:

jobs:
dependencies-versions:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
outputs:
kind: ${{ steps.set-versions.outputs.kind }}
Expand All @@ -61,7 +61,7 @@ jobs:
echo "helm-kong=$(yq -ojson -r '.integration.helm.kong' < .github/test_dependencies.yaml )" >> $GITHUB_OUTPUT
integration-tests:
timeout-minutes: ${{ vars.GHA_EXTENDED_TIMEOUT_MINUTES }}
timeout-minutes: ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES) }}
name: ${{ matrix.name }}
runs-on: ubuntu-latest
needs: dependencies-versions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_kongintegration_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
kongintegration-tests:
timeout-minutes: ${{ vars.GHA_EXTENDED_TIMEOUT_MINUTES }}
timeout-minutes: ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES) }}
runs-on: ubuntu-latest
steps:
- name: checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_linters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
lint:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_performance_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:

jobs:
performance-matrix:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
if: ${{ inputs.res-number-for-perf == '' }}
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
if-no-files-found: ignore

performance-target:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
if: ${{ inputs.res-number-for-perf != '' }}
runs-on: ubuntu-latest
strategy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_test_reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

jobs:
coverage:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
if: ${{ inputs.coverage && !cancelled() }}
runs-on: ubuntu-latest
steps:
Expand All @@ -42,7 +42,7 @@ jobs:
verbose: true

buildpulse-report:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
if: ${{ inputs.buildpulse && !cancelled() }}
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
unit-tests:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
steps:
- name: checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
backport:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
name: Backport
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:

jobs:
benchmark:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
name: Run Go benchmarks
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check_fixed_issues_references.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
check_issues_state:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
permissions:
issues: read
Expand All @@ -20,7 +20,7 @@ jobs:
run: ./hack/check_fixed_issues_references.sh

notify-on-slack:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
needs:
- check_issues_state
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_pr_labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
label:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
steps:
- uses: pmalek/verify-pr-label-action@v1.4.5
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:

jobs:
up-to-date:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
outputs:
status: ${{ steps.up-to-date.outputs.status }}
Expand All @@ -39,7 +39,7 @@ jobs:

# This job is used to check if the secrets are available. If they are not, we'll skip jobs that require them.
should-run-with-secrets:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
needs:
- up-to-date
Expand All @@ -57,7 +57,7 @@ jobs:
fi
tools:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
needs:
- up-to-date
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
# It allows to use this particular job as a required check for PRs.
# Ref: https://github.com/orgs/community/discussions/26822#discussioncomment-3305794
passed:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
needs:
- up-to-date
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
gcloud:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
environment: gcloud
runs-on: ubuntu-latest
steps:
Expand All @@ -25,7 +25,7 @@ jobs:
GOOGLE_LOCATION: ${{ secrets.GOOGLE_LOCATION }}

konnect:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
steps:
- name: checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:

jobs:
analyze:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
name: analyze
runs-on: ubuntu-latest
permissions:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/conformance_tests_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
dependencies-versions:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
outputs:
helm-kong: ${{ steps.set-versions.outputs.helm-kong }}
Expand All @@ -29,7 +29,7 @@ jobs:
echo "helm-kong=$(yq -ojson -r '.integration.helm.kong' < .github/test_dependencies.yaml )" >> $GITHUB_OUTPUT
generate-report:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
needs: dependencies-versions
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
ensure-nightly-image-was-built:
timeout-minutes: ${{ vars.GHA_EXTENDED_TIMEOUT_MINUTES }}
timeout-minutes: ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES) }}
runs-on: ubuntu-latest
steps:
- name: Check if image built this night exists
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:

notify-on-slack:
runs-on: ubuntu-latest
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
needs:
- ensure-nightly-image-was-built
- e2e-tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e_targeted.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:

jobs:
post-comment-in-pr:
timeout-minutes: ${{ vars.GHA_EXTENDED_TIMEOUT_MINUTES }}
timeout-minutes: ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES) }}
if: ${{ github.event.inputs.pr-number != '' }}
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
# We need to pick an image to use for the tests. If the input specified one, we use that. Otherwise, we use the one
# built by the previous job.
choose-image:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
if: ${{ !cancelled() }}
needs: build-image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e_trigger_via_label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
trigger-e2e-tests-targeted:
timeout-minutes: ${{ vars.GHA_EXTENDED_TIMEOUT_MINUTES }}
timeout-minutes: ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES) }}
if: contains(github.event.*.labels.*.name, 'ci/run-e2e')
runs-on: ubuntu-latest
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
fossa-scan:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
environment: "FOSSA"
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build-push-images:
timeout-minutes: ${{ vars.GHA_EXTENDED_TIMEOUT_MINUTES }}
timeout-minutes: ${{ fromJSON(vars.GHA_EXTENDED_TIMEOUT_MINUTES) }}
environment: 'Docker Push'
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/performance_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
ensure-nightly-image-was-built:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
steps:
- name: Check if image built this night exists
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
coverage: false

notify-on-slack:
timeout-minutes: ${{ vars.GHA_DEFAULT_TIMEOUT }}
timeout-minutes: ${{ fromJSON(vars.GHA_DEFAULT_TIMEOUT) }}
runs-on: ubuntu-latest
needs:
- ensure-nightly-image-was-built
Expand Down
Loading

0 comments on commit 5d378e9

Please sign in to comment.