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

Log the warning that agent pool cleanup failed #403

Merged
merged 1 commit into from
May 17, 2022

Conversation

annawinkler
Copy link
Contributor

@annawinkler annawinkler commented May 17, 2022

Description

Log the message that the agent pool cleanup failed. The org cleanup will cleanup the agent pool, and if that fails, we rebuild everything every 24 hours. This does not need to be a test failure.

Testing plan

  1. Run the tests
  2. They pass! (Right now they are failing)

@@ -60,7 +60,7 @@ func createAgentPool(t *testing.T, client *Client, org *Organization) (*AgentPoo

return pool, func() {
if err := client.AgentPools.Delete(ctx, pool.ID); err != nil {
t.Errorf("Error destroying agent pool! WARNING: Dangling resources "+
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should do the same thing on org cleanup. I think this error may prevent org cleanup until org delete is async

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK - is there a way we could confirm that?

Copy link
Collaborator

@brandonc brandonc May 17, 2022

Choose a reason for hiding this comment

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

No, aside from seeing if we hit any new dangling resource errors without it. Over time.

@brandonc brandonc merged commit 11a4eb9 into main May 17, 2022
@brandonc brandonc deleted the aw/update-test-agent-pools branch May 17, 2022 22:41
@github-actions
Copy link

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

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.

None yet

2 participants