Skip to content

Add GHA workflow for nightly e2e tests#6209

Open
nscuro wants to merge 1 commit into
DependencyTrack:mainfrom
nscuro:e2e-workflow
Open

Add GHA workflow for nightly e2e tests#6209
nscuro wants to merge 1 commit into
DependencyTrack:mainfrom
nscuro:e2e-workflow

Conversation

@nscuro
Copy link
Copy Markdown
Member

@nscuro nscuro commented May 29, 2026

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

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have updated the migration changelog accordingly
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly
  • This PR is a substantial change (per the ADR criteria), and I have added an ADR under docs/adr/

Also adds a new e2e test that verifies that s3 file storage works with BOM uploads.

Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro added this to the 5.0 milestone May 29, 2026
Copilot AI review requested due to automatic review settings May 29, 2026 17:16
@owasp-dt-bot
Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 29, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 4 complexity · 1 duplication

Metric Results
Complexity 4
Duplication 1

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation +0.00% coverage variation (-1.00%)
Diff coverage diff coverage (70.00%)

View coverage diff in Codacy

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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 e2e module 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.

Comment on lines 48 to +49
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"));
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.

3 participants