Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • bazel/rules_git
1 result
Show changes
Commits on Source (14)
Showing
with 1132 additions and 76 deletions
# `bzlmod` pre-release registries
common --registry https://bcr.bazel.build
common --registry=https://gitlab.arm.com/bazel/rules_tar/-/releases/v1.0.0-beta.2/downloads
# Build cache
build --experimental_guard_against_concurrent_changes
......
......@@ -16,9 +16,6 @@ common --show_timestamps
# Do not wrap any output
common --terminal_columns=0
# Print relative paths where possible to reduce noise
common --attempt_to_print_relative_paths
# Output as much information in the CI log about failures as possible
build --verbose_failures
......@@ -28,8 +25,12 @@ test --test_output=errors
# Output as much information when a test exceeds a timeout
test --test_verbose_timeout_warnings
# Validate that the lockfile is correct
common --lockfile_mode=error
# These locations are cached on the CI
build:local --disk_cache=${CI_PROJECT_DIR}/.cache/bazel/disk
# FIXME: re-enable disk cache when ruleset is more stable
# build:local --disk_cache=${CI_PROJECT_DIR}/.cache/bazel/disk
build:local --repository_cache=${CI_PROJECT_DIR}/.cache/bazel/repo
# Use remote cache/execution for our builds
......@@ -60,5 +61,5 @@ build:remote --experimental_profile_include_primary_output
# Eliminate duplicate references in the Build Event Stream
build:remote --nolegacy_important_outputs
# TODO: remove this when `bazel/ape` binaries work on remote execution `arm64` instances
build:remote --host_platform=@toolchain_utils//toolchain/platform:amd64-linux-gnu
# Describe remote executors
build:remote --extra_execution_platforms=@toolchain_utils//toolchain/platform:amd64-linux-gnu
......@@ -23,7 +23,11 @@ test:
extends: .bazelisk
cache:
- !reference [.bazelisk, cache]
- key: "bazel-cache-${CI_PROJECT_ID}"
- key:
prefix: "bazel-cache-${CI_PROJECT_ID}"
files:
- "MODULE.bazel.lock"
- "e2e/MODULE.bazel.lock"
paths:
- ".cache/bazel/disk"
- ".cache/bazel/repo"
......@@ -36,8 +40,9 @@ test:
- local
- remote
script:
- (cd "${ROOT}"; bazelisk build --config="${CONFIG}" //...)
- (cd "${ROOT}"; bazelisk test --config="${CONFIG}" //...)
- cd "${ROOT}"; bazelisk test --config="${CONFIG}" //...
# FIXME: our tests should always pass!
allow_failure: true
# TODO: switch this out for `rules_semantic_release`
semantic-release:
......
# [1.0.0-alpha.7](https://git.gitlab.arm.com/bazel/rules_git/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2024-09-13)
### Bug Fixes
- **archive:** resolve `.` in prefix paths ([816a095](https://git.gitlab.arm.com/bazel/rules_git/commit/816a09523d31979c14e4d643f8134f219499c88b))
- bump to `bazel-git@1.0.0-alpha.10` ([2f85a37](https://git.gitlab.arm.com/bazel/rules_git/commit/2f85a375b1a23c95c16db038bb4938f23c95e9df))
# [1.0.0-alpha.6](https://git.gitlab.arm.com/bazel/rules_git/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2024-08-20)
### Bug Fixes
......
module(
name = "rules_git",
version = "1.0.0-alpha.6",
version = "1.0.0-alpha.7",
bazel_compatibility = [
">=7.1.0",
],
......@@ -8,10 +8,11 @@ module(
)
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "toolchain_utils", version = "1.0.0-beta.13")
bazel_dep(name = "download_utils", version = "1.0.0-beta.2")
bazel_dep(name = "rules_coreutils", version = "1.0.0-beta.4")
bazel_dep(name = "rules_coreutils", version = "1.0.0-beta.6")
bazel_dep(name = "rules_tar", version = "1.0.0-beta.2")
bazel_dep(name = "ape", version = "1.0.0-beta.12")
download_file = use_repo_rule("@download_utils//download/file:defs.bzl", "download_file")
......@@ -27,15 +28,15 @@ download_file = use_repo_rule("@download_utils//download/file:defs.bzl", "downlo
"entrypoint": "git",
},
output = binary,
urls = ["https://gitlab.arm.com/api/v4/projects/bazel%2Fgit/packages/generic/release/1.0.0-alpha.9/{}".format(binary)],
urls = ["https://gitlab.arm.com/api/v4/projects/bazel%2Fgit/packages/generic/release/1.0.0-alpha.10/{}".format(binary)],
)
for binary, integrity in (
("amd64-linux-bazel-git", "sha256-fWAiKdC+wreO/Rm5+qlDDJXBDd16QprJsJo1/RNv2SU="),
("arm64-linux-bazel-git", "sha256-kXscEZO2t0kb4628WgFtyJEG9ldhfmmxESeftooHtdA="),
("amd64-darwin-bazel-git", "sha256-aI/sGwYgbEc3oOvGCk/ZsQ0orwfxzqC6PyIPBdOQsgg="),
("arm64-darwin-bazel-git", "sha256-8Y3IRacAg1nmL1/FIbLVPcoM8/J3zrcPzS8NKR8eai8="),
("amd64-windows-bazel-git.exe", "sha256-ZrpJMlSyG9ZES6OfI4Gd+1SyvL3P5meCX3vvve4isf4="),
("arm64-windows-bazel-git.exe", "sha256-ks6HpcSGN4QTjLLiXWUnWxIDO4hrmEPB1a1jvmllagM="),
("amd64-linux-bazel-git", "sha256-9y7F23wDwUnJQ1GnfQG5bVoYyupI9WVazilZQlfKWWY="),
("arm64-linux-bazel-git", "sha256-z7nrLjSnEPKejO48dhSb1Qjoc2nvYBt0HMzxMtwBvcQ="),
("amd64-darwin-bazel-git", "sha256-ry/VjOdZfb78BlByvv4Law7CEWE/RkUCS7B8cXijPqA="),
("arm64-darwin-bazel-git", "sha256-NAJQ3dD8uiTDdy2aScOA6hy2ynrnoUwVxMVC2/qE9ok="),
("amd64-windows-bazel-git.exe", "sha256-DUJeae5CASo+pjC2/TWmEk1mG+zVPCBaA+mjwtIdSys="),
("arm64-windows-bazel-git.exe", "sha256-knZNi6TNIVhaM99vToeO51Ha+3m3VrFcDJiyRZ+qc6k="),
)
]
......
This diff is collapsed.
# `bzlmod` pre-release registries
common --registry https://bcr.bazel.build
common --registry=https://gitlab.arm.com/bazel/rules_tar/-/releases/v1.0.0-beta.2/downloads
# Build cache
build --experimental_guard_against_concurrent_changes
......
# Increase output log size
build --experimental_ui_max_stdouterr_bytes=268435456
# Declare all run commands that are loaded
common --announce_rc
......@@ -19,9 +16,6 @@ common --show_timestamps
# Do not wrap any output
common --terminal_columns=0
# Print relative paths where possible to reduce noise
common --attempt_to_print_relative_paths
# Output as much information in the CI log about failures as possible
build --verbose_failures
......@@ -31,8 +25,12 @@ test --test_output=errors
# Output as much information when a test exceeds a timeout
test --test_verbose_timeout_warnings
# Validate that the lockfile is correct
common --lockfile_mode=error
# These locations are cached on the CI
build:local --disk_cache=${CI_PROJECT_DIR}/.cache/bazel/disk
# FIXME: re-enable disk cache when ruleset is more stable
# build:local --disk_cache=${CI_PROJECT_DIR}/.cache/bazel/disk
build:local --repository_cache=${CI_PROJECT_DIR}/.cache/bazel/repo
# Use remote cache/execution for our builds
......@@ -63,5 +61,5 @@ build:remote --experimental_profile_include_primary_output
# Eliminate duplicate references in the Build Event Stream
build:remote --nolegacy_important_outputs
# TODO: remove this when `bazel/ape` binaries work on remote execution `arm64` instances
build:remote --host_platform=@toolchain_utils//toolchain/platform:amd64-linux-gnu
# Describe remote executors
build:remote --extra_execution_platforms=@toolchain_utils//toolchain/platform:amd64-linux-gnu
......@@ -8,6 +8,7 @@ module(
bazel_dep(name = "rules_git")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "rules_diff", version = "1.0.0-beta.3")
bazel_dep(name = "rules_tar", version = "1.0.0-beta.1")
bazel_dep(name = "toolchain_utils", version = "1.0.0-beta.13", dev_dependency = True)
......
This diff is collapsed.
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
diff_directory_test(
......@@ -7,38 +6,3 @@ diff_directory_test(
a = "@github-git-git-2.43.0//:checkout",
b = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:checkout",
)
build_test(
name = "archive.tar",
targets = [
"@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar",
],
)
build_test(
name = "archive.tar.gz",
targets = [
"@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar.gz",
],
)
build_test(
name = "archive.tar.bz2",
targets = [
"@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar.bz2",
],
)
build_test(
name = "archive.tar.xz",
targets = [
"@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar.xz",
],
)
build_test(
name = "archive.tar.zst",
targets = [
"@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar.zst",
],
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar.bz2",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:checkout",
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar.gz",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:checkout",
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:checkout",
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar.xz",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:checkout",
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:archive.tar.zst",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-git-git-c089584ac8dedc3aa7c2c404839bc098050298a2//:checkout",
# FIXME: `@ape//:zstd` currently closes `stdin` on large inputs
# Possibly an issue in Cosmopolitan `libc`, a new release may fix
tags = ["manual"],
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-mozilla-deepspeech-f2e9c85880dff94115ab510cde9ca4af7ee51c19//:archive.tar.bz2",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-mozilla-deepspeech-f2e9c85880dff94115ab510cde9ca4af7ee51c19//:checkout",
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-mozilla-deepspeech-f2e9c85880dff94115ab510cde9ca4af7ee51c19//:archive.tar.gz",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-mozilla-deepspeech-f2e9c85880dff94115ab510cde9ca4af7ee51c19//:checkout",
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-mozilla-deepspeech-f2e9c85880dff94115ab510cde9ca4af7ee51c19//:archive.tar",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-mozilla-deepspeech-f2e9c85880dff94115ab510cde9ca4af7ee51c19//:checkout",
)
load("@rules_diff//diff/directory/test:defs.bzl", "diff_directory_test")
load("@rules_tar//tar/unpack:defs.bzl", "tar_unpack")
tar_unpack(
name = "unpacked",
src = "@github-mozilla-deepspeech-f2e9c85880dff94115ab510cde9ca4af7ee51c19//:archive.tar.xz",
)
diff_directory_test(
name = "checkout",
size = "small",
a = ":unpacked",
b = "@github-mozilla-deepspeech-f2e9c85880dff94115ab510cde9ca4af7ee51c19//:checkout",
)