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
43 changes: 0 additions & 43 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1095,49 +1095,6 @@ tasks:
- "//..."
test_targets:
- "//..."
extensions_protobuf_linux:
platform: ubuntu2204
name: Extensions Protobuf
working_directory: extensions/protobuf
build_flags: *aspects_flags
test_flags: *aspects_flags
build_targets:
- "//..."
test_targets:
- "//..."
extensions_protobuf_linux_rbe:
platform: rbe_ubuntu2204
name: Extensions Protobuf
working_directory: extensions/protobuf
shell_commands:
- sed -i 's/^# load("@bazel_ci_rules/load("@bazel_ci_rules/' WORKSPACE.bazel
- sed -i 's/^# rbe_preconfig/rbe_preconfig/' WORKSPACE.bazel
build_flags: *aspects_flags
test_flags: *aspects_flags
build_targets:
- "//..."
test_targets:
- "//..."
extensions_protobuf_macos:
platform: macos_arm64
name: Extensions Protobuf
working_directory: extensions/protobuf
build_flags: *aspects_flags
test_flags: *aspects_flags
build_targets:
- "//..."
test_targets:
- "//..."
extensions_protobuf_windows:
platform: windows
name: Extensions Protobuf
working_directory: extensions/protobuf
build_flags: *aspects_flags
test_flags: *aspects_flags
build_targets:
- "//..."
test_targets:
- "//..."
extensions_pyo3_linux:
platform: ubuntu2204
name: Extensions PyO3
Expand Down
1 change: 0 additions & 1 deletion .bcr/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ moduleRoots:
- "extensions/bindgen"
- "extensions/mdbook"
- "extensions/prost"
- "extensions/protobuf"
- "extensions/pyo3"
- "extensions/wasm_bindgen"
23 changes: 0 additions & 23 deletions .bcr/extensions/protobuf/metadata.template.json

This file was deleted.

