Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add ripgrep to codex+gitlab cookbook #2110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pap-openai wants to merge 3 commits into main
base: main
Choose a base branch
Loading
from pap/add-ripgrep-codex
Open

Conversation

Copy link
Collaborator

@pap-openai pap-openai commented Sep 3, 2025

adding ripgrep dependency to make codex job execution faster/better

Copy link

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

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

@pap-openai thanks for adding this! just double-checking since I didn't see it in the PR description, have we validated this change in a github action anywhere? I would expect it to be safe but couldn't hurt to test

Added ripgrep into the recommendation job, modified prompts to use ripgrep. Added more checks and validation for schemas in resolution.
Copy link
Contributor

@dylan-hurd-oai I have added ripgrep to be included as part of the libraries included but there are no matching patterns for the repo that I am working on

Patterns are based on:

 rg -n -f /tmp/rg-patterns.txt -S --hidden --no-ignore-vcs \
 -g '!**/*.spec.ts' -g '!**/test/**' -g '!**/cypress/**' \
 -g '!**/assets/**' -g '!**/*.map' -g '!**/*.min.*' \
 -g '!**/screenshots/**' -g '!**/*.{gif,jpg,png,svg,ico,mp4}' \
 --no-heading --max-count 100 | head -n 100 > artifacts/hotspots_samples.txt || true
 
 rg -c -f /tmp/rg-patterns.txt -S --hidden --no-ignore-vcs \
 -g '!**/*.spec.ts' -g '!**/test/**' -g '!**/cypress/**' \
 -g '!**/assets/**' -g '!**/*.map' -g '!**/*.min.*' \
 -g '!**/screenshots/**' -g '!**/*.{gif,jpg,png,svg,ico,mp4}' \
 --no-messages | sort -t: -k2,2nr | head -n 50 > artifacts/hotspots_summary.txt || true
 
 In my CI file - let me know if i am missing anything out

Copy link
Contributor

-g '!**/*.spec.ts' -g '!**/test/**' -g '!**/cypress/**' \
-g '!**/assets/**' -g '!**/*.map' -g '!**/*.min.*' \
-g '!**/screenshots/**' -g '!**/*.{gif,jpg,png,svg,ico,mp4}' \
--no-messages | sort -t: -k2,2nr | head -n 50 > artifacts/hotspots_summary.txt || true
Copy link

@dylan-hurd-oai dylan-hurd-oai Sep 10, 2025
edited
Loading

Choose a reason for hiding this comment

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

@jonlim-openai what are we using this for?

Copy link
Contributor

@jonlim-openai jonlim-openai Sep 11, 2025

Choose a reason for hiding this comment

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

It is just a filter to ignore those types of file paths

Copy link

dylan-hurd-oai commented Sep 10, 2025
edited
Loading

but there are no matching patterns for the repo that I am working on

This is purely a change to our installation method to address openai/codex#2501 - I would expect no direct change in behavior, just a fewer error reports from customers when using our cookbook

Copy link
Contributor

The job runs to completion with no issues!

dylan-hurd-oai and Swipe4057 reacted with hooray emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@jonlim-openai jonlim-openai jonlim-openai left review comments

@dylan-hurd-oai dylan-hurd-oai dylan-hurd-oai approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /