fix: load-test script build paths and provider config - #4358
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughLoad-test script updated to create a placeholder ChangesLoad Test Script Configuration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Confidence Score: 5/5Safe to merge — all changes are isolated to a CI load-test shell script with no impact on production code paths. Every change is a direct, verifiable correction: the build directory mismatch and missing ui/ placeholder would both cause a compile failure, the clone path mismatch would cause mocker build to fail, and the config changes match what the schema and provider validation actually require. No logic is shared with production code. No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "fix: ensure ui placeholder exists even w..." | Re-trigger Greptile |
e55f6f8 to
f3056c9
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/scripts/load-test.sh:
- Around line 175-178: The script only creates a placeholder when the ui
directory is missing, but the Go embed rule (//go:embed all:ui in main.go)
requires at least one file even if the directory exists; update the shell
snippet that uses ${BIFROST_HTTP_DIR}/ui so that it: (1) always creates the
directory if missing, and (2) checks whether the directory contains any files
(e.g., test for glob "${BIFROST_HTTP_DIR}/ui/*") and writes a placeholder file
(e.g., .gitkeep) into ${BIFROST_HTTP_DIR}/ui when it is empty; reference the
BIFROST_HTTP_DIR/ui path and the .gitkeep placeholder in your change.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: a48a8018-a230-499e-8da8-1b4a02463073
📒 Files selected for processing (1)
.github/workflows/scripts/load-test.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: G-XD <gxd0606@gmail.com>
|
yeah loadtest repo is not used on CI yet - it was internally used |
|
❤️ for the PR |
* fix: load-test script build paths and provider config * fix: ensure ui placeholder exists even when ui dir is empty Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: G-XD <gxd0606@gmail.com> --------- Signed-off-by: G-XD <gxd0606@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix: load-test script build paths and provider config * fix: ensure ui placeholder exists even when ui dir is empty Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: G-XD <gxd0606@gmail.com> --------- Signed-off-by: G-XD <gxd0606@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix: load-test script build paths and provider config * fix: ensure ui placeholder exists even when ui dir is empty Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: G-XD <gxd0606@gmail.com> --------- Signed-off-by: G-XD <gxd0606@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix: load-test script build paths and provider config * fix: ensure ui placeholder exists even when ui dir is empty Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: G-XD <gxd0606@gmail.com> --------- Signed-off-by: G-XD <gxd0606@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary
.github/workflows/scripts/load-test.shcould not run successfully due to several issues: wrong working directory for go build, wrong clone location for the bifrost-benchmarking mocker repo, an invalid openai provider config in the generated config.json, and a missing ui/ directory required by the //go:embed all:ui directive in transports/bifrost-http/main.go. This PR fixes the script so it can run end-to-end.Changes
No design trade-offs — all changes are mechanical bug fixes.
Type of change
Affected areas
How to test
From the repo root:
bash
.github/workflows/scripts/load-test.shExpected:
No new configs or environment variables introduced.
Screenshots/Recordings
N/A — CI-only shell script.
Breaking changes
Related issues
None.
Security considerations
None. Only changes a load-test shell script and its generated config; no auth, secrets, PII, or sandboxing changes.
Checklist
docs/contributing/README.mdand followed the guidelinesSummary by CodeRabbit