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

chore: Enable K6 functional test run after app deploy to test/staging #643

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

elsand
Copy link
Member

@elsand elsand commented Apr 17, 2024

This enables automatic running of K6 E2E tests after successful app revision deploy

Description

This refactors the dispatch-only K6 runner to a reusable action, which is used in CI/CD workflows as well as a dispatch-workflow, which now takes a path to a test suite to run, eliminating the need for different dispatches for functional and non-functional tests.

Reporting of the tests are performed with a third-party action-plugin to utilize GIthub support for junit.xml format. Having some issues getting this to work properly locally with act, so this will have to be tested in Github. Unclear how rich the reporting within Github can be, but hopefully we can at least get the job to be marked as failed if any tests fail as reported by K6. For additional details, the stdout log will have to be consulted.

In the future, we might want to incorporate more custom handling of the summary and eg. integrate the Slack Notifier bot.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

Documentation

  • Documentation is updated (either in docs-directory, Altinnpedia or a separate linked PR in altinn-studio-docs., if applicable)

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@elsand elsand merged commit 9059c86 into main Apr 19, 2024
14 checks passed
@elsand elsand deleted the chore/enable-e2e-tests-after-deploy branch April 19, 2024 14:02
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