Skip to content

ci: run the API smoke acceptance tests on S3 primary storage [10.16] - #41888

Merged
oc-tmueller merged 7 commits into
10.16from
ci/acceptance-api-smoke-s3-10.16
Oct 6, 2026
Merged

oc-tmueller merged 7 commits into
10.16from
ci/acceptance-api-smoke-s3-10.16

Conversation

@oc-tmueller

@oc-tmueller oc-tmueller commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Backports #41882 to 10.16: the API smoke tests run against S3 primary storage (files_primary_s3 + Scality), and the result is gated in "API Acceptance Tests". Part of #41881.

The acceptance workflow this builds on came to 10.16 in #41887, after #41890.

Cherry-picked from #41882

9b2292c, abe333a and d8161c1. These include the S3_TYPE → ~@skipOnStorage:${S3_TYPE} handling in run.sh, and the env values written with case().

Changes needed for 10.16

  • files_primary_s3 is pinned to v1.6.5, the latest release for the 10.16 line. The app's default branch requires oC 11 and PHP 8.3. v1.6.4, the version in the 10.16.5 bundle, fails every S3 download on PHP 7.4 with 503 … Stream is not seekable (Downloads from S3 primary storage fail: HeadObject on the streaming client throws "Stream is not seekable" files_primary_s3#738). This job reproduced that, and v1.6.5 fixes it.
  • A 127.0.0.1 scality hosts entry is added, and the server runs with HOST_NAME=scality. The 1.6.x tests/drone/scality.config.php targets http://scality:8000/ (drone's service name), while master's version targets localhost.
  • The S3 job's needs and inputs match 10.16's acceptance-api-smoke job. That means no calens, notifications pinned to v0.6.0, and apiWebdavUploadTUS kept, since 10.16 still has the TUS tests.

🤖 Generated with Claude Code

@oc-tmueller
oc-tmueller force-pushed the ci/acceptance-api-smoke-s3-10.16 branch 2 times, most recently from ccb08ef to 7fb409e Compare October 5, 2026 15:20
@oc-tmueller
oc-tmueller force-pushed the ci/acceptance-api-smoke-s3-10.16 branch from 31ed0c7 to de37d15 Compare October 5, 2026 19:32
Base automatically changed from ci/acceptance-10.16 to 10.16 October 6, 2026 07:19
oc-tmueller and others added 6 commits October 6, 2026 09:58
Nothing ran the acceptance suite against S3 primary storage. The Drone
pipelines could, but every S3 switch was off and the capability was not
carried over to GitHub Actions, so a files_primary_s3 release that broke
every download went unnoticed upstream.

acceptance.yml gains a use-scality-s3 input that follows the Drone recipe:
check out files_primary_s3 and `make vendor` it (it has no `ci` target),
start a Scality server, and after installing the server enable the app,
copy its scality.config.php into config/ and create the bucket. The test
run gets OC_TEST_ON_OBJECTSTORE=1 so run.sh skips @skip_on_objectstore.

ci.yml runs the existing smoke suite with it on every PR and gates it in
"API Acceptance Tests".

Closes #41881

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 9b2292c)
The first S3 smoke run failed on apiVersions/fileVersions.feature:89, which
is tagged @skipOnStorage:scality @files_primary_s3-issue-278: a known
objectstore bug that the scenario is meant to be skipped for. Drone set
S3_TYPE alongside OC_TEST_ON_OBJECTSTORE, but nothing in core ever read
it, so every @skipOnStorage:<type> tag was dead.

run.sh now excludes @skipOnStorage:${S3_TYPE} when S3_TYPE is set, and
acceptance.yml sets S3_TYPE=scality with use-scality-s3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit abe333a)
Review feedback: the repo prefers case() over the && || idiom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit d8161c1)
The app's default branch requires ownCloud 11 and PHP 8.3, so check out
v1.6.4, the version in the 10.16.5 bundle. That tag's
tests/drone/scality.config.php targets http://scality:8000/, so point
the scality hostname at the host-network container.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The S3 job came over from master with master's inputs. On 10.16 that
breaks it three ways: it needs the calens job, which 10.16 does not
have, so GitHub rejects the whole CI workflow; it checks out the
notifications default branch, which requires ownCloud 11; and it drops
apiWebdavUploadTUS, which master deleted in #41704 but 10.16 still
ships. Use exactly the 10.16 API smoke job's needs and inputs, plus
use-scality-s3, the same way the job mirrors the smoke job on master.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
files_primary_s3 v1.6.4's scality.config.php targets http://scality:8000/,
but Scality rejects any Host it does not list in its restEndpoints, so
s3:create-bucket failed with InvalidURI in every S3 job. Set HOST_NAME,
as drone's scality service did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@oc-tmueller
oc-tmueller force-pushed the ci/acceptance-api-smoke-s3-10.16 branch from de37d15 to d92a57c Compare October 6, 2026 07:58
v1.6.4 fails every S3 download with 503 "Stream is not seekable"
(owncloud/files_primary_s3#738). v1.6.5 fixes it and is the latest
release for the 10.16 line. Its Makefile and
tests/drone/scality.config.php are unchanged from v1.6.4.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@oc-tmueller
oc-tmueller marked this pull request as ready for review October 6, 2026 09:43
@oc-tmueller
oc-tmueller requested a review from phil-davis October 6, 2026 10:09
@oc-tmueller
oc-tmueller merged commit ec45586 into 10.16 Oct 6, 2026
@oc-tmueller
oc-tmueller deleted the ci/acceptance-api-smoke-s3-10.16 branch October 6, 2026 10:13
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.

2 participants