Skip to content

Replace yarn --cwd with (cd && yarn) pattern in dev/run-dev-server.sh#18652

Merged
harupy merged 2 commits intomasterfrom
copilot/update-dev-server-script
Nov 4, 2025
Merged

Replace yarn --cwd with (cd && yarn) pattern in dev/run-dev-server.sh#18652
harupy merged 2 commits intomasterfrom
copilot/update-dev-server-script

Conversation

Copy link
Contributor

Copilot AI commented Nov 4, 2025

Aligns dev server script with repository conventions by using the standard (cd ... && yarn ...) pattern instead of yarn --cwd.

Changes

  • Replace yarn --cwd mlflow/server/js start with (cd mlflow/server/js && yarn start) on line 72

This matches the pattern used throughout CLAUDE.md and provides consistent working directory context across all yarn invocations in the repository.

# Before
yarn --cwd mlflow/server/js start

# After
(cd mlflow/server/js && yarn start)

Follow-up to #18553.

Original prompt

Update dev/run-dev-server.sh to replace yarn --cwd mlflow/server/js start with (cd mlflow/server/js && yarn start) to align with other scripts and ensure proper working directory context. Follow-up to #18553.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@harupy harupy marked this pull request as ready for review November 4, 2025 05:23
@harupy harupy added the rn/none List under Small Changes in Changelogs. label Nov 4, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

@Copilot Thank you for the contribution! Could you fix the following issue(s)?

⚠ Invalid PR template

This PR does not appear to have been filed using the MLflow PR template. Please copy the PR template from here and fill it out.

Replace `yarn --cwd mlflow/server/js start` with `(cd mlflow/server/js && yarn start)`
to align with the pattern used in CLAUDE.md documentation and ensure proper working
directory context. This change makes the script consistent with other yarn commands
documented in the repository.

Signed-off-by: GitHub Copilot <noreply@github.com>

Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Copilot AI changed the title [WIP] Update run-dev-server.sh to set proper working directory Replace yarn --cwd with (cd && yarn) pattern in dev/run-dev-server.sh Nov 4, 2025
Copilot AI requested a review from harupy November 4, 2025 05:30
@harupy harupy merged commit d28a8cc into master Nov 4, 2025
47 of 51 checks passed
@harupy harupy deleted the copilot/update-dev-server-script branch November 4, 2025 06:14
Copilot AI added a commit that referenced this pull request Nov 4, 2025
…r.sh (#18652)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Copilot AI added a commit that referenced this pull request Nov 4, 2025
- Remove obsolete 'yarn.*--cwd.*mlflow/server/js.*start' pattern
- Update comment to reflect new (cd && yarn) command pattern
- Pattern 'mlflow/server/js.*yarn.*start' still matches the spawned node process
- Rebased on master to include PR #18652 changes

Co-authored-by: harupy <17039389+harupy@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rn/none List under Small Changes in Changelogs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants