Skip to content

ci: run the API smoke acceptance tests on S3 primary storage - #41882

Merged
phil-davis merged 3 commits into
masterfrom
ci/acceptance-api-smoke-s3
Oct 6, 2026
Merged

phil-davis merged 3 commits into
masterfrom
ci/acceptance-api-smoke-s3

Conversation

@oc-tmueller

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

Copy link
Copy Markdown
Contributor

Description

Closes #41881.

No acceptance suite ran against S3 primary storage on any branch. .drone.star could do it, but every S3 switch was off, and the capability was not carried over to GitHub Actions. That is how files_primary_s3 v1.6.3/v1.6.4, which broke every download (owncloud/files_primary_s3#738), shipped without any upstream pipeline noticing.

acceptance.yml gains a use-scality-s3 input. It follows the old Drone setupScality recipe:

  • Check out owncloud/files_primary_s3 and run make vendor. The additional-app path can't be reused because it runs make ci, and this app has no ci target.
  • Start owncloudci/scality-s3server on the host network and wait for port 8000. This is the same pattern owncloud/reusable-workflows php-unit uses.
  • After the server is installed, enable the app, copy its tests/drone/scality.config.php into config/, and run occ s3:create-bucket owncloud.
  • Run the tests with OC_TEST_ON_OBJECTSTORE=1, so tests/acceptance/run.sh skips @skip_on_objectstore scenarios.

ci.yml adds API Smoke Tests on S3. It uses the same inputs as API Smoke Tests plus use-scality-s3: true. It runs on every PR, including full-ci ones, because there is no full S3 variant. It is gated in API Acceptance Tests.

A small correction to the issue: tests/drone/install-server.sh is not used by acceptance.yml, which does its own install, so it is not touched here.

run.sh now honours S3_TYPE, adding ~@skipOnStorage:${S3_TYPE}. Drone set S3_TYPE alongside OC_TEST_ON_OBJECTSTORE, but nothing in core ever read it, so every @skipOnStorage:scality / @skipOnStorage:ceph tag had no effect. The first run here failed on apiVersions/fileVersions.feature:89 (@skipOnStorage:scality @files_primary_s3-issue-278, restore returns a truncated file), which is exactly the scenario that tag exists to skip.

About owncloud/files_primary_s3#738

Before opening this PR I expected files_primary_s3 master to fail the "download header" checksum scenario, because #738 lists master / v1.7.2 as broken. It does not fail here. It passes on the same app commit (258ca3c) and SDK (aws/aws-sdk-php 3.395.5), on oC 11 with PHP 8.3, even though master's LazyReadStream / S3Storage download path is identical to 1.6.x. So #738's breakage does not reproduce on this stack. That means this job does not yet prove it would have caught #738, which was found on the oC10 / PHP 7.4 line. That line still has no acceptance CI at all.

How Has This Been Tested?

  • The workflow files parse.
  • The new job's inputs are identical to acceptance-api-smoke apart from use-scality-s3.
  • Every new step is guarded by if: inputs.use-scality-s3, so the existing jobs are unchanged.
  • The CI run on this PR is the end-to-end test. The first run confirmed that uploads really land in Scality, since an objectstore-only bug showed up, and that ~@skip_on_objectstore is applied.

Types of changes

  • CI / test infrastructure

🤖 Generated with Claude Code

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]>

@phil-davis phil-davis 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.

We usually try to use the case() function rather than the && || logical operators.
IMO it's easier for real humans to "guess" what the code does.

Comment thread .github/workflows/acceptance.yml Resolved
Comment thread .github/workflows/acceptance.yml Resolved
Comment thread .github/workflows/acceptance.yml Resolved
oc-tmueller and others added 2 commits October 5, 2026 14:09
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]>
Review feedback: the repo prefers case() over the && || idiom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@phil-davis
phil-davis merged commit 21a908b into master Oct 6, 2026
@phil-davis
phil-davis deleted the ci/acceptance-api-smoke-s3 branch October 6, 2026 07:06
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.

Acceptance tests never run against S3 primary storage on any branch

2 participants