Checklist: Onboarding End-to-End Automation Frameworks to Harness CI
Successfully onboarding an automated test suite to Harness CI requires configuring infrastructure placeholders, secrets, pipelines, and branch protection rules. Here is a 10-step checklist to help you onboard your end-to-end (E2E) automation pipelines seamlessly.
Step 1: Replace Infrastructure Placeholders
Ensure your pipeline YAML definitions (e.g., .harness/e2e-poc.yaml and .harness/e2e-regression-parallel.yaml) contain your specific environment values:
ORG_ID: Harness Organization IdentifierPROJECT_ID: Harness Project IdentifierGIT_CONNECTOR: Harness Git Connector for GitHub Enterprise accessAPP_REPO_NAME: Target repository inowner/repoformatK8S_CONNECTOR: Kubernetes connector for build infrastructureK8S_NAMESPACE: Kubernetes namespace where build pods run
Step 2: Configure Environment Secrets
In Harness, set up the following runtime secrets:
CONNECT_URLCONNECT_USERNAMECONNECT_PASSWORD
Step 3: Setup PR Validation Pipeline
Import your short-run pipeline YAML into Harness. Save it as your PR Validation Pipeline.
Run a manual validation test using runtime overrides:
TargetEnv = qacucumberTags = @smoke
Step 4: Verify Artifact Generation
Confirm that the initial execution correctly generates and uploads all required outputs:
- JUnit Report:
reports/junit-report.xml - Test Reports:
reports/** - Failure Artifacts:
test-results/**(screenshots, traces)
Step 5: Setup Nightly Parallel Pipeline
Import your parallel pipeline YAML into Harness. Save it as your Nightly Regression Pipeline.
Run a manual validation test with target concurrency parameters:
TargetEnv = qacucumberTags = @regressioncucumberParallel = 4
Step 6: Configure Automated Triggers & Branch Protection
- PR Trigger: Configured on pull requests with
cucumberTags=@smoke. - Nightly Schedule Trigger: Configured on a nightly cron schedule with
cucumberTags=@regressionandcucumberParallel=4. - GitHub Branch Protection: Enable branch protection on target branches requiring the Harness PR pipeline status check to pass before merging.
Once both the PR and Nightly execution runs pass with green status checks, your pipeline onboarding is complete!
Comments
No comments yet. Start the discussion.