Skip to content

Commit

Permalink
connectors-ci: dynamic dagger pipeline name (#26886)
Browse files Browse the repository at this point in the history
* connectors-ci: dynamic dagger pipeline name

* tmp

* add retry logic

* tmp

* Revert "tmp"

This reverts commit 976feeb.

* Revert "tmp"

This reverts commit 5682a9a.

* Revert "add retry logic"

This reverts commit 71e0749.

* fix typo on GHA input
  • Loading branch information
alafanechere committed Jun 1, 2023
1 parent 5887a0f commit a630416
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish_connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ jobs:
# As speed is not a concern in this context I think not publishing connectors in parallel is fine.
subcommand: "connectors --concurrency=1 --execute-timeout=3600 --modified publish --main-release"
context: "master"
github_token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
- name: Publish connectors [manual]
id: publish-connectors
if: github.event_name == 'workflow_dispatch'
uses: ./.github/actions/run-dagger-pipeline
with:
subcommand: "connectors ${{ github.event.inputs.connectors-options }} publish ${{ github.event.inputs.publish-options }}"
context: "manual"
github-token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
github_token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ async def run_connectors_pipelines(
async with dagger.Connection(Config(log_output=sys.stderr, execute_timeout=execute_timeout)) as dagger_client:
async with anyio.create_task_group() as tg:
for context in contexts:
context.dagger_client = dagger_client.pipeline(pipeline_name)
context.dagger_client = dagger_client.pipeline(f"{pipeline_name} - {context.connector.technical_name}")
tg.start_soon(connector_pipeline, context, semaphore, *args)
return contexts

0 comments on commit a630416

Please sign in to comment.