Skip to content

Harden Gadget deploy and drop the redundant test job - #180

Merged
kai-nguyen-aligent merged 1 commit into
mainfrom
feat/PJH-146-gadget-workflow-improvements
Oct 22, 2026
Merged

kai-nguyen-aligent merged 1 commit into
mainfrom
feat/PJH-146-gadget-workflow-improvements

Conversation

@kai-nguyen-aligent

@kai-nguyen-aligent kai-nguyen-aligent commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Description of the proposed changes

  • Add a settle-wait step and retry-on-push loop (matching the pattern already used in the PR-preview workflow) to gadget-deploy.yml's deploy job, so pushing to the freshly-created temp environment doesn't race Gadget's background file copy
  • Remove the test job, the test input, and the gadget-test-api-key secret from gadget-deploy.yml, since the job did nothing beyond invoking yarn test which is redundant.
  • Rename gadget-api-token to ggt-cli-token because they are different thing in Gadget.
  • Update docs/gadget-deploy.md and README.md to match

Notes to reviewers

  • Toggl Code: PJH-146: Code Review
  • We only have couple of projects that use Gadget and only 2 of them are using this reusable workflow so updating is easy.
  • When you've finished leaving feedback, please add a final comment to the PR tagging the author, letting them know that you have finished leaving feedback

@kai-nguyen-aligent

Copy link
Copy Markdown
Contributor Author

@Zigr1 @aligent-phil It would be good if you can setup your workflows to use this so we no longer need to do things in Gadget console.
@jackmacaa @michael-west-aligent tag you 2 for updating yours.

Comment thread .github/workflows/gadget-deploy.yml
Comment thread .github/workflows/gadget-deploy.yml
@AdamJHall

Copy link
Copy Markdown
Contributor

@kai-nguyen-aligent,

Approved, just wondering though do we have a contact at Gadget we can ask about adding a --wait flag so we don't need the sleep?

@jackmacaa

Copy link
Copy Markdown

@kai-nguyen-aligent,

Approved, just wondering though do we have a contact at Gadget we can ask about adding a --wait flag so we don't need the sleep?

There is a Discord channel we can contact them on, also Jarrod would have one of their email addresses.

@kai-nguyen-aligent
kai-nguyen-aligent merged commit 10451df into main Oct 22, 2026
3 checks passed
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.

5 participants