Skip to content
Open
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
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ build --@rules_rust//:clippy_flag=-Wclippy::dbg_macro
build --@rules_rust//:clippy_flag=-Wclippy::decimal_literal_representation
build --@rules_rust//:clippy_flag=-Dclippy::elidable_lifetime_names
build --@rules_rust//:clippy_flag=-Dclippy::explicit_into_iter_loop
build --@rules_rust//:clippy_flag=-Dclippy::future_not_send
build --@rules_rust//:clippy_flag=-Aclippy::get_unwrap
build --@rules_rust//:clippy_flag=-Dclippy::missing_const_for_fn
build --@rules_rust//:clippy_flag=-Aclippy::missing_docs_in_private_items
Expand Down
77 changes: 40 additions & 37 deletions .github/workflows/native-bazel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,42 +60,45 @@ jobs:
fi
shell: bash

# FIXME(palfrey): Can't make this reliably run in CI
# redis-store-tester:
# name: Redis store tester
# runs-on: ubuntu-24.04
# timeout-minutes: 30
# services:
# redis:
# image: redis:8.0.5-alpine3.21
# options: >-
# --health-cmd "redis-cli ping"
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# ports:
# - 6379:6379
# steps:
# - name: Checkout
# uses: >- # v4.2.2
# actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
redis-store-tester:
name: Redis store tester
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout
uses: >- # v4.2.2
actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

- uses: hoverkraft-tech/compose-action@3846bcd61da338e9eaaf83e7ed0234a12b099b72 # v2.4.1
with:
compose-file: src/bin/docker-compose.store-tester.yaml

- name: Setup Bazel
uses: >- # v0.13.0
bazel-contrib/setup-bazel@663f88d97adf17db2523a5b385d9407a562e5551
with:
bazelisk-cache: true
repository-cache: true
disk-cache: ${{ github.workflow }}-ubuntu-24.04

# - name: Setup Bazel
# uses: >- # v0.13.0
# bazel-contrib/setup-bazel@663f88d97adf17db2523a5b385d9407a562e5551
# with:
# bazelisk-cache: true
# repository-cache: true
# disk-cache: ${{ github.workflow }}-ubuntu-24.04
- name: Run Store tester with sentinel
run: |
bazel run //:redis_store_tester \
--extra_toolchains=@rust_toolchains//:all \
--verbose_failures -- --redis-mode sentinel --mode sequential
env:
RUST_LOG: trace
REDIS_HOST: localhost
MAX_LOOPS: 10 # running sequentially just to test all the actions work
shell: bash

# - name: Run Bazel tests
# run: |
# bazel run //:redis_store_tester \
# --extra_toolchains=@rust_toolchains//:all \
# --verbose_failures
# env:
# RUST_LOG: trace
# REDIS_HOST: localhost
# MAX_REDIS_PERMITS: 50 # because CI times out sometimes
# MAX_LOOPS: 10000 # Not reliably running above this sort of level (possible low memory?)
# shell: bash
- name: Run Store tester
run: |
bazel run //:redis_store_tester \
--extra_toolchains=@rust_toolchains//:all \
--verbose_failures -- --redis-mode standard --mode sequential
env:
RUST_LOG: trace
REDIS_HOST: localhost
MAX_LOOPS: 10 # running sequentially just to test all the actions work
shell: bash
3 changes: 3 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ rust_binary(
"//nativelink-store",
"//nativelink-util",
"@crates//:bytes",
"@crates//:clap",
"@crates//:futures",
"@crates//:rand",
"@crates//:redis",
"@crates//:tokio",
"@crates//:tracing",
],
Expand Down
156 changes: 72 additions & 84 deletions Cargo.lock

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

Loading