Skip to content

Conversation

@sethidden
Copy link
Contributor

@sethidden sethidden commented Jul 20, 2022

Change K6 action so that it works by picking the environment rather than specifying the url. Our upcoming implementation of load tests will have three separate urls (magento instance, middleware url, frontend url). Specifying each url by hand/adding it to the url dropdown would be annoying

@sethidden sethidden force-pushed the M2-1033-refactor-k6-action branch 2 times, most recently from 7edc574 to d50202e Compare July 20, 2022 10:54
@sethidden sethidden changed the base branch from develop to main July 21, 2022 08:27
@sethidden sethidden force-pushed the M2-1033-refactor-k6-action branch from d50202e to defa606 Compare July 21, 2022 08:32
@sethidden sethidden changed the title ci: simplify getting middleware url ci: refactor k6 action to add new env vars Jul 21, 2022
@sethidden sethidden force-pushed the M2-1033-refactor-k6-action branch from defa606 to 9f00919 Compare July 21, 2022 09:06
@sethidden sethidden marked this pull request as ready for review July 21, 2022 09:06
echo ::set-output name=name::$ENVNAME
echo ::set-output name=code::$ENVCODE
echo ::set-output name=middleware-url::$MIDDLEWARE_URL
cat .github/workflows/public_env_info/$ENVINFO_FILE >> $GITHUB_ENV
Copy link
Contributor Author

Choose a reason for hiding this comment

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

environment-related env vars are now kept in separate files. Had I not done that, env info would be duplicated in the k6 action and in our regular deploy to Farmer action. It'd be more difficult to maintain

@sethidden sethidden force-pushed the M2-1033-refactor-k6-action branch from 9f00919 to c77fddb Compare July 21, 2022 09:09
@sethidden
Copy link
Contributor Author

@bartoszherba this PR is targeting the main branch because workflows that are meant to be ran manually take source code from the repo's designated primary branch (main in our case)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Frodigo Frodigo added this to the 1.0.3 milestone Aug 2, 2022
update k6 action to select environments instead of urls, because with K6
we'll probably need 3 separate urls (middleware, frontend app and
graphql endpoint) which would be painful to type in manually

now you just input the env name and it selects the 3 urls on its own

M2-1033

ci: update k6 script with new variables

ci: update envs with new naming convention
@Frodigo Frodigo force-pushed the M2-1033-refactor-k6-action branch from c77fddb to 2061aae Compare August 2, 2022 07:31
@Frodigo Frodigo merged commit 969b769 into main Aug 2, 2022
@Frodigo Frodigo deleted the M2-1033-refactor-k6-action branch August 2, 2022 10:02
@Frodigo Frodigo mentioned this pull request Sep 5, 2022
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.

4 participants