feat(coprocessor): slow lane for dependent ops #6157
Workflow file for this run
This file contains hidden or 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
| name: charts-helm-checks | |
| on: | |
| pull_request: | |
| permissions: {} | |
| env: | |
| HELM_VERSION: v3.16.4 | |
| jobs: | |
| check-changes: | |
| name: charts-helm-checks/check-changes | |
| permissions: | |
| actions: 'read' # Required to read workflow run information | |
| contents: 'read' # Required to checkout repository code | |
| pull-requests: 'read' # Required to read pull request information | |
| runs-on: ubuntu-latest | |
| outputs: | |
| changes-charts: ${{ steps.filter.outputs.charts }} | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: 'false' | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
| id: filter | |
| with: | |
| filters: | | |
| charts: | |
| - '.github/workflows/charts-helm-checks.yml' | |
| - 'charts/**' | |
| lint: | |
| name: charts-helm-checks/lint | |
| needs: check-changes | |
| if: ${{ needs.check-changes.outputs.changes-charts == 'true' }} | |
| runs-on: 'ubuntu-latest' | |
| permissions: | |
| contents: 'read' # Required to checkout repository code | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: 'false' | |
| - name: Lint | |
| uses: WyriHaximus/github-action-helm3@fc4ba26e75cf5d08182c6ce3b72623c8bfd7272b # v3.1.0 | |
| with: | |
| exec: helm lint charts/* | |
| - name: Assert host-listener cap is shared | |
| uses: WyriHaximus/github-action-helm3@fc4ba26e75cf5d08182c6ce3b72623c8bfd7272b # v3.1.0 | |
| with: | |
| exec: | | |
| # CI-only sentinel used to verify all HL types render the same cap. | |
| # This value is not a recommended runtime setting. | |
| cap_sentinel=42 | |
| rendered="$(helm template test charts/coprocessor \ | |
| --set hostListener.enabled=true \ | |
| --set hostListenerPoller.enabled=true \ | |
| --set hostListenerCatchupOnly.enabled=true \ | |
| --set dependentOps.maxPerChain=${cap_sentinel})" | |
| all_count="$(printf '%s\n' "$rendered" | grep -c -- '--dependent-ops-max-per-chain=' || true)" | |
| shared_count="$(printf '%s\n' "$rendered" | grep -c -- "--dependent-ops-max-per-chain=${cap_sentinel}" || true)" | |
| if [ "$all_count" -ne 3 ] || [ "$shared_count" -ne 3 ]; then | |
| echo "expected 3 shared --dependent-ops-max-per-chain=${cap_sentinel} args, got all=${all_count} shared=${shared_count}" | |
| exit 1 | |
| fi | |
| test: | |
| name: charts-helm-checks/test (bpr) | |
| needs: check-changes | |
| if: ${{ needs.check-changes.outputs.changes-charts == 'true' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: 'read' # Required to checkout repository code | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Helm | |
| uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 #v4.2.0 | |
| with: | |
| version: ${{ env.HELM_VERSION }} | |
| - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b #v5.3.0 | |
| with: | |
| python-version: '3.x' | |
| check-latest: true | |
| - name: Set up chart-testing | |
| uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b #v2.7.0 | |
| with: | |
| yamale_version: '6.0.0' | |
| - name: Run chart-testing (list-changed) | |
| id: list-changed | |
| run: | | |
| changed=$(ct list-changed --config .github/config/ct.yaml) | |
| if [[ -n "$changed" ]]; then | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Run chart-testing (lint) | |
| if: steps.list-changed.outputs.changed == 'true' | |
| run: ct lint --config .github/config/ct.yaml |