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

feat: configuration of k6 for performance tests #256

Merged
merged 72 commits into from
Jan 29, 2024
Merged

Conversation

ThisIsDemetrio
Copy link
Collaborator

@ThisIsDemetrio ThisIsDemetrio commented Jan 22, 2024

Pull Request Type

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Description

Using k6 to execute performance tests on a built CRUD Service instance in a docker container.

Includes:

  • a list of scripts with the tests to be run with k6 with different cases, located in /bench/scripts;
  • folders with definition of collections and views to be used with k6 tests, located in /bench/definitions;
  • two docker-compose files (the first to build and run a MongoDB container and a CRUD Service container, the second to launch k6 runner file to execute tests), located in /bench;
  • a script to generate mock data for one collections used for tests, located in /bench/utils;
  • a new GitHub workflow file to execute performance test on a pipeline, to be triggered when released a new tag;

Also:

  • updated the package.json with a some devDependencies used to run the script to generate mock data;
  • updated the gitignore and the ignored files in package.json to avoid issues with the content of the /bench folder;
  • documentation includes a paragraph explaining in detail how these tests work, how to run and how to improve them;

PR Checklist

  • The commit message follows our guidelines included in the CONTRIBUTING.md
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@ThisIsDemetrio ThisIsDemetrio changed the title Feat/perf-test feat: Performance tests Jan 22, 2024
@ThisIsDemetrio ThisIsDemetrio changed the title feat: Performance tests feat: configuration of k6 for performance tests Jan 23, 2024
@ThisIsDemetrio ThisIsDemetrio marked this pull request as ready for review January 23, 2024 10:08
.gitignore Outdated Show resolved Hide resolved
bench/dc-k6.yml Show resolved Hide resolved
@danibix95 danibix95 merged commit be3a96b into main Jan 29, 2024
11 checks passed
@danibix95 danibix95 deleted the feat/perf-test branch January 29, 2024 14:20
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