Skip to content

feat(infra): configure default load test environment#3584

Open
tasoo-oos wants to merge 1 commit into
mainfrom
t2724-load-test-env-config
Open

feat(infra): configure default load test environment#3584
tasoo-oos wants to merge 1 commit into
mainfrom
t2724-load-test-env-config

Conversation

@tasoo-oos
Copy link
Copy Markdown
Contributor

@tasoo-oos tasoo-oos commented May 26, 2026

Description

K6 기반 로드테스트에서 사용될 기본 세팅을 .env.example에 넣었습니다.

Additional context

Closes TAS-2724


Before submitting the PR, please make sure you do the following

@tasoo-oos tasoo-oos changed the title feat: configure load test environment feat: configure default load test environment May 26, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for configuring load tests via a .env file, reducing the default load and allowing users to customize the number of virtual users (VUs) and ramp-up/steady/ramp-down durations. However, there is a critical issue in submission-load.js where open('./.env') is evaluated statically by k6 during initialization. If the .env file does not exist, k6 will throw a fatal error and crash before the try...catch block can execute, which breaks execution when only using environment variables.

Comment thread tests/load/submission-load.js
@tasoo-oos tasoo-oos changed the title feat: configure default load test environment feat(infra): configure default load test environment May 26, 2026
@tasoo-oos tasoo-oos removed the request for review from sunghyun1000 May 26, 2026 17:18
@tasoo-oos tasoo-oos self-assigned this May 26, 2026
@tasoo-oos tasoo-oos requested a review from sunghyun1000 May 28, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant