bazel: add Bazel equivalent of make codebeamer-pem - #617
Open
NikitaJangidBMW wants to merge 1 commit into
Open
Conversation
NikitaJangidBMW
force-pushed
the
internal/replace-make-with-bazel-target-in-lobster
branch
from
July 24, 2026 05:20
6b0c642 to
9556625
Compare
NikitaJangidBMW
force-pushed
the
internal/replace-make-with-bazel-target-in-lobster
branch
from
August 12, 2026 10:50
d0d33f5 to
3879a01
Compare
Add generate_certs Starlark rule to generate SSL certs via system openssl, with codebeamer_pem target wired into test data.
NikitaJangidBMW
force-pushed
the
internal/replace-make-with-bazel-target-in-lobster
branch
from
August 12, 2026 10:53
3879a01 to
de424bc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bazel equivalent of
make codebeamer-pem. Adds a customgenerate_certsrule that generates self-signed SSL certificates for the codebeamer mock
server, following the existing repo pattern (ctx.actions.run_shell).
Files changed
bazel/private/generate_certs.bzl— new custom Starlark rule using system openssltests_system/lobster_codebeamer/data/BUILD.bazel—codebeamer_pemtargettests_system/lobster_codebeamer/mock_server.py— fix cert path resolution for Bazel runfileslobster.bzl— exportgenerate_certsdocumentation/manual-lobster_codebeamer.md— document make and Bazel commands for SSL cert generation.bazelrc— replace deprecated--experimental_enable_bzlmodwith--enable_bzlmodtests_system/README.md— fix typo: Pyton → PythonHow to test
bazel test //tests_system/lobster_codebeamer:test_lobster_codebeamerNOTE:
mock_server.py- Dual cert path support (temporary)Added runtime fallback logic to support both build systems during the migration period:
Bazel: certificates are generated by the codebeamer_pem target and placed flat in data/cert.pem / data/key.pem
Make: certificates are generated by make codebeamer-pem and placed in data/ssl/cert.pem / data/ssl/key.pem
The server checks for the Bazel path first and falls back to the Make path. Once make system-tests is fully replaced by bazel test //tests_system:system_tests, the Make fallback (data/ssl/ path) can be removed and only the Bazel path will remain.