Skip to content
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

recc 1.2.21 #191819

Merged
merged 2 commits into from
Oct 13, 2024
Merged

recc 1.2.21 #191819

merged 2 commits into from
Oct 13, 2024

Conversation

sakeeb
Copy link
Contributor

@sakeeb sakeeb commented Sep 25, 2024

RECC is a compiler launcher that caches the results on compilation and link command, and optionally forward them to a remote execution service.

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@github-actions github-actions bot added the new formula PR adds a new formula to Homebrew/homebrew-core label Sep 25, 2024
Copy link
Contributor

Thanks for contributing to Homebrew! 🎉 It looks like you're having trouble with a CI failure. See our contribution guide for help. You may be most interested in the section on dealing with CI failures. You can find the CI logs in the Checks tab of your pull request.

Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. A few suggestions.

Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Show resolved Hide resolved
@github-actions github-actions bot added the autosquash Automatically squash pull request commits according to Homebrew style. label Sep 25, 2024
@github-actions github-actions bot added autosquash Automatically squash pull request commits according to Homebrew style. and removed autosquash Automatically squash pull request commits according to Homebrew style. labels Sep 25, 2024
@github-actions github-actions bot added autosquash Automatically squash pull request commits according to Homebrew style. and removed autosquash Automatically squash pull request commits according to Homebrew style. labels Sep 25, 2024
@github-actions github-actions bot removed the autosquash Automatically squash pull request commits according to Homebrew style. label Sep 25, 2024
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
Formula/r/recc.rb Outdated Show resolved Hide resolved
@github-actions github-actions bot added the autosquash Automatically squash pull request commits according to Homebrew style. label Sep 25, 2024
@sakeeb sakeeb force-pushed the recc branch 2 times, most recently from bd370df to 699e2df Compare September 26, 2024 01:29
@github-actions github-actions bot added automerge-skip `brew pr-automerge` will skip this pull request and removed autosquash Automatically squash pull request commits according to Homebrew style. labels Sep 26, 2024
@sakeeb
Copy link
Contributor Author

sakeeb commented Sep 26, 2024

@carlocab, thank you for your detailed review. It really helped to trim down a lot of unnecessary content.

I have addressed all the review comments. I included caveat about usage that is specific to installation using Homebrew formula. I noticed a similar caveat is used for ccache.

@github-actions github-actions bot added long build Set a long timeout for formula testing autobump new formula PR adds a new formula to Homebrew/homebrew-core and removed new formula PR adds a new formula to Homebrew/homebrew-core autobump labels Sep 27, 2024
@github-actions github-actions bot removed the automerge-skip `brew pr-automerge` will skip this pull request label Sep 27, 2024
@github-actions github-actions bot added autobump and removed new formula PR adds a new formula to Homebrew/homebrew-core labels Oct 3, 2024
@sakeeb sakeeb changed the title recc 1.2.20 recc 1.2.21 Oct 3, 2024
@github-actions github-actions bot added new formula PR adds a new formula to Homebrew/homebrew-core and removed automerge-skip `brew pr-automerge` will skip this pull request autosquash Automatically squash pull request commits according to Homebrew style. autobump labels Oct 3, 2024
@sakeeb sakeeb marked this pull request as draft October 3, 2024 13:52
@sakeeb sakeeb marked this pull request as ready for review October 11, 2024 17:49
@github-actions github-actions bot added the automerge-skip `brew pr-automerge` will skip this pull request label Oct 12, 2024
RECC is a compiler launcher that caches the results on compilation and
link command, and optionally forward them to a remote execution service.

Remove running launchctrl command in caveat

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

recc 1.2.21

Address review comments

recc 1.2.21 tests

Added tests to start recc-server and run recc-cc command twice.
The second run should result in a cache hit.

Update test case

Update test

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

recc 1.2.21: Update user configuration location

Use etc as location for system wide recc.conf location.
In the absense of the etc/recc.conf, a default configuration installed
in prefix/etc/recc/recc.conf will be used.

recc 1.2.21

Add caveat about how to invoke compiler using recc.
The instructions in caveat is specific to how homebrew is configured

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

Update Formula/r/recc.rb

Co-authored-by: Carlo Cabrera
<[email protected]>

recc 1.2.24

Update version
Use wrapper scripts from the upstream project
@github-actions github-actions bot removed the automerge-skip `brew pr-automerge` will skip this pull request label Oct 12, 2024
@SMillerDev
Copy link
Member

Dropped the merge commit, this should now be ready for review again

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Thanks @sakeeb, great work (and patience) here. All comments can be addressed in follow-up releases/PRs. You rock!

Comment on lines +55 to +59
ENV["RECC_BIN"] = bin/"recc"
system "command envsubst < scripts/wrapper-templates/recc-c++.in > recc-c++"
system "command envsubst < scripts/wrapper-templates/recc-cc.in > recc-cc"
bin.install "recc-c++"
bin.install "recc-cc"
Copy link
Member

Choose a reason for hiding this comment

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

A make install for this would be nice to have.

Comment on lines +68 to +71
system "command envsubst < scripts/wrapper-templates/recc.conf.in > recc.conf"
etc.install "recc.conf"

bin.install "scripts/wrapper-templates/casd-helper" => "recc-server"
Copy link
Member

Choose a reason for hiding this comment

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

And this

Comment on lines +83 to +87
<<~EOS
To launch a compiler with recc, set the following variables:
CC=#{opt_bin}/recc-cc
CXX=#{opt_bin}/recc-c++
EOS
Copy link
Member

Choose a reason for hiding this comment

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

Are these Homebrew specific caveats?

# Override default values of server and log_level
ENV["RECC_SERVER"] = "unix://#{recc_cache_dir}/casd.sock"
ENV["RECC_LOG_LEVEL"] = "info"
recc_test=[bin/"recc-cc", "-c", test_file]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
recc_test=[bin/"recc-cc", "-c", test_file]
recc_test = [bin/"recc-cc", "-c", test_file]

@MikeMcQuaid MikeMcQuaid enabled auto-merge October 13, 2024 16:44
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Oct 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 13, 2024
Copy link
Contributor

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Oct 13, 2024
@BrewTestBot BrewTestBot enabled auto-merge October 13, 2024 16:59
@BrewTestBot BrewTestBot added this pull request to the merge queue Oct 13, 2024
Merged via the queue into Homebrew:master with commit 41168b2 Oct 13, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. long build Set a long timeout for formula testing new formula PR adds a new formula to Homebrew/homebrew-core workflows PR modifies GitHub Actions workflow files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants