Skip to content

ci: remove Docker-based e2e test run - #2208

Merged
TerryHowe merged 2 commits into
oras-project:mainfrom
Ashutosh-Panda2004:chore/2188-remove-docker-e2e
Oct 3, 2026
Merged

TerryHowe merged 2 commits into
oras-project:mainfrom
Ashutosh-Panda2004:chore/2188-remove-docker-e2e

Conversation

@Ashutosh-Panda2004

Copy link
Copy Markdown
Contributor

Fixes #2188.

The KinD e2e job from #1913 runs the same Ginkgo suite, so the Docker-on-the-runner path was redundant. This drops the Run E2E Tests step from build.yml, removes the teste2e and teste2e-covdata make targets, and deletes the now-unused e2e.sh, prepare.sh and common.sh scripts (verified nothing else sources or calls them).

On the open questions in the issue:

  • Coverage: the codecov upload auto-discovers coverage files, so unit test coverage keeps uploading fine. The report becomes unit-test-only unless the KinD job learns to extract GOCOVERDIR later.
  • Tag builds: neither build.yml nor e2e-k8s.yml triggers on tags today (both are push/PR on main and release-* only), so nothing is lost there.
  • Local dev: test/e2e/README.md already documents the KinD flow, and nothing referenced make teste2e anymore.

The KinD e2e job from oras-project#1913 runs the same Ginkgo suite, so the
Docker-on-the-runner path in build.yml is redundant. Drop the Run E2E
Tests step, the teste2e/teste2e-covdata make targets, and the now-unused
e2e.sh, prepare.sh and common.sh scripts.

Fixes oras-project#2188.

Signed-off-by: Ashutosh Panda <[email protected]>
@TerryHowe

Copy link
Copy Markdown
Member

@TerryHowe

Copy link
Copy Markdown
Member

Thanks for picking this up — the premise holds up. I checked the parts that matter: test/e2e/k8s/e2e-test-job.yaml runs the same ginkgo -r -p suite, the manifests faithfully reproduce prepare.sh (same ghcr.io/oras-project/registry:v1.0.0-rc.4, same test-basic htpasswd realm and path, same tarball extraction and passwd_bcrypt copy in the init container), nothing else sources the three deleted scripts, and the tag-build reasoning is right — GITHUB_REF_TYPE == tag was already dead code since build.yml only triggers on main/release-*.

One thing needs to ride along in this PR.

The coverage floor

.github/.codecov.yml enforces an absolute target, not auto:

coverage:
  status:
    project:
      default:
        target: 75%
        if_ci_failed: error

Removing the e2e run drops the project below that floor, so codecov/project will report a failure on every PR and push from the moment this merges. It will not block merges — main has no required status checks — but it leaves a permanently red check and makes the 75% number a claim the repo no longer enforces.

Measured on 715917d:

  • codecov reports 88.14% today; the build job logs Found 2 coverage files to report (coverage.txt and test/e2e/coverage.txt).
  • Unit tests alone give 61.1% statement coverage, or 60.7% excluding codecov's ignored internal/testutils (go test -coverprofile -covermode=atomic -coverpkg=./... ./...).

So the e2e suite contributes roughly 27 points. Worth noting the coverage was never a property of the Docker path itself: test/e2e/internal/utils/init.go keys off GOCOVERDIR in BeforeSuite and, when set, discards the prebuilt ORAS_PATH binary and rebuilds an instrumented one with -coverpkg oras.land/oras/cmd/oras/...,oras.land/oras/internal/.... The KinD job sets ORAS_PATH and never sets GOCOVERDIR, so it emits nothing.

Suggested change — GitHub will not let me attach this as an applicable suggestion, since .github/.codecov.yml is not in this PR's diff:

 coverage:
   status:
     project:
       default:
-        target: 75%
+        # Temporarily lowered: the Docker-based e2e run contributed ~27 points of
+        # coverage, and the KinD job does not collect any yet.
+        # Restore to 75% with #2213.
+        target: 55%
         if_ci_failed: error

55% rather than 60% because codecov counts branch-partial lines against you (288 partials in the current report) while go tool cover does not, so codecov's unit-only number will likely read a little below the 60.7% I measured. Worth seeing what it actually reports here and tightening if there is room.

codecov/patch is unaffected — this PR changes no Go lines.

Follow-ups filed so this is not lost: #2209 collects coverage from the KinD job, #2213 uploads it and restores the 75% target.

One small thing

test/e2e/k8s/e2e-test-job.yaml:49 says # Required by e2e tests (matching prepare.sh) and points at a file this PR deletes. That file is not otherwise touched here, so it is your call whether to fix it in this PR or leave it — repointing it at test/e2e/internal/utils/init.go would keep it accurate.

Also filed #2215 for two .gitignore entries that become dead once this merges. Note the coverage-related entries there (test/e2e/coverage.txt, **/covcounters.*, **/covmeta.*) should stay — #2209 brings those files back.

The Docker-based e2e run contributed roughly 27 points of the reported
coverage, and the KinD job does not collect any yet, so the 75% floor
would report a failure on every PR once this merges. Restore it to 75%
with oras-project#2213. Also repoint the ORAS_REGISTRY_HOST comment in the k8s e2e
job at test/e2e/internal/utils/init.go now that prepare.sh is gone.

Signed-off-by: Ashutosh Panda <[email protected]>
@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.21%. Comparing base (ccf3e26) to head (79e9188).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2208       +/-   ##
===========================================
- Coverage   88.14%   56.21%   -31.93%     
===========================================
  Files         139      139               
  Lines        6015     6021        +6     
===========================================
- Hits         5302     3385     -1917     
- Misses        425     2427     +2002     
+ Partials      288      209       -79     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@TerryHowe
TerryHowe merged commit 02c5c20 into oras-project:main Oct 3, 2026
10 checks passed
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.

chore: remove the Docker-based e2e test run now that KinD e2e has landed

2 participants