Skip to content

[Fix][E2E] Use an atmoz/sftp tag that still exists in SftpFileIT - #13203

Merged
zhangshenghang merged 1 commit into
apache:devfrom
SEPURI-SAI-KRISHNA:fix-sftp-e2e-image
Nov 10, 2026
Merged

zhangshenghang merged 1 commit into
apache:devfrom
SEPURI-SAI-KRISHNA:fix-sftp-e2e-image

Conversation

@SEPURI-SAI-KRISHNA

Copy link
Copy Markdown
Collaborator

Yes, glad to contribute to Apache SeaTunnel.

Purpose of this pull request

Closes #13202.

SftpFileIT used atmoz/sftp:alpine-3.7, which was removed from Docker Hub, so the test class failed in startUp with manifest unknown. This PR uses atmoz/sftp:alpine, which the image's maintainer still publishes (rebuilt 2026-11-06). The container is started the same way: the user and directory come from the command (seatunnel:pass:::tmp), port 22, files under /home/seatunnel/tmp.

Does this PR introduce any user-facing change?

No. Test only.

How was this patch tested?

Check list

The atmoz/sftp:alpine-3.7 tag was removed from Docker Hub, so SftpFileIT
fails before any test runs (manifest unknown). Use atmoz/sftp:alpine,
which the image's maintainer still publishes.
@github-actions github-actions Bot added the e2e label Nov 9, 2026

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks a lot for jumping on this so quickly, @SEPURI-SAI-KRISHNA. This removes a failure that every PR touching the file/sftp path was hitting, and the change is exactly as small as it should be.

What Problem Does This PR Solve?

atmoz/sftp:alpine-3.7 is gone from Docker Hub (GET /v2/repositories/atmoz/sftp/tags/alpine-3.7 now returns 404 tag 'alpine-3.7' not found), so SftpFileIT.startUp() fails at image pull with manifest unknown and the whole connector-file-sftp-it job goes red regardless of the PR content (#13202). The PR switches the constant to atmoz/sftp:alpine.

1 Code Change Review

1.1 Core logic

seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-sftp-e2e/src/test/java/org/apache/seatunnel/e2e/connector/file/fstp/SftpFileIT.java:70

-    private static final String SFTP_IMAGE = "atmoz/sftp:alpine-3.7";
+    private static final String SFTP_IMAGE = "atmoz/sftp:alpine";

I checked the things that could make a tag swap silently wrong:

  • The new tag exists. Docker Hub currently publishes only three tags for atmoz/sftp: alpine (last updated 2026-11-06, digest sha256:c5fb9e4b...6372, amd64), debian (2026-11-04) and latest (2024-07-14). There is no versioned Alpine tag left, so alpine is the closest available successor of alpine-3.7.
  • No other usages. A repo-wide search on dev finds atmoz / alpine-3.7 only at SftpFileIT.java:70; no other e2e module, docker-compose file, workflow or doc references the old tag.
  • Container contract is unchanged. startUp() (SftpFileIT.java:154-163) still relies on the image's standard entrypoint: user created from the command seatunnel:pass:::tmp, port 22, Wait.forListeningPort(), and the later execInContainer("sh", "-c", "chown -R seatunnel /home/seatunnel/tmp/") / mkdir -p / chmod calls (:229-263, :796-810) only need sh, which the Alpine variant provides. The host key is generated at container start in both variants, and the client side does not pin a host key, so nothing depends on the old image's key.
  • Real evidence on the head. In the fork run for fbef81d (https://github.com/SEPURI-SAI-KRISHNA/seatunnel/actions/runs/42617830822) the log shows Image atmoz/sftp:alpine pull took PT2.7S, and SftpFileIT reports Tests run: 42, Failures: 0, Errors: 0, Skipped: 0 on both connector-file-sftp-it (11, ubuntu-latest) and (17, ubuntu-latest). That includes the newer testConcurrentDirectoryCreationAndWrites case, so the newer OpenSSH in the rebuilt image is compatible with the JSch-based SFTPFileSystem client today.

1.2 Compatibility

Test-only change. No connector code, config option, default value, API or serialization format is touched.

1.3 Side effects

None outside connector-file-sftp-e2e. The image is about 6 MB and pulls in a couple of seconds.

1.4 Error handling / logging

Unchanged.

Issue 1 (non-blocking): the new reference is a floating tag

  • Location: SftpFileIT.java:70
  • Problem: alpine is rebuilt by the maintainer (it was refreshed on 2026-11-06). A future rebuild can bump OpenSSH and change defaults (for example, disabled key or MAC algorithms, or MaxStartups), and CI would start failing again for unrelated PRs, just as it did here.
  • Risk: Low. There is no versioned tag left to pin to, and the current build passes all 42 cases.
  • Best improvement (optional): pin by digest, e.g. atmoz/sftp@sha256:c5fb9e4beb8b7054a4c0b65c5e11df47cc20da95ad6002e88aecff62bab06372, with a short comment that it is the alpine build from 2026-11. The trade-off is that a digest can also disappear if the upstream repo prunes untagged images, so keeping alpine is a reasonable choice too. A one-line comment noting why the tag changed would help whoever touches this next.
  • Severity: Low / suggestion
  • Raised by another reviewer: No

2 Quality

2.1 Standards

The change follows the existing style. Spotless is unaffected.

2.2 Tests and stability

  • SftpFileIT passes all 42 cases on JDK 11 and JDK 17 on the PR head. Stability: Stable for the current image build. The remaining long-term risk is upstream image churn (Issue 1).

2.3 Docs

No user-facing change, so no docs update is needed.

3 Architecture

This is the right place to fix it. The image is defined once, as a test constant, and there is no shared image registry it should go through.

4 Issue table

# Location Issue Severity Blocking
1 SftpFileIT.java:70 Floating alpine tag. Optionally pin by digest or add a comment Low No

5 Merge recommendation

Ready to merge

  • Blockers: none.
  • Non-blocking: Issue 1 (optional digest pin or comment).
  • CI: green on head fbef81d. The apache-side Build check passes, and the fork run includes a green connector-file-sftp-it on JDK 11 and 17. The branch is 6 commits behind dev, none of which touch this module. GitHub currently shows the merge state as blocked only because a review is required.

Thanks again. This unblocks a lot of other PRs.

@SEPURI-SAI-KRISHNA

Copy link
Copy Markdown
Collaborator Author

@DanielLeens Thanks for the review. I kept the alpine tag. It is one of the tags the image README lists as supported, and, as you say, a digest can be pruned upstream, which would bring back the same 404.

@zhangshenghang zhangshenghang 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.

Thank you for your contribution. We should put it in the image repository under seatunnel later, so there won't be a 404 error.

@zhangshenghang
zhangshenghang added this pull request to the merge queue Nov 10, 2026
Merged via the queue into apache:dev with commit 3792921 Nov 10, 2026
3 checks passed
zhangshenghang pushed a commit to zhangshenghang/seatunnel that referenced this pull request Nov 10, 2026
…ileIT

atmoz/sftp removed its versioned tags and only keeps floating ones now
(see apache#13202, fixed by apache#13203). Mirror atmoz/sftp:alpine to
seatunnelhub/sftp:alpine, a byte-for-byte registry copy with the same
manifest digest
sha256:c5fb9e4beb8b7054a4c0b65c5e11df47cc20da95ad6002e88aecff62bab06372,
so the test no longer depends on upstream tag retention. Follow-up to
apache#13203.
sharpca added a commit to sharpca/seatunnel that referenced this pull request Nov 10, 2026
Pick up apache#13203, which switches the SFTP E2E image to atmoz/sftp:alpine after
the alpine-3.7 tag was removed from Docker Hub. This clears the two
connector-file-sftp-it failures on this head.
cursor Bot pushed a commit to 88fantasy/seatunnel that referenced this pull request Nov 11, 2026
Bring in the latest apache/seatunnel dev, including the SftpFileIT
image tag fix from apache#13203.
Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
cursor Bot pushed a commit to 88fantasy/seatunnel that referenced this pull request Nov 11, 2026
Keep the Zeta OpenLineage deployment notes and the upstream dev
checkpoint-monitor storage wording. The core merge already includes
the SftpFileIT image tag fix from apache#13203.
Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
cursor Bot pushed a commit to 88fantasy/seatunnel that referenced this pull request Nov 11, 2026
Bring in the updated core head, which already includes the latest
apache/seatunnel dev and the SftpFileIT image tag fix from apache#13203.
Co-authored-by: 88fantasy <88fantasy@users.noreply.github.com>
DanielLeens added a commit to DanielLeens/seatunnel that referenced this pull request Nov 16, 2026
Reuse the single-line test fixture update merged in apache#13203.
fatmanverse pushed a commit to fatmanverse/seatunnel that referenced this pull request Nov 17, 2026
fatmanverse pushed a commit to fatmanverse/seatunnel that referenced this pull request Nov 17, 2026
fatmanverse pushed a commit to fatmanverse/seatunnel that referenced this pull request Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][E2E] SftpFileIT fails: the atmoz/sftp:alpine-3.7 image was removed from Docker Hub

3 participants