Skip to content

add crates-sync image - #2172

Merged
benjamin-747 merged 4 commits into
gitmono-dev:mainfrom
benjamin-747:main
Aug 25, 2026
Merged

add crates-sync image#2172
benjamin-747 merged 4 commits into
gitmono-dev:mainfrom
benjamin-747:main

Conversation

@benjamin-747

Copy link
Copy Markdown
Collaborator

No description provided.

benjamin-747 and others added 4 commits August 25, 2026 10:33
Add run_job.py for wait/bootstrap against mono, freighter hostPath
paths, and keep-crate-cache so shared caches are not deleted. Ship
Dockerfile plus crates-sync deploy workflow for onprem Jobs.
Prevents parent paths like /third-party/rust from shadowing leaf import
repos in tree browsing via find_git_repo_like_path prefix matching.

Co-authored-by: Cursor <cursoragent@cursor.com>
@benjamin-747
benjamin-747 merged commit aa1c329 into gitmono-dev:main Aug 25, 2026
6 of 7 checks passed

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

Copy link
Copy Markdown

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: cb27a7710f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +321 to +323
if let Some(descendant) = git_repo::Entity::find()
.filter(git_repo::Column::RepoPath.like(format!("{path}/%")))
.one(self.get_connection())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Escape LIKE wildcards in repository paths

When repo_path contains _ or %—both relevant because crate/import repository names may contain underscores—passing "{path}/%" directly to SQL LIKE treats those characters as wildcards. An existing sibling such as a path differing at an underscore position can therefore be returned as a supposed descendant, causing otherwise valid pushes and create_repo_and_save_ref calls to fail with a nested-repository conflict. Escape wildcard characters or construct the prefix predicate without LIKE pattern semantics.

Useful? React with 👍 / 👎.

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.

1 participant