Skip to content

하 이준호 진짜#3

Open
kwonminjae5700 wants to merge 1 commit intoobtuse-triangle:mainfrom
kwonminjae5700:leejunho
Open

하 이준호 진짜#3
kwonminjae5700 wants to merge 1 commit intoobtuse-triangle:mainfrom
kwonminjae5700:leejunho

Conversation

@kwonminjae5700
Copy link

This pull request adds automated load testing to the CI workflow using k6, targeting the /api/posts/v1/slow endpoint of the FastAPI server. It introduces a new k6 test script and updates the GitHub Actions workflow to install k6, start the FastAPI server, and run the load test as part of the CI pipeline.

CI Workflow Enhancements:

  • Added steps to the .github/workflows/main.yml workflow to install k6, start the FastAPI server with uvicorn, and execute the k6 load test against the /api/posts/v1/slow endpoint.
  • Minor formatting fix for the python-version key in the workflow YAML.

Load Testing:

  • Introduced a new k6-test.js script that defines a k6 load test targeting the /api/posts/v1/slow endpoint, with staged traffic and a threshold on 95th percentile response time.

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.

1 participant