Agent skills: Add skills for updating pinned dependencies Add instructions for routine dependency updates for util/bot/DEPS, MODULE.bazel, go.mod, and rust/Cargo.lock. Change-Id: I1b88d0e6bb2a2c068762f03d086dd60a6a6a6964 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/106190 Auto-Submit: Lily Chen <chlily@google.com> Commit-Queue: Lily Chen <chlily@google.com> Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/_agents/skills/update_bazel_deps/SKILL.md b/_agents/skills/update_bazel_deps/SKILL.md new file mode 100644 index 0000000..004ef57 --- /dev/null +++ b/_agents/skills/update_bazel_deps/SKILL.md
@@ -0,0 +1,21 @@ +--- +name: update-bazel-deps +description: How to update Bazel module dependencies in MODULE.bazel. +--- + +# Updating Bazel Dependencies (`MODULE.bazel`) + +Run [util/update_bazel_deps.go](../../../util/update_bazel_deps.go) from the repository root (requires `go` and `bazelisk` on `PATH`) to update `bazel_dep` versions and lockfiles in `.` and `util/bazel-example`: + +```bash +go run ./util/update_bazel_deps.go +``` + +Then verify both workspaces: + +```bash +bazelisk test //... +(cd util/bazel-example && bazelisk build //...) +``` + +(See [docs/releasing.md](../../../docs/releasing.md) for cutting a new BoringSSL BCR release, and [update_bot_deps](../update_bot_deps/SKILL.md) for updating the pinned Bazel version in `.bazelversion` and `util/bot/DEPS`.)
diff --git a/_agents/skills/update_bot_deps/SKILL.md b/_agents/skills/update_bot_deps/SKILL.md new file mode 100644 index 0000000..795bfc8 --- /dev/null +++ b/_agents/skills/update_bot_deps/SKILL.md
@@ -0,0 +1,8 @@ +--- +name: update-bot-deps +description: How to update CI/CQ toolchain and library dependencies pinned in util/bot/DEPS. +--- + +# Updating Bot Dependencies (`util/bot/DEPS`) + +Follow [util/bot/UPDATING.md](../../../util/bot/UPDATING.md) to update dependencies and test locally. For dependencies in [util/bot/DEPS](../../../util/bot/DEPS), follow the instructions in inline comments on `vars`.
diff --git a/_agents/skills/update_go_deps/SKILL.md b/_agents/skills/update_go_deps/SKILL.md new file mode 100644 index 0000000..435b591 --- /dev/null +++ b/_agents/skills/update_go_deps/SKILL.md
@@ -0,0 +1,21 @@ +--- +name: update-go-deps +description: How to update Go module dependencies in go.mod and go.sum. +--- + +# Updating Go Dependencies (`go.mod`) + +1. **Update Modules and Tidy**: + * From the repository root, update a specific module (`go get example.com/pkg@latest`) or all dependencies: + ```bash + go get -u ./... + go mod tidy + ``` + * Ensure `go get` did not raise the `go` directive in [go.mod](../../../go.mod) above `go_version` in [util/bot/DEPS](../../../util/bot/DEPS) (see [update_bot_deps](../update_bot_deps/SKILL.md)). + +2. **Verify**: + ```bash + go test $(cat util/go_tests.txt) + go build ./util/fipstools/acvp/acvptool + ``` + Also run pregeneration checks (see [update_pregenerated_files](../update_pregenerated_files/SKILL.md)) and the SSL runner (see [run_ssl_go_tests](../run_ssl_go_tests/SKILL.md)).
diff --git a/_agents/skills/update_rust_deps/SKILL.md b/_agents/skills/update_rust_deps/SKILL.md new file mode 100644 index 0000000..035e3d4 --- /dev/null +++ b/_agents/skills/update_rust_deps/SKILL.md
@@ -0,0 +1,17 @@ +--- +name: update-rust-deps +description: How to update Rust crate dependencies in rust/Cargo.lock. +--- + +# Updating Rust Dependencies (`rust/Cargo.lock`) + +1. **Update [rust/Cargo.lock](../../../rust/Cargo.lock)**: + ```bash + cd rust && cargo update + ``` + (Pass `-p <crate>` for a targeted update.) + +2. **Build and Verify**: + * Build BoringSSL with Rust bindings enabled as described in [rust/bssl-sys/README.md](../../../rust/bssl-sys/README.md). + * Run workspace tests and the checks described in [rust/bssl-crypto/README.md](../../../rust/bssl-crypto/README.md) (`cargo test` and `cargo clippy --all-targets` in `rust/`; `cargo deny check` in each crate directory that has a `deny.toml`: `bssl-crypto`, `bssl-tls`, `bssl-rustls-adapters`). + * Note: CQ enforces `cargo build` and `cargo test` (`--all-targets` and `--all-features`). `cargo clippy` and `cargo deny check` are not enforced by CQ, so treat a missing local `cargo-deny` as non-blocking (while still respecting `deny.toml` license and duplicate-version rules).