Repository navigation
fix(QTDI-3757): skip API tests on non-master branches in TCOMP-api-test pipeline - #1317
Conversation
…st pipeline Add RUN_API_TESTS parameter (default false); API tests run on master or when forced. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Critic Round 1 — Scope & design review (QTDI-3757)Files: Jenkinsfile (modified), README.md (modified). Braces/parens balanced; non-whitespace diff of the post block = only indentation +
Not verifiable locally: declarative linter / actual Jenkins run. Master builds still run API tests and may fail on /license until a follow-up fixes them (out of scope). Approval gate: APPROVED — no Blocker or Major findings. Signed: Claude Sonnet 5.5 |
Code Review / Compliance — QTDI-3757Reviewed 2 files: Critical fixed: 0, Warnings: 0, Info: 1 (Prepare-server stage also guarded, beyond plan wording; justified). Signed: Claude Sonnet 5.5 |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
Approval is blocked by an uncovered Jenkinsfile logic change and inaccurate documentation about when the API tests run.
2 open issues
What changed in this PR
This pull request updates the TCOMP-api-test Jenkins pipeline to skip API tests on non-master branches by default, while preserving execution on master and allowing explicit opt-in through RUN_API_TESTS.
Changes:
- Adds branch- and parameter-based API-test execution gating.
- Conditionally skips server setup, test execution, cleanup, and report publishing.
- Documents the pipeline behavior and records the related CI context.
| File | Summary | Review findings |
|---|---|---|
talend-component-maven-plugin/src/it/web/README.md |
Documents behavior for master and non-master branches. | Nit: Clarify wording that currently suggests API tests can no longer be launched from CI; they still run on master or when explicitly enabled. |
talend-component-maven-plugin/src/it/web/.jenkins/Jenkinsfile |
Adds RUN_API_TESTS and conditional API-test execution and post-processing. |
Moderate: The added executable logic is not covered by a unit test in the default build, contrary to the PR requirements. Add the required test or obtain an explicit exception. |
repository-knowledge.md |
Records the TCOMP-api-test Jenkins pipeline behavior and context. |
No findings. |
Review effort: Lite
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
* fix(QTDI-3604): Skip invoker ITs during release build (#1295) release:prepare runs verify at the release version without installing the modules, so the uispec invoker IT cannot resolve component-runtime-beam:<release> and fails the release job. -DskipITs is not honored by maven-invoker-plugin, so pass -Dinvoker.skip=true to release:prepare and release:perform. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit 26ea6ea) * fix(QTDI-3604): Skip invoker ITs in release step scripts (#1296) The previous fix only patched release_legacy.sh, which the release job no longer runs. The job calls .jenkins/scripts/release/release-2-prepare.sh and release-3-perform.sh, so the uispec invoker IT still ran during release:prepare and failed to resolve component-runtime-beam:<release>. Pass -Dinvoker.skip=true to release:prepare and release:perform there. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit 175823d) * fix(QTDI-3757): skip API tests on non-master branches in TCOMP-api-test pipeline (#1317) * fix(QTDI-3757): skip API tests on non-master branches in TCOMP-api-test pipeline Add RUN_API_TESTS parameter (default false); API tests run on master or when forced. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * doc(QTDI-3757): Record TCOMP-api-test pipeline knowledge Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(QTDI-3757): clarify README wording on API tests in CI Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> (cherry picked from commit fb46e06) * chore(QTDI-3805): exclude antora 1.2610.1 (#1325) * to unblock CI build (cherry picked from commit c80b2ce) * chore(QTDI-3640): publish Nexus artifacts to GitHub Packages (#1300) * chore(QTDI-3640): publish Nexus artifacts to GitHub Packages Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * chore(QTDI-3640): publish dev-branch qualified snapshots to GitHub Packages only on request Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> (cherry picked from commit 90cf8af) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Oleksandr Zhelezniak <66320870+ozhelezniak-talend@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…COMP-api-test #1317) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>



0 New Issues
0 Fixed Issues
0 Accepted Issues
No data about coverage (62.30% Estimated after merge)
Requirements
Why this PR is needed?
The
QA/TCOMP-api-test/pr-headcheck (Jenkins jobTCOMP-api-test) fails on every PR (e.g. #1316) and blocks merge: the API Tester/licenseendpoint no longer trusts the caller blindly (QAPI-3138), so theExecute Teststage fails. Jira: QTDI-3757.What does this PR adds (design/code thoughts)?
talend-component-maven-plugin/src/it/web/.jenkins/Jenkinsfile: new boolean parameterRUN_API_TESTS(defaultfalse). The server prepare/start/check,Execute Teststage and the relatedpoststeps only run whenparams.RUN_API_TESTS || BRANCH_NAME == 'master'; PRs and other branches end SUCCESS with a log message.talend-component-maven-plugin/src/it/web/README.md: documents the behaviour./licensebehaviour is a follow-up; master builds still run the API tests and may fail until then.TCOMP-api-teston this PR / chore(QTDI-3758): use mirror #1316 to confirm the check goes green. No Java change. Unit test exception requested: the change is Jenkins pipeline Groovy only, which the default Maven build does not execute and cannot reasonably unit test; it is verified by re-triggeringTCOMP-api-test.AI contribution metrics
100%(153/153 changed lines)100%~75%(estimate, 1 revision)AI generated code
https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code
🤖 Generated with Claude Code