Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Test and fix refactored action, with polling feature #14

Merged
merged 27 commits into from
Sep 1, 2021

Conversation

singhprd
Copy link
Contributor

@singhprd singhprd commented Aug 30, 2021

Ensure the refactored action works as expected, and can poll for Harness deployment status.

  • Logs out the Harness UI url when logging the deploy status, because the GitHub Actions UI can hide older logs, making printing it out earlier in the run not very useful, as you can't see it until the end of the run.

Some follow up work and tidying up to do, but this does at least work:
https://github.com/fac/freeagent/runs/3482058001?check_suite_focus=true

@singhprd singhprd changed the base branch from v1 to main August 30, 2021 15:31
@singhprd singhprd changed the title fix updated harness action Debug updated harness action Aug 31, 2021
@singhprd singhprd changed the title Debug updated harness action Test and fix refactored action, that can also poll Sep 1, 2021
@singhprd singhprd changed the title Test and fix refactored action, that can also poll Test and fix refactored action, with polling feature Sep 1, 2021
["🚀 Deployment pipeline is now running on Harness"],
[
"Harness deploy submitted, view at app.harness.io/#/account/aaa/app/bbb/pipeline-execution/ccc/workflow-execution/undefined/details",
],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test isn't ideal because it's too specific, but also because it doesn't actually test what we need it to here - that setting the wait for deploy option does something different. I'm pretty sure it's because the spy isn't the same instance as the one that is used by the watchDeployment function.
Leaving it here intentionally to follow back up on as a PR on it's own, rather than roll it into the wider PR here.

@singhprd singhprd marked this pull request as ready for review September 1, 2021 09:10
Copy link

@stevenwilliamson stevenwilliamson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tine comment re docs

@singhprd
Copy link
Contributor Author

singhprd commented Sep 1, 2021

@stevenwilliamson did you leave a comment anywhere, or did I miss it!? 😄

If you're wondering about docs, I've already merged down some of this to main, and have updated the readme over there:
https://github.com/fac/harness-deploy-action/tree/main#usage

@singhprd singhprd merged commit 9ab0a5e into main Sep 1, 2021
@singhprd singhprd deleted the fix-updated-harness-action branch September 1, 2021 09:19
@singhprd
Copy link
Contributor Author

singhprd commented Sep 1, 2021

Actually just going to merge this to main, and have any discussions on the PR to update v1 with main:
#15

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants