Skip to content

[Repo Assist] build: add test-rust Makefile target and include Rust tests in agent-finished#4086

Merged
lpcox merged 2 commits intomainfrom
repo-assist/eng-rust-test-target-2026-04-18-7f8b4dfb8166a036
Apr 18, 2026
Merged

[Repo Assist] build: add test-rust Makefile target and include Rust tests in agent-finished#4086
lpcox merged 2 commits intomainfrom
repo-assist/eng-rust-test-target-2026-04-18-7f8b4dfb8166a036

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Summary

Adds a test-rust Makefile target for running the Rust guard unit tests, and includes it in agent-finished so agents making Rust changes automatically verify correctness before creating PRs.

Changes

Makefile:

  • New test-rust target: runs cargo test in guards/github-guard/rust-guard/. Degrades gracefully if cargo is not installed (prints a warning and skips, matching the golangci-lint pattern).
  • agent-finished: appends a Rust test step after the Go tests.
  • .PHONY: adds test-rust.
  • help: documents the new target.

Motivation

Agents editing Rust guard code (e.g. lib.rs, tools.rs, labels/*.rs) had no automated way to verify the Rust tests via make agent-finished. The 308 Rust unit tests were silently skipped. This caused a real gap: an agent could introduce a Rust regression and still see "✓ All agent-finished checks passed!". The new target closes that gap.

Test Status

make test-rust
...
test result: ok. 308 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

Rust guard tests complete!

Go build/test blocked by pre-existing proxy.golang.org firewall issue — unrelated to this change.

Warning

⚠️ Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • proxy.golang.org

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "proxy.golang.org"

See Network Configuration for more information.

Generated by Repo Assist · ● 4.1M ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@851905c06e905bf362a9f6cc54f912e3df747d55

…finished

Adds a test-rust target that runs cargo test in guards/github-guard/rust-guard/.
The target degrades gracefully when cargo is not installed (same pattern as
golangci-lint). Includes test-rust in agent-finished so agents making Rust
changes automatically verify guard correctness before creating PRs.

Also adds test-rust to the .PHONY list and help output.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lpcox lpcox marked this pull request as ready for review April 18, 2026 16:00
Copilot AI review requested due to automatic review settings April 18, 2026 16:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a make test-rust target to run Rust guard unit tests and wires Rust tests into the agent-finished workflow so Rust-related changes get exercised by default.

Changes:

  • Introduces test-rust target that runs cargo test in guards/github-guard/rust-guard/, skipping with a warning if cargo is unavailable.
  • Extends agent-finished to run Rust unit tests after Go tests.
  • Updates .PHONY and help output to include the new target.
Show a summary per file
File Description
Makefile Adds test-rust, documents it, and runs Rust tests as part of agent-finished.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread Makefile Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lpcox lpcox merged commit 2537105 into main Apr 18, 2026
14 checks passed
@lpcox lpcox deleted the repo-assist/eng-rust-test-target-2026-04-18-7f8b4dfb8166a036 branch April 18, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants