Skip to content

Created pit.crew.style.agent agent and updated pit.crew.schema#713

Open
lscalabrini01 wants to merge 6 commits into
rancher:mainfrom
lscalabrini01:qa-issue_pitcrew-agent
Open

Created pit.crew.style.agent agent and updated pit.crew.schema#713
lscalabrini01 wants to merge 6 commits into
rancher:mainfrom
lscalabrini01:qa-issue_pitcrew-agent

Conversation

@lscalabrini01

@lscalabrini01 lscalabrini01 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This PR updates the repository’s GitHub Copilot CLI custom agents documentation and agent definitions by adding a new code-style enforcement agent and expanding/refining the PIT schema generator agent guidance.

Changes:

  • Added a new pit.crew.code.style agent definition for enforcing Go test code style conventions.
  • Expanded pit.crew.schema agent instructions (rules + broader list of referenced test/schema locations).
  • Updated .github/agents/README.md to document the new code-style agent and how to invoke it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the repository’s GitHub Copilot CLI custom agents documentation and agent definitions by adding a new code-style enforcement agent and expanding/refining the PIT schema generator agent guidance.

Changes:

  • Added a new pit.crew.code.style agent definition for enforcing Go test code style conventions.
  • Expanded pit.crew.schema agent instructions (rules + broader list of referenced test/schema locations).
  • Updated .github/agents/README.md to document the new code-style agent and how to invoke it.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
.github/agents/README.md Documents the new code-style agent in the custom agents list.
.github/agents/pit.crew.schema.agent.md Refines PIT schema agent front matter and adds explicit schema-generation rules + more referenced suites.
.github/agents/pit.crew.code.style.agent.md Introduces a new agent file containing code-style checklist and reference test files.
Comments suppressed due to low confidence (1)

.github/agents/pit.crew.code.style.agent.md:90

  • The linter checklist contradicts the earlier logging guidance: it says not to use t.Log() for logging, but later suggests using “the testing package” as an alternative to fmt.Print*. Pick a single standard to avoid sending mixed guidance to agent users.
### Linter compliance
* No `time.Sleep` calls — use appropriate polls and watches instead.
* No `fmt.Print*` calls — use `logrus` or the `testing` package.

Comment thread .github/agents/pit.crew.code.style.agent.md
Comment thread .github/agents/README.md
Comment thread .github/agents/pit.crew.schema.agent.md
@lscalabrini01 lscalabrini01 force-pushed the qa-issue_pitcrew-agent branch from 006ce1a to 7a09611 Compare June 8, 2026 21:45

@hamistao hamistao left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good but I included some suggestions

## Checklist

### File and package structure
* Helper functions specific to a test package must live in a separate file that does **not** end in `_test.go`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe include some direction on where these functions should live, or give an example

Comment on lines +52 to +53
### Naming conventions
### Naming conventions

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is duplicated

* Automatic cleanup registration (via `session.Cleanup()`) is required.

### Helper functions
* Default to returning an `error` instead of accepting a `*testing.T` parameter.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can point out some exceptions here perhaps. Like when additional logging should be included as part of the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team/pit-crew slack notifier for pit crew

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants