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

🥗 Marketplace: The Square Test is failings on Dependabot PRs #2095

Closed

Conversation

zspencer
Copy link
Member

@zspencer zspencer commented Jan 8, 2024

Tests seem to be broken when on PRs that come in from Dependabot.

I'm not quite sure what the reason is; and didn't want to tinker too much since @rosschapman and @anaulin know more about how this works.

My current theory is we need to update the Dependabot Secrets with the Square credentials and Locations that they set up last Wednesday.

I think we used the [email protected] account, but the phone number for that is not tied to the Google Voice number for [email protected]; so I wasn't able to log in.

I did log in as [email protected]; and there are credentials there but I am not brainy enough to figure out if that's the right account or not.

Anyway, to unbreak the tests for Dependabot rolling again; I am ditching the with_square trait in the marketplace in the buying_products_spec.rb. We'll probably want to write a marketplace/order_notifications/with_square_spec.rb that tests that use case more explicitely, including assertions against the Square API that confirm we get the data in the PoS right.

- #1500
- #2034

I'm not quite sure what the reason is; and didn't want to tinker too
much since @rosschapman and @anaulin know more about how this works.

My current theory is we need to update the [`Dependabot`
Secrets](https://github.com/zinc-collective/convene/settings/secrets/dependabot)
with the Square credentials and Locations that they set up last
Wednesday.

I think we used the [email protected] account, but the phone number
for that is not tied to the Google Voice number for
[email protected]; so I wasn't able to log in.

I did log in as [email protected]; and there are credentials there but I
am not brainy enough to figure out if that's the right account or not.

Anyway, to unbreak the tests for Dependabot rolling again; I am ditching
the `with_square` trait in the `marketplace` in the
`buying_products_spec.rb`. We'll probably want to write a
`marketplace/order_notifications/with_square_spec.rb` that tests that
use case more explicitely, including assertions against the Square API
that confirm we get the data in the PoS right.
@zspencer zspencer requested review from rosschapman, anaulin and a team January 8, 2024 05:26
@zspencer zspencer changed the title 🥗 Marketplace: The Square Test is failings on CI 🥗 Marketplace: The Square Test is failings on Dependabot PRs Jan 8, 2024
@anaulin
Copy link
Member

anaulin commented Jan 8, 2024

@zspencer did you double-check Dependabot's secrets for Square? When I was working on this with Ross last Wednesday, I didn't touch those at all, since I was planning to see if our changes in the "regular" CI were working first.

@anaulin
Copy link
Member

anaulin commented Jan 8, 2024

Ah, I read now your detailed PR description and I see that you didn't check those secrets. I'll look into it.

@anaulin
Copy link
Member

anaulin commented Jan 8, 2024

I re-set the Dependabot secret values or MARKETPLACE_VENDOR_SQUARE_LOCATION, MARKETPLACE_VENDOR_SQUARE_ACCESS_TOKEN, and set SQUARE_ENV=sandbox.

One of the Dependabot PRs is now green, and the rest are re-running tests, so I think we don't need this change anymore.

@anaulin
Copy link
Member

anaulin commented Jan 8, 2024

And now some of the Dependabot PRs are failing CI because they can't install the stripe-cli, which seems unrelated to Square. Hopefully that will resolve in a bit.

image
(e.g. https://github.com/zinc-collective/convene/actions/runs/7450262128/job/20271893601)

@zspencer
Copy link
Member Author

zspencer commented Jan 8, 2024

Yea, those Stripe issues are... annoying. I would love it if we had a cached version of the CLI on our own S3 bucket that we automatically updated periodically (say, monthly?) so that we don't have to deal with Stripe's CDN blocking Github Actions servers.

Since you updated the Dependabot Secrets, I am going to close this out! Thank you!!!

@zspencer zspencer closed this Jan 8, 2024
@zspencer zspencer deleted the marketplace/tests-are-failing-and-i-cant-quite-get-why branch January 8, 2024 18:47
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