GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(scripts): add test:e2e:legacy:preview by trivikr · Pull Request #6538 · aws/aws-sdk-js-v3

Conversation

@trivikr

@trivikr trivikr commented Oct 2, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Issue

Internal JS-5464

Description

Adds a script for running legacy e2e tests only for preview builds.

Testing

Verified with changes prior v3.658.1 which impacted multiple clients:

  • preview runs e2e tests only for the client being updated
  • since:release runs e2e tests for all clients changed since last release
$ git checkout -b test 082bad80ae9bc56b83b787a7dad1ecc089dd7f4f

# Cherry pick changes from this PR
$ git cherry-pick 6643ed6^..cc02ac9

# Cherry pick changes in EC2 to process commit message
$ git cherry-pick 7fad22475a7768262a35854a0b30ec5ba11a2d36

# The preview runs e2e test only for the last changed package, i.e. ec2
$ yarn test:e2e:legacy:preview
yarn run v1.22.22
$ ./tests/e2e-legacy/preview.mjs
Updated scope: client-ec2
Running cucumber test: 
node_modules/.bin/cucumber-js --fail-fast -t "@ec2"
......................

5 scenarios (5 passed)
12 steps (12 passed)
1m53.451s (executing steps: 1m53.402s)
Done in 114.71s.

# The since:release runs e2e test for all changed packages
$ yarn test:e2e:legacy:since:release
yarn run v1.22.22
$ ./tests/e2e-legacy/since-release.mjs
Looking for changed packages...
lerna notice cli v5.5.2
lerna info Looking for changed packages since v3.658.0
lerna success found 413 packages ready to publish
Running cucumber test: 
node_modules/.bin/cucumber-js --fail-fast -t "@acm or @cloudformation or @cloudfront or @cloudtrail or @cloudwatch or @codecommit or @codedeploy or @codepipeline or @dynamodb or @ec2 or @ecr or @ecs or @efs or @elasticache or @emr or @gamelift or @glacier or @iam or @inspector or @iot or @kinesis or @kms or @lambda or @pinpoint or @rds or @redshift or @s3 or @sagemaker or @ses or @sns or @sqs or @ssm or @sts or @swf or @waf or @workspaces"
..............................................................................................................................................................................................................................................................................................................................................................................................................................................Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.
...........................................................................................................................................................................................................

103 scenarios (103 passed)
359 steps (359 passed)
3m37.179s (executing steps: 3m36.412s)
Done in 228.02s.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@trivikr
feat(scripts): add test:e2e:legacy:preview
6643ed6
@trivikr
trivikr force-pushed the test-legacy-feature branch from 0b5396c to 6643ed6 Compare October 2, 2024 20:12
@trivikr
trivikr marked this pull request as ready for review October 2, 2024 20:12
@trivikr
trivikr requested a review from a team as a code owner October 2, 2024 20:12
kuhe
kuhe reviewed Oct 2, 2024
View reviewed changes
Comment thread tests/e2e-legacy/since-release.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

kuhe
kuhe reviewed Oct 2, 2024
View reviewed changes
Comment thread tests/e2e-legacy/preview.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

kuhe
kuhe reviewed Oct 2, 2024
View reviewed changes
Comment thread tests/e2e-legacy/getPackageTags.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

siddsriv
siddsriv approved these changes Oct 2, 2024
View reviewed changes
kuhe
kuhe reviewed Oct 2, 2024
View reviewed changes
Comment thread tests/e2e-legacy/runTestForTags.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

kuhe
kuhe reviewed Oct 2, 2024
View reviewed changes
Comment thread tests/e2e-legacy/runTestForTags.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

trivikr added 4 commits October 2, 2024 21:50
@trivikr
chore(scripts): use string commands for getting scope
06dacde
@trivikr
fix(scripts): explicitly replace '-' to '' in getPackageTags
49e686d
@trivikr
fix(scripts): explcitly mention 'with e2e-legacy test cases' in msg
aba0caf
@trivikr
chore(scripts): use process.exit on cucumber close event with availab…
cc02ac9
…le code
kuhe
kuhe approved these changes Oct 2, 2024
View reviewed changes
@trivikr
trivikr merged commit 9196552 into aws:main Oct 2, 2024
@trivikr
trivikr deleted the test-legacy-feature branch October 2, 2024 23:47
@trivikr trivikr mentioned this pull request Oct 3, 2024
fix(scripts): process commits since origin/main in test:e2e:legacy:preview #6539
Merged
@github-actions

github-actions Bot commented Oct 17, 2024

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@kuhe kuhe kuhe approved these changes
@siddsriv siddsriv siddsriv approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@trivikr @kuhe @siddsriv
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.