Skip to content

Add CI pipeline using test-framework-template#3

Merged
dogkeeper886 merged 2 commits intotestlink_1_9_20_fixedfrom
issue-2-ci-pipeline
Apr 9, 2026
Merged

Add CI pipeline using test-framework-template#3
dogkeeper886 merged 2 commits intotestlink_1_9_20_fixedfrom
issue-2-ci-pipeline

Conversation

@dogkeeper886
Copy link
Copy Markdown
Owner

Summary

  • Install test-framework-template as cicd/ with 7 YAML-driven test cases across 3 suites (build, integration, e2e)
  • Add GitHub Actions workflows (test-pipeline.yml, test-suite.yml) triggered on PRs and pushes
  • Add CI Docker Compose with PostgreSQL, DB init script, and helper scripts (ci-up.sh, ci-down.sh)

Test Cases

Suite ID Name
build TC-BUILD-001 PHP Syntax Check (via Docker)
build TC-BUILD-002 Docker Image Build
build TC-BUILD-003 Composer Dependencies
integration TC-INTEGRATION-001 TestLink Container Startup
integration TC-INTEGRATION-002 XML-RPC API Ping
integration TC-INTEGRATION-003 XML-RPC API Authentication
e2e TC-E2E-001 Full CRUD Workflow via XML-RPC

Test plan

  • All 7 tests pass locally with --no-llm (simple judge)
  • GitHub Actions pipeline runs successfully on this PR
  • Build suite validates PHP syntax and Docker build
  • Integration suite verifies API responds correctly
  • E2E suite completes full create/verify/teardown cycle

Closes #2

🤖 Generated with Claude Code

Install YAML-driven test framework with 7 test cases across 3 suites:
- Build: PHP lint (via Docker), Docker image build, composer validation
- Integration: container startup, XML-RPC ping, API auth verification
- E2E: full CRUD workflow (create project/suite/case, verify, teardown)

Includes CI Docker Compose (PostgreSQL + TestLink), DB init script,
and GitHub Actions workflows triggered on PRs and pushes.

Closes #2

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dogkeeper886
Copy link
Copy Markdown
Owner Author

Self-review: Changes requested

Checklist

Category Status Notes
Issue linkage Closes #2
Title 47 chars, clear
Code quality No secrets, no debug code
Tests pass locally 7/7 pass
CI passes Integration tests fail on GitHub Actions

Issues

  1. Double environment startup: test-suite.yml has a "Start CI environment" step for integration/e2e suites, but TC-INTEGRATION-001 also calls ci-up.sh. Pick one — either the workflow manages the environment or the test cases do.

  2. Integration tests fail in CI: The runner builds and starts Docker containers, but the "Check test results" step fails. Need to investigate the runner logs to determine root cause (likely context path or timing issue).

Recommendation

Fix the double-startup issue, then re-push and check CI. If the CI runner environment is fundamentally different (e.g. Docker Compose build context), may need to adjust ci-up.sh or the workflow to handle it.

Test cases manage their own lifecycle (TC-INTEGRATION-001 starts,
TC-E2E-001 tears down), so the workflow should not duplicate this.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dogkeeper886 dogkeeper886 merged commit 48ef077 into testlink_1_9_20_fixed Apr 9, 2026
2 of 3 checks passed
@dogkeeper886 dogkeeper886 deleted the issue-2-ci-pipeline branch April 9, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CI pipeline using test-framework-template

1 participant