12 changes: 0 additions & 12 deletions .bcr/extensions/protobuf/presubmit.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .bcr/extensions/protobuf/source.template.json

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ examples/sys/basic/3rdparty/crates/** linguist-generated
examples/sys/complex/3rdparty/crates/** linguist-generated
extensions/bindgen/3rdparty/crates/** linguist-generated
extensions/prost/private/3rdparty/crates/** linguist-generated
extensions/protobuf/3rdparty/crates/** linguist-generated
extensions/wasm_bindgen/3rdparty/crates/** linguist-generated
tools/rust_analyzer/3rdparty/crates/** linguist-generated
util/import/3rdparty/crates/** linguist-generated
31 changes: 0 additions & 31 deletions .github/release_notes.template
Original file line number Diff line number Diff line change
Expand Up @@ -93,37 +93,6 @@ http_archive(
)
```

</details>

### Protobuf

<details>

#### Bzlmod

```python
bazel_dep(name = "rules_rust_protobuf", version = "{version}")

register_toolchains(
"@rules_rust_pyo3//toolchains:toolchain",
"@rules_rust_pyo3//toolchains:rust_toolchain",
)
```

#### WORKSPACE

```python
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_rust_protobuf",
integrity = "sha256-{sha256_base64}",
strip_prefix = "extensions/protobuf",
urls = ["https://github.com/bazelbuild/rules_rust/releases/download/{version}/rules_rust-{version}.tar.gz"],
)
```

</details>

### PyO3

<details>
Expand Down
106 changes: 106 additions & 0 deletions .github/workflows/determinism.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Determinism

on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths:
- test/determinism/**

jobs:
check:
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
work_dir: ${{ env.RUNNER_TEMP }}/r
- os: ubuntu-latest
work_dir: ${{ env.RUNNER_TEMP }}/r
- os: windows-latest
work_dir: C:\r

runs-on: ${{ matrix.os }}
name: Check (${{ matrix.os }})

steps:
- uses: actions/checkout@v4
with:
clean: true

- name: Run tests
continue-on-error: true
run: |
bazel run \
--compilation_mode=opt \
//test/determinism:tester \
-- test \
--output="${{ github.workspace }}/results.json" \
--work-dir="${{ matrix.work_dir }}"

- name: Summarize (unix)
if: runner.os != 'Windows'
shell: bash
run: |
if [[ ! -f results.json ]]; then
exit 1
fi

{
echo '<details>'
echo
echo '```json'
cat results.json
echo
echo '```'
echo
echo '</details>'
} >> "$GITHUB_STEP_SUMMARY"

if [[ "$(cat results.json)" != "[]"* ]]; then
exit 1
fi

- name: Summarize (windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
if (-not (Test-Path results.json)) { exit 1 }

Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value '<details>'
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value ''
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value '```json'
Get-Content -Path results.json | Add-Content -Path $env:GITHUB_STEP_SUMMARY
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value ''
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value '```'
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value ''
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value '</details>'

$content = Get-Content -Path results.json -Raw
if (-not $content.StartsWith('[]')) { exit 1 }

- name: Archive output base (unix)
if: runner.os != 'Windows' && always()
shell: bash
run: |
if [[ -d "${{ matrix.work_dir }}/o" ]]; then
tar -czf output-base.tar.gz -C "${{ matrix.work_dir }}" o
fi

- name: Archive output base (windows)
if: runner.os == 'Windows' && always()
shell: pwsh
run: |
if (Test-Path "${{ matrix.work_dir }}\o") {
Compress-Archive -Path "${{ matrix.work_dir }}\o" -DestinationPath output-base.zip
}

- name: Upload output base artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: output-base-${{ matrix.os }}
path: |
output-base.tar.gz
output-base.zip
if-no-files-found: ignore
11 changes: 11 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ use_repo(
"buildkite_config",
"generated_inputs_in_external_repo",
"libc",
"rrtd",
"rrtd__anyhow-1.0.100",
"rrtd__blake3-1.8.2",
"rrtd__clap-4.5.50",
"rrtd__serde-1.0.228",
"rrtd__serde_json-1.0.145",
"rrtd__tempfile-3.23.0",
"rrtd__tokio-1.48.0",
"rrtd__tracing-0.1.41",
"rrtd__tracing-subscriber-0.3.20",
"rrtd__walkdir-2.5.0",
"rtra",
"rtra__serde-1.0.228",
"rtra__serde_json-1.0.149",
Expand Down
9 changes: 0 additions & 9 deletions docs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ bzl_library(
"@rules_rust//rust:bzl_lib",
"@rules_rust_bindgen//:bzl_lib",
"@rules_rust_prost//:bzl_lib",
"@rules_rust_protobuf//:bzl_lib",
"@rules_rust_wasm_bindgen//:bzl_lib",
],
)
Expand Down Expand Up @@ -216,13 +215,6 @@ stardoc(
deps = ["@rules_rust_mdbook//:bzl_lib"],
)

stardoc(
name = "rust_protobuf",
out = "src/rust_protobuf.md",
input = "@rules_rust_protobuf//:defs.bzl",
deps = ["@rules_rust_protobuf//:bzl_lib"],
)

stardoc(
name = "rust_prost",
out = "src/rust_prost.md",
Expand Down Expand Up @@ -276,7 +268,6 @@ mdbook(
":rust_fmt",
":rust_mdbook",
":rust_prost",
":rust_protobuf",
":rust_pyo3",
":rust_repositories",
":rust_settings",
Expand Down
6 changes: 0 additions & 6 deletions docs/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ local_path_override(
path = "../extensions/pyo3",
)

bazel_dep(name = "rules_rust_protobuf", version = "0.0.0")
local_path_override(
module_name = "rules_rust_protobuf",
path = "../extensions/protobuf",
)

bazel_dep(name = "rules_rust_wasm_bindgen", version = "0.0.0")
local_path_override(
module_name = "rules_rust_wasm_bindgen",
Expand Down
1 change: 0 additions & 1 deletion docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@
- [bindgen](./rust_bindgen.md)
- [mdbook](./rust_mdbook.md)
- [prost](./rust_prost.md)
- [protobuf](./rust_protobuf.md)
- [pyo3](./rust_pyo3.md)
- [wasm_bindgen](./rust_wasm_bindgen.md)
1 change: 0 additions & 1 deletion docs/src/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@

- [rust_bindgen](rust_bindgen.md): rules for generating C++ bindings.
- [rust_prost](rust_prost.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers) and [gRPC](https://grpc.io) stubs using [prost](https://github.com/tokio-rs/prost).
- [rust_protobuf](rust_protobuf.md): rules for generating [protobuf](https://developers.google.com/protocol-buffers) and [gRPC](https://grpc.io) stubs with [rust-protobuf](https://github.com/stepancheg/rust-protobuf/)
- [rust_pyo3](rust_pyo3.md): Bazel rules for [PyO3](https://pyo3.rs/v0.23.4/).
- [rust_wasm_bindgen](rust_wasm_bindgen.md): rules for generating [WebAssembly](https://www.rust-lang.org/what/wasm) bindings.
5 changes: 0 additions & 5 deletions extensions/protobuf/.bazelignore

This file was deleted.

Loading
Loading