Skip to content

chore(ci): run acceptance tests in GitHub workflows - #1242

Merged
DeepDiver1975 merged 1 commit into
masterfrom
acceptance-workflow-1
Apr 22, 2026
Merged

DeepDiver1975 merged 1 commit into
masterfrom
acceptance-workflow-1

Conversation

@phil-davis

Copy link
Copy Markdown
Contributor

Fix an issue with some calls to the parameter format method where it was sometimes called with an array of texts. The BaseFormatter code is enhanced handle process an array of text strings to sanitize.

Enhance the acceptance test ActivityContext sendActivityGetRequest method so that it handles the case when there are no activity entries. Changes to json_decode in PHP8 meant that the previous failed.

Provide a new WebUI test step that checks for an expected message text anywhere within the activity list. Use it in one of the acceptance test scenarios. The test was intermittent because the combination of quick addition and then deletion of files resulted in sometimes different order of rendering of activity entries that all happened in the same second.

Skip the test for adding a public link share to another federated ownCloud (issue 800). The test can be reenabled and redesigned if the issue is addressed in future.

Fix an issue with some calls to the parameter format method
where it was sometimes called with an array of texts.
The BaseFormatter code is enhanced handle process an array of text
strings to sanitize.

Enhance the acceptance test ActivityContext sendActivityGetRequest
method so that it handles the case when there are no activity entries.
Changes to `json_decode` in PHP8 meant that the previous failed.

Provide a new WebUI test step that checks for an expected message
text anywhere within the activity list. Use it in one of the
acceptance test scenarios. The test was intermittent because the
combination of quick addition and then deletion of files resulted
in sometimes different order of rendering of activity entries that
all happened in the same second.

Skip the test for adding a public link share to another federated
ownCloud (issue 800). The test can be reenabled and redesigned if
the issue is addressed in future.
@phil-davis

phil-davis commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Note: see #1237 (comment)

The format/sanitizeHTML fixes messages in the log like:

{"reqId":"0zVqhYrdijE2aSrEiTiq","level":3,"time":"2026-04-20T10:10:42+00:00","remoteAddr":"::1","user":"Brian","app":"PHP","method":"GET","url":"\/server\/apps\/activity\/api\/v2\/activity\/all?format=json&previews=true&since=0","message":"Array to string conversion at \/var\/www\/html\/server\/apps\/activity\/lib\/Formatter\/BaseFormatter.php#34"}

In PHP8 the level of these messages changed from notice to warning.

@DeepDiver1975
DeepDiver1975 merged commit 9cbde50 into master Apr 22, 2026
18 checks passed
@DeepDiver1975
DeepDiver1975 deleted the acceptance-workflow-1 branch April 22, 2026 14:26
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