Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .bazelci/isolate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
set -euo pipefail

module_dir="${1:-}"

if [[ -z "${module_dir}" ]]; then
echo "Usage: $0 <module_directory>"
exit 1
fi

# Find the repository root assuming this script is in .bazelci/
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
repo_root="$(dirname "${script_dir}")"

cd "${repo_root}"

if [[ ! -f "MODULE.bazel" ]]; then
echo "Error: MODULE.bazel not found in ${repo_root}. Are you sure this is the repo root?"
exit 1
fi

if [[ ! -d "${module_dir}" ]]; then
echo "Error: Module directory '${module_dir}' not found in ${repo_root}."
exit 1
fi

echo "Removing files outside of ${module_dir} to simulate BCR environment..."
find . -maxdepth 1 -mindepth 1 \
! -name "${module_dir}" \
! -name ".git" \
! -name ".bazelci" \
-exec rm -rf '{}' +
4 changes: 4 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ tasks:
name: "Sphinxdocs: Ubuntu"
working_directory: "sphinxdocs"
platform: ubuntu2204
shell_commands:
- "../.bazelci/isolate.sh sphinxdocs"
build_targets:
- "//..."
test_targets:
Expand All @@ -188,6 +190,8 @@ tasks:
name: "Sphinxdocs: Mac"
working_directory: "sphinxdocs"
platform: macos_arm64
shell_commands:
- "../.bazelci/isolate.sh sphinxdocs"
build_targets:
- "//..."
test_targets:
Expand Down
100 changes: 50 additions & 50 deletions tools/publish/requirements_linux.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 50 additions & 50 deletions tools/publish/requirements_universal.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.