๐จ Palette: CLI ์๋ฎฌ๋ ์ด์ ๋ช ๋ น์ ์๋ฌ ์ฒ๋ฆฌ ๊ฐ์ (DX ํฅ์)#60
๐จ Palette: CLI ์๋ฎฌ๋ ์ด์
๋ช
๋ น์ ์๋ฌ ์ฒ๋ฆฌ ๊ฐ์ (DX ํฅ์)#60seonghobae wants to merge 1 commit into
Conversation
`fast-mlsirm simulate` ๋ช ๋ น ์คํ ์ ์๋ชป๋ ์ค์ (์: ์์ ์ธ์์ ๋ฑ)์ผ๋ก ์ธํ `ValueError`๊ฐ ๋ฐ์ํ ๋, Python์ ๋ ๊ฒ ๊ทธ๋๋ก์ ์คํ ํธ๋ ์ด์ค(stack trace)๊ฐ ์ถ๋ ฅ๋์ด ๊ฐ๋ฐ์ ๊ฒฝํ(Developer Experience, DX)์ด ์ ํ๋๋ ๋ฌธ์ ๊ฐ ์์์ต๋๋ค. ์ด๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด `python/fast_mlsirm/cli.py`์ `simulate` ํธ์ถ๋ถ๋ฅผ `try-except` ๋ธ๋ก์ผ๋ก ๊ฐ์ธ `ValueError`๋ฅผ ์ ์ ํ ์ฒ๋ฆฌํ๋๋ก ๊ฐ์ ํ์ต๋๋ค. ์ฌ์ฉ์์๊ฒ ์ง๊ด์ ์ด๊ณ ์น์ ํ ์๋ฌ ๋ฉ์์ง(์: `โ Error: Invalid configuration - ...`)๋ฅผ `sys.stderr`๋ก ์ถ๋ ฅํ๊ณ ์ข ๋ฃ ์ฝ๋ `1`์ ๋ฐํํ๊ฒ ํ์ฌ CLI ๋๊ตฌ์ ํธ์์ฑ๊ณผ ์ฌ์ฉ์ฑ์ ํฅ์์์ผฐ์ต๋๋ค.
|
๐ Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a ๐ emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
There was a problem hiding this comment.
Pull request overview
fast-mlsirm simulate ์คํ ์ค ์๋ชป๋ ์ค์ ๊ฐ์ผ๋ก ์ธํด ๋ฐ์ํ๋ ValueError๋ฅผ CLI ๋ ๋ฒจ์์ ์บ์นํด, Python ์คํํธ๋ ์ด์ค ๋์ ์ผ๊ด๋ ์ฌ์ฉ์ ์นํ์ ์๋ฌ ๋ฉ์์ง์ ์ข
๋ฃ ์ฝ๋(1)๋ฅผ ๋ฐํํ๋๋ก ๊ฐ์ ํฉ๋๋ค.
Changes:
simulate์๋ธ์ปค๋งจ๋์์simulate(MLS2PLMConfig(...))ํธ์ถ์try/except ValueError๋ก ๊ฐ์- ์ค์ ์ค๋ฅ ์
stderr๋กโ Error: Invalid configuration - ...์ถ๋ ฅ ํreturn 1์ฒ๋ฆฌ
๐ก Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| try: | ||
| data = simulate( | ||
| MLS2PLMConfig( | ||
| n_persons=args.persons, | ||
| n_dims=args.dims, | ||
| items_per_dim=args.items_per_dim, | ||
| latent_dim=args.latent_dim, | ||
| phi=args.phi, | ||
| gamma=args.gamma, | ||
| seed=args.seed, | ||
| ) | ||
| ) | ||
| ) | ||
| except ValueError as e: | ||
| print(f"โ Error: Invalid configuration - {str(e)}", file=sys.stderr) | ||
| return 1 |
There was a problem hiding this comment.
Pull request overview
OpenCode reviewed the current-head evidence but found unresolved reviewer or review-agent threads before approval.
Findings
1. HIGH .github/workflows/opencode-review.yml:1 - Unresolved reviewer thread blocks automated approval
- Problem: OpenCode reached an APPROVE control result, but the approval step found unresolved, non-outdated human or review-agent thread evidence on the current pull request.
- Root cause: Reviewer and review-agent feedback can arrive after bounded model evidence is prepared, so the approval step must re-query GitHub immediately before publishing an approval.
- Fix: Address or resolve the listed reviewer thread(s), then re-run OpenCode on the current head.
- Regression test: Keep the approval gate querying reviewThreads(first: 100) after model output and before create_pull_review APPROVE, including bot review agents other than OpenCode itself.
Review thread evidence
Latest unresolved reviewer thread evidence
python/fast_mlsirm/cli.py line 201
-
Latest reviewer comment: @copilot-pull-request-reviewer at 2026-07-02T02:55:09Z
-
Comment URL: #60 (comment)
-
Comment excerpt: The new 'simulate' ValueError handling path isnโt covered by tests, so regressions (e.g., returning a traceback again or changing the exit code/message) would go unnoticed. Add a CLI test that runs 'main()' with an invalid '--persons' (or other invalid config) and asserts exit code 1 and that stderr contains the expected "Invalid configuration" message.
-
Result: REQUEST_CHANGES
-
Reason: unresolved reviewer or review-agent thread(s) were present before approval.
-
Head SHA:
20413b1e44823587057a22ed3ff2684078cb23f7 -
Workflow run: 28562002543
-
Workflow attempt: 1
Changed-File Evidence Map
flowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Changed file: cli.py"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file: cli.py"]
R1 --> V1["required checks"]
OpenCode Review Overview
Pull request overviewOpenCode reviewed the current-head evidence but found unresolved reviewer or review-agent threads before approval. Findings1. HIGH .github/workflows/opencode-review.yml:1 - Unresolved reviewer thread blocks automated approval
Review thread evidenceLatest unresolved reviewer thread evidence
|
๐ก What:
fast-mlsirm simulateCLI ๋ช ๋ น ์ํ ์ค ๋ฐ์ํ๋ ์ค์ ๊ด๋ จValueError๋ฅผ ์บ์นํ์ฌ ๊น๋ํ ์๋ฌ ๋ฉ์์ง๋ก ๋ฐํํ๋๋ก ๊ฐ์ ํ์ต๋๋ค.๐ฏ Why: ๊ธฐ์กด์๋ ์ ํจํ์ง ์์ ์ธ์(์:
--persons -5)๋ฅผ ๋ฃ์์ ๋ ์์์ ์ธ Python Stack Trace๊ฐ ๋ ธ์ถ๋์ด ์ฌ์ฉ์(๊ฐ๋ฐ์) ๊ฒฝํ์ด ๋จ์ด์ก์ต๋๋ค.try-except์ฒ๋ฆฌ๋ฅผ ํตํด ๋ค๋ฅธ ๋ช ๋ น์ด๋ค(fit,diagnose-fit๋ฑ)๊ณผ ๋์ผํ๊ฒ ์ผ๊ด๋ ์๋ฌ ์ฒ๋ฆฌ ๋ฐ ์ํ ์ฝ๋๋ฅผ ๋ฐํํ๋๋ก ๊ฐ์ ํ์ต๋๋ค.๐ธ Before/After:
Before:
After:
PR created automatically by Jules for task 11773325611873390064 started by @seonghobae