Repository navigation
ci: run the API smoke acceptance tests on S3 primary storage - #41882
Merged
Merged
Conversation
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
reviewed
Oct 5, 2026
phil-davis
left a comment
Contributor
There was a problem hiding this comment.
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.
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
self-requested a review
October 5, 2026 12:25
oc-tmueller
marked this pull request as ready for review
October 5, 2026 14:13
This was referenced Oct 5, 2026
phil-davis
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #41881.
No acceptance suite ran against S3 primary storage on any branch.
.drone.starcould 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.ymlgains ause-scality-s3input. It follows the old DronesetupScalityrecipe:owncloud/files_primary_s3and runmake vendor. Theadditional-apppath can't be reused because it runsmake ci, and this app has nocitarget.owncloudci/scality-s3serveron the host network and wait for port 8000. This is the same patternowncloud/reusable-workflowsphp-unit uses.tests/drone/scality.config.phpintoconfig/, and runocc s3:create-bucket owncloud.OC_TEST_ON_OBJECTSTORE=1, sotests/acceptance/run.shskips@skip_on_objectstorescenarios.ci.ymladdsAPI Smoke Tests on S3. It uses the same inputs asAPI Smoke Testsplususe-scality-s3: true. It runs on every PR, including full-ci ones, because there is no full S3 variant. It is gated inAPI Acceptance Tests.A small correction to the issue:
tests/drone/install-server.shis not used byacceptance.yml, which does its own install, so it is not touched here.run.shnow honoursS3_TYPE, adding~@skipOnStorage:${S3_TYPE}. Drone setS3_TYPEalongsideOC_TEST_ON_OBJECTSTORE, but nothing in core ever read it, so every@skipOnStorage:scality/@skipOnStorage:cephtag had no effect. The first run here failed onapiVersions/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_s3master 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-php3.395.5), on oC 11 with PHP 8.3, even though master'sLazyReadStream/S3Storagedownload 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?
acceptance-api-smokeapart fromuse-scality-s3.if: inputs.use-scality-s3, so the existing jobs are unchanged.~@skip_on_objectstoreis applied.Types of changes
🤖 Generated with Claude Code