Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dry run logic #1921

Merged
merged 1 commit into from
May 27, 2024
Merged

Conversation

ddelnano
Copy link
Member

@ddelnano ddelnano commented May 27, 2024

Summary: Fix use of GitHub expression to fix image mirroring dry run logic

The version of the workflow on main always runs with --dry-run provided regardless of the input value. I thought that the 'else' case of a ternary could be omitted, but that was incorrect. The latest implementation aligns with the example in the GitHub docs.

Relevant Issues: Precursor to fixing px-sock-shop (#1905)

Type of change: /kind bug

Test Plan: Updated based on the docs. Needs to be validated with a workflow run against a branch in the pixie-io org

@ddelnano ddelnano force-pushed the ddelnano/fix-dry-run-logic branch from 8b2832f to 73578af Compare May 27, 2024 05:22
@ddelnano ddelnano requested a review from vihangm May 27, 2024 05:26
@ddelnano ddelnano marked this pull request as ready for review May 27, 2024 05:26
@ddelnano ddelnano requested a review from a team as a code owner May 27, 2024 05:26
@ddelnano ddelnano force-pushed the ddelnano/fix-dry-run-logic branch from 1311177 to 522fdd3 Compare May 27, 2024 06:22
@ddelnano ddelnano merged commit 8d72a6b into pixie-io:main May 27, 2024
20 checks passed
@ddelnano ddelnano deleted the ddelnano/fix-dry-run-logic branch May 27, 2024 06:28
ddelnano added a commit that referenced this pull request May 28, 2024
…te (#1923)

Summary: Remove dry_run inputs responsible for regbot dry runs to always
execute

I attempted to fix the bug where `--dry-run` is always passed to the
`regbot` cli in the mirror workflows in #1921. That attempt
unfortunatley did not work, so let's remove the input and the cli
argument templating entirely. Running `regbot --dry-run` locally is an
easy enough mechanism for testing the workflow logic.

Relevant Issues: Precursor to fixing px-sock-shop
(#1905)

Type of change: /kind bug

Test Plan: Expecting that the next run off main after this change will
result in mirrored demo container images

Signed-off-by: Dom Del Nano <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants