Add GHA workflow for nightly e2e tests#6209
Conversation
Also adds a new e2e test that verifies that s3 file storage works with BOM uploads. Signed-off-by: nscuro <nscuro@protonmail.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 4 |
| Duplication | 1 |
🟢 Coverage ∅ diff coverage · +0.00% coverage variation
Metric Results Coverage variation ✅ +0.00% coverage variation (-1.00%) Diff coverage ✅ ∅ diff coverage (70.00%) Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (659d391) 41636 35834 86.06% Head commit (aae5daa) 41636 (+0) 35834 (+0) 86.06% (+0.00%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#6209) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
There was a problem hiding this comment.
Pull request overview
Adds a scheduled GitHub Actions workflow to run the repository’s end-to-end (E2E) test suite nightly, and introduces a new E2E test case covering BOM upload processing when S3-backed file storage is configured.
Changes:
- Add a nightly + manually triggered GitHub Actions workflow that runs
make test-e2e. - Add an E2E test that runs the API server against an S3 mock and performs a BOM upload + processing flow.
- Add test-scoped dependencies in the
e2emodule for MinIO + S3Mock Testcontainers, and adjust the E2E harness’ default API server image tag fallback.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/ci-test-e2e.yaml |
New scheduled workflow to execute make test-e2e nightly and on demand. |
e2e/src/test/java/org/dependencytrack/e2e/BomUploadS3FileStorageE2ET.java |
New E2E test verifying BOM upload/processing with S3 file storage configured (via S3Mock + MinIO). |
e2e/src/test/java/org/dependencytrack/e2e/AbstractE2ET.java |
Changes default API server image tag fallback used by all E2E tests. |
e2e/pom.xml |
Adds test dependencies required for S3Mock/MinIO-based E2E test. |
| protected static DockerImageName API_SERVER_IMAGE = DockerImageName.parse("ghcr.io/dependencytrack/apiserver") | ||
| .withTag(Optional.ofNullable(System.getenv("APISERVER_VERSION")).orElse("local")); | ||
| .withTag(Optional.ofNullable(System.getenv("APISERVER_VERSION")).orElse("5-snapshot")); |
Description
Adds GHA workflow for nightly e2e tests.
Also adds a new e2e test that verifies that s3 file storage works with BOM uploads.
Addressed Issue
N/A
Additional Details
N/A
Checklist
This PR fixes a defect, and I have provided tests to verify that the fix is effectiveThis PR implements an enhancement, and I have provided tests to verify that it works as intendedThis PR introduces changes to the database model, and I have updated the migration changelog accordinglyThis PR introduces new or alters existing behavior, and I have updated the documentation accordinglyThis PR is a substantial change (per the ADR criteria), and I have added an ADR underdocs/adr/