Skip to content

Commit

Permalink
Really fix LRE/Remote workflow after b44383f (#1443)
Browse files Browse the repository at this point in the history
The previous implementation didn't correctly resolve the repo URL.
  • Loading branch information
aaronmondal authored Oct 31, 2024
1 parent b4cb577 commit a0e5cf7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lre.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
- name: Start NativeLink operator
env:
REPO_URL: ${{ github.event.pull_request.head.repo.clone_url || github.repository }}
REPO_URL: ${{ github.event.pull_request.head.repo.clone_url || format('https://github.com/{0}.git', github.repository) }}
BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
COMMIT: ${{ github.event.pull_request.head.sha || github.sha }}
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ In terminals, the following commands can be helpful to view deployment progress:

- `tkn pr logs -f` to view the logs of a `PipelineRun` in the terminal.
- `flux get all -A` to view the state of the NativeLink deployments.
- Once NativeLink is deployed:
- `kubectl logs deploy/nativelink-cas` for the CAS (cache) logs.
- `kubectl logs deploy/nativelink-scheduler` for the scheduler logs.
- `kubectl logs deploy/nativelink-worker` for the worker logs.

Once NativeLink is deployed:

- `kubectl logs deploy/nativelink-cas` for the CAS (cache) logs.
- `kubectl logs deploy/nativelink-scheduler` for the scheduler logs.
- `kubectl logs deploy/nativelink-worker` for the worker logs.

## 🏗️ Build against NativeLink

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This example doesn't work on Mac yet.
First, enter the NativeLink development environment:

```bash
git clone https://github.com/aaronmondal/nativelink && \
git clone https://github.com/TraceMachina/nativelink && \
cd nativelink && \
nix develop
```
Expand Down Expand Up @@ -75,10 +75,12 @@ In terminals, the following commands can be helpful to view deployment progress:

- `tkn pr logs -f` to view the logs of a `PipelineRun` in the terminal.
- `flux get all -A` to view the state of the NativeLink deployments.
- Once NativeLink is deployed:
- `kubectl logs deploy/nativelink-cas` for the CAS (cache) logs.
- `kubectl logs deploy/nativelink-scheduler` for the scheduler logs.
- `kubectl logs deploy/nativelink-worker` for the worker logs.

Once NativeLink is deployed:

- `kubectl logs deploy/nativelink-cas` for the CAS (cache) logs.
- `kubectl logs deploy/nativelink-scheduler` for the scheduler logs.
- `kubectl logs deploy/nativelink-worker` for the worker logs.

## 🏗️ Build against NativeLink

Expand All @@ -94,8 +96,6 @@ echo "Cache IP: $CACHE"
echo "Scheduler IP: $SCHEDULER"

bazel build \
--config=lre \
--remote_instance_name=main \
--remote_cache=grpc://$CACHE \
--remote_executor=grpc://$SCHEDULER \
//local-remote-execution/examples:hello_lre
Expand All @@ -113,8 +113,6 @@ Note that you'll need to pass in explicit IP addresses as this file can't
resolve environment variables:
```bash
# .bazelrc.user
build --config=lre
build --remote_instance_name=main
build --remote_cache=grpc://172.20.255.4
build --remote_executor=grpc://172.20.255.5
```
Expand All @@ -136,8 +134,6 @@ cache and run the build again:

```bash
bazel clean && bazel build \
--config=lre \
--remote_instance_name=main \
--remote_cache=grpc://$CACHE \
--remote_executor=grpc://$SCHEDULER \
//local-remote-execution/examples:hello_lre
Expand All @@ -163,8 +159,6 @@ you'll use remote caching without remote execution:

```bash
bazel clean && bazel build \
--config=lre \
--remote_instance_name=main \
--remote_cache=grpc://$CACHE \
//local-remote-execution/examples:hello_lre
```
Expand Down

0 comments on commit a0e5cf7

Please sign in to comment.