1
0
mirror of synced 2025-12-19 18:14:56 -05:00

ci(fix): reduce workflow inputs from 12/11 to 10 to comply with GitHub limit (#69790)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Aaron ("AJ") Steers
2025-11-20 15:57:19 -08:00
committed by GitHub
parent ea5e3ebc4c
commit 062f274d78
2 changed files with 42 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
name: Connector CI - Run Live Validation Tests name: On-Demand Live Connector Validation Tests
concurrency: concurrency:
# This is the name of the concurrency group. It is used to prevent concurrent runs of the same workflow. # This is the name of the concurrency group. It is used to prevent concurrent runs of the same workflow.
@@ -64,13 +64,16 @@ on:
description: Disable proxy for requests description: Disable proxy for requests
default: "false" default: "false"
type: boolean type: boolean
connection_subset:
description: The subset of connections to select from. # Workaround: GitHub currently supports a max of 10 inputs for workflow_dispatch events.
default: "sandboxes" # We need to consolidate some inputs to stay within this limit.
type: choice # connection_subset:
options: # description: The subset of connections to select from.
- sandboxes # default: "sandboxes"
- all # type: choice
# options:
# - sandboxes
# - all
jobs: jobs:
live_tests: live_tests:
@@ -146,7 +149,10 @@ jobs:
- name: Setup Connection Subset Option - name: Setup Connection Subset Option
if: github.event_name == 'workflow_dispatch' if: github.event_name == 'workflow_dispatch'
run: | run: |
echo "CONNECTION_SUBSET=--connector_live_tests.connection-subset=${{ github.event.inputs.connection_subset }}" >> $GITHUB_ENV echo "CONNECTION_SUBSET=--connector_live_tests.connection-subset=sandboxes" >> $GITHUB_ENV
# TODO: re-enable when we have resolved the more-than-10-inputs issue in workflow_dispatch.
# run: |
# echo "CONNECTION_SUBSET=--connector_live_tests.connection-subset=${{ github.event.inputs.connection_subset }}" >> $GITHUB_ENV
# NOTE: We still use a PAT here (rather than a GitHub App) because the workflow needs # NOTE: We still use a PAT here (rather than a GitHub App) because the workflow needs
# permissions to add commits to our main repo as well as forks. This will only work on # permissions to add commits to our main repo as well as forks. This will only work on

View File

@@ -1,4 +1,4 @@
name: Connector Ops CI - Run Regression Tests name: On-Demand Connector Regression Tests
concurrency: concurrency:
# This is the name of the concurrency group. It is used to prevent concurrent runs of the same workflow. # This is the name of the concurrency group. It is used to prevent concurrent runs of the same workflow.
@@ -64,17 +64,20 @@ on:
description: Disable proxy for requests description: Disable proxy for requests
default: "false" default: "false"
type: boolean type: boolean
connection_subset:
description: The subset of connections to select from. # Workaround: GitHub currently supports a max of 10 inputs for workflow_dispatch events.
default: "sandboxes" # We need to consolidate some inputs to stay within this limit.
type: choice # connection_subset:
options: # description: The subset of connections to select from.
- sandboxes # default: "sandboxes"
- all # type: choice
control_version: # options:
description: The version to use as a control version. This is useful when the version defined in the cloud registry does not have a lot of usage (either because a progressive rollout is underway or because a new version has just been released). # - sandboxes
required: false # - all
type: string # control_version:
# description: The version to use as a control version. This is useful when the version defined in the cloud registry does not have a lot of usage (either because a progressive rollout is underway or because a new version has just been released).
# required: false
# type: string
jobs: jobs:
regression_tests: regression_tests:
@@ -158,16 +161,22 @@ jobs:
- name: Setup Connection Subset Option - name: Setup Connection Subset Option
if: github.event_name == 'workflow_dispatch' if: github.event_name == 'workflow_dispatch'
run: | run: |
echo "CONNECTION_SUBSET=--connector_live_tests.connection-subset=${{ github.event.inputs.connection_subset }}" >> $GITHUB_ENV echo "CONNECTION_SUBSET=--connector_live_tests.connection-subset=sandboxes" >> $GITHUB_ENV
# TODO: re-enable when we have resolved the more-than-10-inputs issue in workflow_dispatch.
# run: |
# echo "CONNECTION_SUBSET=--connector_live_tests.connection-subset=${{ github.event.inputs.connection_subset }}" >> $GITHUB_ENV
- name: Setup Control Version - name: Setup Control Version
if: github.event_name == 'workflow_dispatch' if: github.event_name == 'workflow_dispatch'
run: | run: |
if [ -n "${{ github.event.inputs.control_version }}" ]; then echo "CONTROL_VERSION=" >> $GITHUB_ENV
echo "CONTROL_VERSION=--connector_live_tests.control-version=${{ github.event.inputs.control_version }}" >> $GITHUB_ENV # TODO: re-enable when we have resolved the more-than-10-inputs issue in workflow_dispatch.
else # run: |
echo "CONTROL_VERSION=" >> $GITHUB_ENV # if [ -n "${{ github.event.inputs.control_version }}" ]; then
fi # echo "CONTROL_VERSION=--connector_live_tests.control-version=${{ github.event.inputs.control_version }}" >> $GITHUB_ENV
# else
# echo "CONTROL_VERSION=" >> $GITHUB_ENV
# fi
# NOTE: We still use a PAT here (rather than a GitHub App) because the workflow needs # NOTE: We still use a PAT here (rather than a GitHub App) because the workflow needs
# permissions to add commits to our main repo as well as forks. This will only work on # permissions to add commits to our main repo as well as forks. This will only work on