Validation Pipeline
A validation pipeline lets Azent verify its own changes before opening a pull request. If the pipeline fails, the agent reads the logs, fixes the issues, and retries — producing higher quality code with fewer review cycles.
How it works
- The agent implements the requested changes and pushes a commit
- If
ValidationPipelineIdis set in.azent.json, the agent triggers that Azure Pipeline on the current branch - The agent waits for the pipeline to complete
- If the pipeline succeeds, the agent proceeds to open or update the pull request
- If the pipeline fails, the agent reads the build logs, diagnoses the issue, applies a fix, pushes again, and re-runs the pipeline
- This loop continues until the pipeline passes or the agent determines it cannot resolve the issue
Setup
- Create an Azure Pipeline in your project that runs your build/test/lint steps (e.g.
dotnet build,npm test,eslint) - Note the pipeline's numeric ID (visible in the URL when you open the pipeline in Azure DevOps)
- Add it to your repository's
.azent.json:
{
"ValidationPipelineId": 42
}
Recommendations
- •Keep the validation pipeline fast (under 5 minutes). Long pipelines increase agent runtime and cost.
- •Include the checks that matter most: compilation, unit tests, and linting are good defaults
- •Ensure the pipeline YAML triggers on all branches so it can run on agent-created branches
- •Make sure the bot user has Build (Read & Execute) PAT scope