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

test: include sandbox in canary tests #612

Merged
merged 8 commits into from
Nov 9, 2023
Merged

Conversation

sobolk
Copy link
Member

@sobolk sobolk commented Nov 9, 2023

Issue #, if available:

Description of changes:

This change adds sandbox to canary test suite.

There's one workaround applied to locate amplify binary in local installation. Better solution will be pursued here #582 .

Canary run from branch https://github.com/aws-amplify/amplify-backend/actions/runs/6816085805 .

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sobolk sobolk added the run-e2e Label that will include e2e tests in PR checks workflow label Nov 9, 2023
Copy link

changeset-bot bot commented Nov 9, 2023

🦋 Changeset detected

Latest commit: a2f983a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +41 to +43
void describe('pipeline deployment', () => {
let tempDir: string;
let testBranch: TestBranch;
Copy link
Member Author

Choose a reason for hiding this comment

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

enabling parallelization requires nesting of these variables

@sobolk sobolk marked this pull request as ready for review November 9, 2023 18:47
Amplifiyer
Amplifiyer previously approved these changes Nov 9, 2023
@@ -123,8 +123,16 @@ export const amplifyCli = (
): ProcessController => {
let command: string;
if (options?.installationType === 'local') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we get rid of this if statement and do the lookup unconditionally?

Copy link
Member Author

Choose a reason for hiding this comment

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

easy to try.
If it works it works. if not we'll keep this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Tests are happy, we can do it.

// See: https://github.com/aws-amplify/amplify-backend/issues/582
command = execaSync('npx', ['which', 'amplify'], {
cwd: dir,
}).stdout;
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need a .trim() here?

edwardfoyle
edwardfoyle previously approved these changes Nov 9, 2023
Copy link
Contributor

@edwardfoyle edwardfoyle left a comment

Choose a reason for hiding this comment

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

changing to approve. I don't think my comments are blockers

@sobolk sobolk dismissed stale reviews from edwardfoyle and Amplifiyer via a2f983a November 9, 2023 22:01
@sobolk sobolk merged commit a6aea99 into main Nov 9, 2023
26 checks passed
@sobolk sobolk deleted the try-using-local-installation branch November 9, 2023 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-e2e Label that will include e2e tests in PR checks workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants