Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Oct 20, 2025

Summary

fix rspack ci, use project root's absolute path.

image

Related Links

https://github.com/web-infra-dev/rspack/actions/runs/18646266154/job/53154423141#step:8:1354

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings October 20, 2025 09:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a CI issue in Rspack by ensuring project root paths are converted to absolute paths before processing. The change addresses a bug where relative paths in project configurations were not being resolved correctly, causing test failures in the CI environment.

  • Normalizes project root paths to absolute paths using getAbsolutePath() helper
  • Updates test expectations to use relative paths, allowing the normalization logic to handle conversion

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/core/src/core/rstest.ts Adds normalization of project root paths to absolute paths before config processing
packages/core/tests/core/rstest.test.ts Updates test to use relative path, expecting the normalization to convert it to absolute

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@netlify
Copy link

netlify bot commented Oct 20, 2025

Deploy Preview for rstest-dev ready!

Name Link
🔨 Latest commit 3b4f74e
🔍 Latest deploy log https://app.netlify.com/projects/rstest-dev/deploys/68f5feb3a1d1020008016903
😎 Deploy Preview https://deploy-preview-629--rstest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@9aoy 9aoy merged commit 7b6b372 into main Oct 20, 2025
20 checks passed
@9aoy 9aoy deleted the project-root branch October 20, 2025 09:28
@9aoy 9aoy mentioned this pull request Oct 21, 2025
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.

3 participants