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: bucket not found but can't be created #2005

Merged
merged 1 commit into from
Jun 4, 2021
Merged

Fix: bucket not found but can't be created #2005

merged 1 commit into from
Jun 4, 2021

Conversation

CristianGM
Copy link
Contributor

@CristianGM CristianGM commented Jun 3, 2021

Flank was showing:

Warning: Failed to make bucket for ...
Cause: Sorry, that name is not available. Please try a different one.

It didn't find the bucket but it was there, the reason is the list of buckets was never set.

It's been broken since: https://github.com/Flank/flank/pull/531/files#diff-81920894b2478868a06b5f2210f003afaf3ca682d7cb61afe1c8dec2cecdb191R127

Test Plan

Tested manually but looking if on how to write an automated test

Checklist

  • Documented
  • Unit tested
  • Integration tests updated

I have read the CLA Document and I hereby sign the CLA

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@Sloox
Copy link
Contributor

Sloox commented Jun 3, 2021

Hi @CristianGM

Nice to see this is your first contribution to Flank. 🥳
Could you please type, "I have read the CLA Document and I hereby sign the CLA" in a separate ticket. The bot appears to not have recognized it. Also you may need to type: "recheck" in a separate post (Also separate from the acceptance post.)

Is there a corresponding bug ticket related to the issue you are experiencing? It would be great to understand exactly what the issue is. It would greatly help us.

Thanks,
The Flank Team.

@CristianGM
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@CristianGM
Copy link
Contributor Author

I've left this PR without tests because I don't see any simple way of writing one.

ArgsHelperTest has a test for the method I modified, createGcsBucket, but i would need to spy on storage to see create is not called...of maybe assert the log contains no warning..

Any ideas?
Do you feel it's fine without adding a test?

@CristianGM CristianGM marked this pull request as ready for review June 3, 2021 11:42
@bootstraponline
Copy link
Contributor

bootstraponline commented Jun 3, 2021

This is a fix for the bug discussed here: https://firebase-community.slack.com/archives/C72V6UW8M/p1622460325013400

Flank always prints a warning Warning: Failed to make bucket for PROJECT_ID because storageList is not updated after calling bucket.list.

I agree a test would be great, not sure how to test this though.

@pawelpasterz
Copy link
Contributor

Oh...nice one, thanks for fixing it! Let's verify with integration tests and we're good to go

@pawelpasterz
Copy link
Contributor

@flank-it

@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2021

Integration tests failed ❌
Windows status failure - Build scan:
MacOS status success - Build scan: https://gradle.com/s/rlc4i7mudsnj4
Linux status success - Build scan:
Workflow run https://github.com/Flank/flank/actions/runs/905114364

@pawelpasterz
Copy link
Contributor

Integration tests failed ❌
Windows status failure - Build scan:
MacOS status success - Build scan: https://gradle.com/s/rlc4i7mudsnj4
Linux status success - Build scan:
Workflow run https://github.com/Flank/flank/actions/runs/905114364

Windows failed due to unrelated issue

Copy link
Contributor

@Sloox Sloox left a comment

Choose a reason for hiding this comment

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

Failing IT tests will be investigated in another ticket.
Other than that approved.

@mergify mergify bot merged commit 9b78062 into Flank:master Jun 4, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 4, 2021
@CristianGM CristianGM deleted the bucket-not-found branch June 4, 2021 09:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants