Skip to content

test: remove TUS tests and related dependency tus-php - #41704

Merged
DeepDiver1975 merged 1 commit into
masterfrom
remove-tus-php
Jul 21, 2026
Merged

DeepDiver1975 merged 1 commit into
masterfrom
remove-tus-php

Conversation

@phil-davis

@phil-davis phil-davis commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

These acceptance tests were used by owncloud/ocis when the acceptance test infrastructure was common with owncloud/core. The tests are all skipped on owncloud/core, which does not support TUS.

Delete the TUS tests and test code.

Note: https://github.com/ankitpokhrel/tus-php has not had much maintenance recently, so it will be good to remove the test dependency. Also, guzzlehttp/guzzle major version 8 was just released, and tus-php would be a blocker for that (currently it depends on guzzlehttp/guzzle v7.

@phil-davis
phil-davis requested a review from a team as a code owner July 21, 2026 08:05
DeepDiver1975
DeepDiver1975 previously approved these changes Jul 21, 2026
These acceptance tests were used by owncloud/ocis when the acceptance
test infrastructure was common with owncloud/core. The tests are all
skipped on owncloud/core, which does not support TUS.

Delete the TUS tests and test code.

Signed-off-by: Phillip Davis <[email protected]>
@DeepDiver1975
DeepDiver1975 merged commit d1a68d7 into master Jul 21, 2026
29 checks passed
@DeepDiver1975
DeepDiver1975 deleted the remove-tus-php branch July 21, 2026 10:09
oc-tmueller added a commit that referenced this pull request Oct 5, 2026
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]>
oc-tmueller added a commit that referenced this pull request Oct 5, 2026
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]>
oc-tmueller added a commit that referenced this pull request Oct 5, 2026
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]>
oc-tmueller added a commit that referenced this pull request Oct 6, 2026
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]>
oc-tmueller added a commit that referenced this pull request Oct 6, 2026
…41888)

* ci: run the API smoke acceptance tests on S3 primary storage

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)

* fix: honour @skipOnStorage tags in the S3 acceptance run

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)

* ci: use case() for the S3 env values in acceptance.yml

Review feedback: the repo prefers case() over the && || idiom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit d8161c1)

* ci: run the S3 job against the files_primary_s3 version 10.16 ships

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

* ci: match the 10.16 smoke job's inputs in the S3 smoke job

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

* ci: let the Scality server answer to the scality host name

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

* ci: run the S3 job against files_primary_s3 v1.6.5

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

---------

Co-authored-by: Thomas Müller <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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