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

Add Lcov #2637

Merged
merged 6 commits into from
Aug 22, 2024
Merged

Add Lcov #2637

merged 6 commits into from
Aug 22, 2024

Conversation

lalten
Copy link
Contributor

@lalten lalten commented Aug 18, 2024

@bazel-io
Copy link
Member

Hello @mortenmj, modules you maintain (rules_perl) have been updated in this PR. Please review the changes.

@bazel-io
Copy link
Member

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (lcov, rules_cpan) have been updated in this PR. Please review the changes.

@lalten lalten force-pushed the lcov branch 2 times, most recently from 3005033 to b6015db Compare August 20, 2024 09:01
@bazel-io
Copy link
Member

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (lcov) have been updated in this PR. Please review the changes.

@lalten lalten marked this pull request as ready for review August 20, 2024 09:03
@meteorcloudy meteorcloudy added the presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval label Aug 20, 2024
modules/lcov/metadata.json Outdated Show resolved Hide resolved
@lalten
Copy link
Contributor Author

lalten commented Aug 20, 2024

That presubmit failure is interesting... do we not keep permission bits when copying the overlay?

(09:18:45) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/0a46b5129a453049e136d92bfc68492c/external/lcov~/BUILD:34:8: Symlinking @@lcov~//:integration_test failed: failed to create symbolic link 'bazel-out/k8-fastbuild/bin/external/lcov~/integration_test': file 'external/lcov~/integration_test.sh' is not executable

❯ stat -c %a modules/lcov/2.1/overlay/integration_test.sh
775

@meteorcloudy
Copy link
Member

Hmm, those files are essentially fetched by
https://cs.opensource.google/bazel/bazel/+/master:tools/build_defs/repo/utils.bzl;l=106-114, which doesn't set the executable bit. I don't think we can even get this information at this point? /cc @fzakaria @Wyverald

@lalten
Copy link
Contributor Author

lalten commented Aug 20, 2024

Generating the .sh with genrule(..., executable=True) now.
I now wonder if it would also have worked to keep the overlay file but then patch the permission bits with a patch file?

@lalten lalten requested a review from meteorcloudy August 20, 2024 10:43
@meteorcloudy
Copy link
Member

I now wonder if it would also have worked to keep the overlay file but then patch the permission bits with a patch file?

Yes, I think that's possible:
https://cs.opensource.google/bazel/bazel/+/master:src/main/java/com/google/devtools/build/lib/bazel/repository/PatchUtil.java;l=459-468

@lalten
Copy link
Contributor Author

lalten commented Aug 21, 2024

@meteorcloudy happy about another review. the source repo is added and this PR doesn't have the issue with the missing executable bit in the overlay anymore as it uses a genrule now

Copy link
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

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

Thanks!

@meteorcloudy meteorcloudy merged commit e5bf112 into bazelbuild:main Aug 22, 2024
12 checks passed
@lalten lalten deleted the lcov branch August 22, 2024 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants