Skip to content

Fix/orion change detector subproject path normalization#2038

Merged
benjamin-747 merged 6 commits intoweb3infra-foundation:mainfrom
jackieismpc:fix/orion-change-detector-subproject-path-normalization
Mar 30, 2026
Merged

Fix/orion change detector subproject path normalization#2038
benjamin-747 merged 6 commits intoweb3infra-foundation:mainfrom
jackieismpc:fix/orion-change-detector-subproject-path-normalization

Conversation

@jackieismpc
Copy link
Copy Markdown
Contributor

#2037
1.新增了测试以覆盖changes路径检测
2.对路径做了兼容性修复

Signed-off-by: jackieismpc <jackieismpc@gmail.com>
Signed-off-by: jackieismpc <jackieismpc@gmail.com>
Signed-off-by: jackieismpc <jackieismpc@gmail.com>
Signed-off-by: jackieismpc <jackieismpc@gmail.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c7ed15251f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +355 to +359
if raw_path == repo_prefix || raw_path.starts_with(&format!("{repo_prefix}/")) {
return ProjectRelativePath::new(raw_path);
}

ProjectRelativePath::new(&format!("{repo_prefix}/{raw_path}"))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve non-subproject paths during normalization

When repo_prefix is set, this branch unconditionally rewrites any path not already under that prefix to "{repo_prefix}/{raw_path}". That breaks commits containing monorepo-relative changes outside the selected subproject (for example, shared code like common/lib.rs while building jupiter/callisto), because the rewritten path no longer points to the real changed file and target discovery can miss required rebuilds. Since upstream change lists are monorepo-relative and not guaranteed to be pre-filtered to the repo prefix, this should not blindly prefix every non-matching path.

Useful? React with 👍 / 👎.

Signed-off-by: jackieismpc <jackieismpc@gmail.com>
Signed-off-by: jackieismpc <jackieismpc@gmail.com>
@benjamin-747 benjamin-747 self-requested a review March 30, 2026 02:39
@benjamin-747 benjamin-747 added this pull request to the merge queue Mar 30, 2026
Merged via the queue into web3infra-foundation:main with commit b3bac43 Mar 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants