This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 9d0b440554fe [MINOR][INFRA] Mention SBT profile activation in AGENTS.md
9d0b440554fe is described below
commit 9d0b440554fe90d1b58c712c9ad1fe3c10bde6ec
Author: Cheng Pan <[email protected]>
AuthorDate: Thu Jun 18 08:58:41 2026 -0700
[MINOR][INFRA] Mention SBT profile activation in AGENTS.md
### What changes were proposed in this pull request?
As title.
### Why are the changes needed?
The `-P<profiles>` is not an SBT native feature, it's an extension of the
Spark SBT script to simulate the Maven experience, without explicit guidance,
LLM may take more steps or fail to figure it out when trying to run tests from
an optional module.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manually tested, with this prompt, LLM knows how to run tests in opt
modules, e.g., `yarn`
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #56568 from pan3793/agent-opt-modules.
Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
AGENTS.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/AGENTS.md b/AGENTS.md
index 5bdda2578340..5f46fbbd60d5 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -70,6 +70,10 @@ Run test cases matching a substring:
build/sbt '<module>/testOnly *MySuite -- -z "test name"'
+Run test cases in an optional module:
+
+ build/sbt -P<maven-profiles> '<module>/testOnly *MySuite'
+
For faster iteration, keep SBT open in interactive mode:
build/sbt
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]