Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
28a3591
init
thesayyn Jan 26, 2026
4bb7f93
wip
thesayyn Jan 26, 2026
627b9f3
config
thesayyn Jan 26, 2026
47e9e9f
wip
thesayyn Jan 26, 2026
ac30c44
export axl config
thesayyn Jan 26, 2026
502b61d
flag generation
thesayyn Jan 27, 2026
17dbca9
configuration
thesayyn Jan 27, 2026
e9e4683
use cache
thesayyn Jan 27, 2026
cda8b58
configure
thesayyn Jan 28, 2026
b5d5bdc
Update pre-command
thesayyn Jan 28, 2026
806817b
Update pipeline.yaml
thesayyn Jan 28, 2026
32811ff
Update environment
thesayyn Jan 28, 2026
64b3a69
Update pipeline.yaml
thesayyn Jan 28, 2026
8358b4b
Update pipeline.yaml
thesayyn Jan 28, 2026
681b8ad
Update pipeline.yaml
thesayyn Jan 28, 2026
19799c0
Update pipeline.yaml
thesayyn Jan 28, 2026
9f43706
Update pipeline.yaml
thesayyn Jan 28, 2026
5a3c948
Update config.axl
thesayyn Jan 28, 2026
c136212
Update build.axl
thesayyn Jan 28, 2026
8a246fc
Update build.axl
thesayyn Jan 28, 2026
3591059
Update build.axl
thesayyn Jan 28, 2026
b7e9065
fix staleness issues
thesayyn Jan 28, 2026
8c417dc
Update pipeline.yaml
thesayyn Jan 28, 2026
0bb1861
Update pipeline.yaml
thesayyn Jan 28, 2026
7ce00ef
Update pre-command
thesayyn Jan 28, 2026
52b46c6
fix
thesayyn Jan 28, 2026
ccd9871
Update pipeline.yaml
thesayyn Jan 28, 2026
2e614c8
Update config.axl
thesayyn Jan 28, 2026
f12dba0
Update pre-command
thesayyn Jan 28, 2026
e9f04ca
Update pre-command
thesayyn Jan 28, 2026
7c25dd6
cleanup
thesayyn Jan 28, 2026
0692a05
bessie endpoint
thesayyn Jan 28, 2026
e45800b
build it in debug mode
thesayyn Jan 28, 2026
5ea456c
Update config.axl
thesayyn Jan 28, 2026
b108c9b
Update config.axl
thesayyn Jan 28, 2026
1a88cf5
Update platform-config.axl
thesayyn Jan 28, 2026
808613d
unix_socket support
thesayyn Jan 28, 2026
aeed333
fix
thesayyn Jan 28, 2026
e7c4bda
Update pre-command
thesayyn Jan 28, 2026
cfd631e
deliveryd
thesayyn Jan 28, 2026
8bf39e3
Update pre-command
thesayyn Jan 28, 2026
ba66c71
Update pre-command
thesayyn Jan 28, 2026
8992f20
Update pre-command
thesayyn Jan 28, 2026
6f81331
fix
thesayyn Jan 28, 2026
7111e57
working
thesayyn Jan 30, 2026
2b7d582
Update delivery.axl
thesayyn Jan 30, 2026
0c601ac
healthcheck and information
thesayyn Jan 30, 2026
68146d5
Update pipeline.yaml
thesayyn Jan 30, 2026
f89660b
Create test.yaml
thesayyn Jan 30, 2026
26cedd7
Update test.yaml
thesayyn Jan 30, 2026
55dfe0b
fix
thesayyn Jan 30, 2026
6404871
Update test.yaml
thesayyn Jan 30, 2026
ea62682
Update test.yaml
thesayyn Jan 30, 2026
ab27e02
Update test.yaml
thesayyn Jan 31, 2026
ad5aae6
Create token.yaml
thesayyn Jan 31, 2026
047240b
latest
thesayyn Feb 11, 2026
4665091
Working
thesayyn Feb 11, 2026
872ab19
spec mutable copy default
thesayyn Feb 11, 2026
cb73524
Add go bootstrap SDK
dzbarsky Feb 12, 2026
1fd0e99
Add go bootstrap SDK
dzbarsky Feb 12, 2026
543003b
warming
thesayyn Feb 13, 2026
5a7b18d
version.axl is now working
thesayyn Feb 15, 2026
a382fb4
Update platform.axl
thesayyn Feb 16, 2026
be73ea2
revert
thesayyn Feb 16, 2026
875d7ac
revert some of the changes
thesayyn Feb 16, 2026
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
18 changes: 18 additions & 0 deletions .aspect/axl.axl
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,23 @@ def test_http(ctx: TaskContext, tc: int, temp_dir: str) -> int:

return tc

def test_http_get_post(ctx: TaskContext, tc: int, temp_dir: str) -> int:
# Test HTTP get and post methods including unix_socket support

# Test 1: Basic HTTP GET request (reuse same URL as download test)
url = "https://raw.githubusercontent.com/aspect-build/aspect-cli/refs/heads/main/LICENSE"
resp1 = ctx.http().get(url = url).block()
tc = test_case(tc, resp1.status == 200, "http.get should return status 200")
tc = test_case(tc, "Apache License" in resp1.body, "http.get body should contain Apache License text")
tc = test_case(tc, type(resp1.headers) == "list", "http.get headers should be a list")
tc = test_case(tc, len(resp1.headers) > 0, "http.get headers should not be empty")

# Test 2: HTTP GET with custom headers
resp2 = ctx.http().get(url = url, headers = {"User-Agent": "AXL-Test"}).block()
tc = test_case(tc, resp2.status == 200, "http.get with custom headers should return status 200")

return tc

def impl(ctx: TaskContext) -> int:
tc = 0

Expand Down Expand Up @@ -422,6 +439,7 @@ def impl(ctx: TaskContext) -> int:
tc = test_build_events(ctx, tc, temp_dir)
tc = test_large_bes(ctx, tc, temp_dir)
tc = test_http(ctx, tc, temp_dir)
tc = test_http_get_post(ctx, tc, temp_dir)

print(tc, "tests passed")
return 0
Expand Down
2 changes: 1 addition & 1 deletion .aspect/user-task.axl
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ user_task = task(
group = ["user"],
implementation = _impl,
args = {},
config = UserTaskConfig(),
config = UserTaskConfig,
)
3 changes: 2 additions & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Cargo output directory
target/
bazel/proto/
bazel/proto/
examples/
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ common --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1
# Check local dev setup
common --workspace_status_command=tools/githooks/check-config.sh

common --toolchain_resolution_debug='\Q@@rules_rs++rules_rust+rules_rust//rust:toolchain_type\E'

common:macos --build_tag_filters=-no-macos
common:linux --host_platform=//bazel/platforms:linux_host_platform

Expand Down
51 changes: 51 additions & 0 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/sh
set -eu

ASPECT_BIN_DIR="/home/aspect-runner/.aspect/bin"

# Bazel startup options for CI
BAZEL_STARTUP_OPTS="--nohome_rc --output_user_root=/mnt/ephemeral/bazel/aspect-cli/__main__ --output_base=/mnt/ephemeral/output/aspect-cli/__main__"
BAZEL_BUILD_OPTS="--config=workflows --config=ci --show_progress_rate_limit=1"

# Skip if bazel is not installed
if ! command -v bazel >/dev/null 2>&1; then
echo "DEBUG: bazel not found, skipping"
exit 0
fi

# Generate workflows bazelrc
rosetta bazelrc > /etc/bazel.bazelrc

# Create target directory
mkdir -p "$ASPECT_BIN_DIR"

# Get current commit
CURRENT_COMMIT="$(git rev-parse HEAD)"

# Check if crates/ changed between two commits
crates_changed() {
local old_commit="$1"
local new_commit="$2"
git diff --name-only "$old_commit" "$new_commit" -- crates/ | grep -q .
}

# Build and install aspect-cli if not present or crates/ changed
ASPECT_COMMIT_FILE="$ASPECT_BIN_DIR/aspect.commit"
CACHED_COMMIT=""
if [ -f "$ASPECT_COMMIT_FILE" ]; then
CACHED_COMMIT="$(cat "$ASPECT_COMMIT_FILE")"
fi

if [ -x "$ASPECT_BIN_DIR/aspect" ] && [ -n "$CACHED_COMMIT" ] && ! crates_changed "$CACHED_COMMIT" "$CURRENT_COMMIT"; then
echo "DEBUG: Found existing aspect binary (no crates/ changes since $CACHED_COMMIT)"
else
echo "--- Building aspect-cli"
bazel $BAZEL_STARTUP_OPTS build $BAZEL_BUILD_OPTS -c dbg --remote_download_toplevel //:cli

CLI_PATH="$(bazel $BAZEL_STARTUP_OPTS cquery $BAZEL_BUILD_OPTS -c dbg --output=files //:cli 2>/dev/null)"
ls -la "$CLI_PATH" 2>&1 || echo "DEBUG: File does not exist!"
cp -f "$CLI_PATH" "$ASPECT_BIN_DIR/aspect"
chmod 0755 "$ASPECT_BIN_DIR/aspect"
echo "$CURRENT_COMMIT" > "$ASPECT_COMMIT_FILE"
echo "aspect-cli installed to $ASPECT_BIN_DIR/aspect (commit: $CURRENT_COMMIT)"
fi
51 changes: 51 additions & 0 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Generated by: aspect workflows migrate --host=buildkite
# Source: .aspect/workflows/config_aws.yaml
# DO NOT EDIT - regenerate with 'aspect workflows migrate'

env:
PATH: "/home/aspect-runner/.aspect/bin:$PATH"
ASPECT_DEBUG: "1"
steps:
- key: __main__::debug
label: ":bazel: Debug"
agents:
queue: aspect-default
timeout_in_minutes: 20
command:
- cat /etc/aspect/workflows/platform/rosetta_api_tokens
- echo ""
- cat /etc/aspect/workflows/platform/api_client_id
- echo ""
- cat /etc/aspect/workflows/platform/api_key
- echo ""
- cat /etc/aspect/workflows/platform/brs_api_endpoint
- echo ""
- cat /etc/aspect/workflows/platform/az
- echo ""
- ls /etc/aspect/workflows/bin
- key: __main__::build
label: ":bazel: Build"
agents:
queue: aspect-default
timeout_in_minutes: 20
command:
- |
echo "--- :aspect-build: Workflows environment"
/etc/aspect/workflows/bin/configure_workflows_env
echo "--- :stethoscope: Agent health check"
/etc/aspect/workflows/bin/agent_health_check
- ls /etc/aspect/workflows/platform
- aspect build ...
- key: __main__::delivery
label: ":ship: :package: :bazel: Delivery"
agents:
queue: aspect-default
timeout_in_minutes: 20
command:
- |
echo "--- :aspect-build: Workflows environment"
/etc/aspect/workflows/bin/configure_workflows_env
echo "--- :stethoscope: Agent health check"
/etc/aspect/workflows/bin/agent_health_check
- ls /tmp
- aspect delivery --build_url $BUILDKITE_BUILD_URL --commit_sha $BUILDKITE_COMMIT --force_target //:hello -- //:hello //:hello2
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.swp
.jj
.envrc.user
workflow-samples
Expand All @@ -13,3 +14,6 @@ site

# macOS desktop services files
.DS_Store

.workflows

7 changes: 7 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ alias(
actual = "//crates/aspect-launcher",
)

genrule(
name = "hello",
srcs = [],
outs = ["hello.txt"],
cmd = "echo 'Hello, World!' > $@; exit 1",
)

alias(
name = "cli",
actual = "//crates/aspect-cli",
Expand Down
29 changes: 28 additions & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
members = ["crates/*"]
exclude = ["crates/example-tui"]
exclude = ["crates/example-tui", "examples/lint"]
default-members = ["crates/aspect-cli"]
resolver = "2"

Expand Down
11 changes: 1 addition & 10 deletions MODULE.aspect
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,4 @@ axl_local_dep(
auto_use_tasks = True,
)

axl_archive_dep(
name = "aspect_rules_lint",
urls = ["https://github.com/aspect-build/rules_lint/archive/65525d871f677071877d3ea1ec096499ff7dd147.tar.gz"],
integrity = "sha512-TGcxutWr8FwxrK3G+uthbEpuYM2oOVpHPOvaVPzLLuHkfPY0jn/GWFp9myQeFzDFsRZ4ilT0jAWfGZhTk/nesQ==",
strip_prefix = "rules_lint-65525d871f677071877d3ea1ec096499ff7dd147",
auto_use_tasks = True,
dev = True,
)

use_task(".aspect/user/user-task-manual.axl", "user_task_manual")
use_task(".aspect/user/user-task-manual.axl", "user_task_manual")
4 changes: 1 addition & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ bazel_dep(name = "rules_nodejs", version = "6.7.3") # Transitive dep; bump for
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "bazelrc-preset.bzl", version = "1.4.0")
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2")
bazel_dep(name = "gazelle", version = "0.45.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.2.16")
bazel_dep(name = "rules_go", version = "0.59.0")
bazel_dep(name = "rules_pkg", version = "1.1.0")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "with_cfg.bzl", version = "0.12.0")
bazel_dep(name = "toolchains_llvm_bootstrapped", version = "0.5.2")
bazel_dep(name = "toolchains_llvm_bootstrapped", version = "0.5.5")

register_toolchains("@toolchains_llvm_bootstrapped//toolchain:all")

Expand Down
Loading