Repository navigation
[Fix][E2E] Use an atmoz/sftp tag that still exists in SftpFileIT - #13203
Conversation
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.
DanielLeens
left a comment
There was a problem hiding this comment.
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, digestsha256:c5fb9e4b...6372, amd64),debian(2026-11-04) andlatest(2024-07-14). There is no versioned Alpine tag left, soalpineis the closest available successor ofalpine-3.7. - No other usages. A repo-wide search on
devfindsatmoz/alpine-3.7only atSftpFileIT.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 commandseatunnel:pass:::tmp, port 22,Wait.forListeningPort(), and the laterexecInContainer("sh", "-c", "chown -R seatunnel /home/seatunnel/tmp/")/mkdir -p/chmodcalls (:229-263,:796-810) only needsh, 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 showsImage atmoz/sftp:alpine pull took PT2.7S, andSftpFileITreportsTests run: 42, Failures: 0, Errors: 0, Skipped: 0on bothconnector-file-sftp-it (11, ubuntu-latest)and(17, ubuntu-latest). That includes the newertestConcurrentDirectoryCreationAndWritescase, so the newer OpenSSH in the rebuilt image is compatible with the JSch-basedSFTPFileSystemclient 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:
alpineis 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, orMaxStartups), 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 thealpinebuild from 2026-11. The trade-off is that a digest can also disappear if the upstream repo prunes untagged images, so keepingalpineis 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
SftpFileITpasses 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-sideBuildcheck passes, and the fork run includes a greenconnector-file-sftp-iton JDK 11 and 17. The branch is 6 commits behinddev, 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.
|
@DanielLeens Thanks for the review. I kept the |
zhangshenghang
left a comment
There was a problem hiding this comment.
Thank you for your contribution. We should put it in the image repository under seatunnel later, so there won't be a 404 error.
…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.
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.
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>
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>
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>
Reuse the single-line test fixture update merged in apache#13203.
Yes, glad to contribute to Apache SeaTunnel.
Purpose of this pull request
Closes #13202.
SftpFileITusedatmoz/sftp:alpine-3.7, which was removed from Docker Hub, so the test class failed instartUpwithmanifest unknown. This PR usesatmoz/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?
SftpFileITlocally on Zeta: 12 tests, 0 failures. The container started fromatmoz/sftp:alpineand accepted the existingseatunnel:pass:::tmpcommand; every job endedFINISHED.connector-file-sftp-iton JDK 11 and 17.Check list
New License Guide (no new jar)
incompatible-changes.mdto describe the incompatibility caused by this PR (not needed)