Skip to content

Add PHPUnit workflow, fix path handling bug, REUSE/php-cs compliance#722

Open
Copilot wants to merge 9 commits into
masterfrom
copilot/add-string-concat-method
Open

Add PHPUnit workflow, fix path handling bug, REUSE/php-cs compliance#722
Copilot wants to merge 9 commits into
masterfrom
copilot/add-string-concat-method

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 25, 2026

  • Add .github/workflows/phpunit.yml
  • Fix moveWithExclusions() explode path bug + add issue Copy error when trying to update 32.0.5 -> 32.0.6 #711 regression tests
  • Fix REUSE: add vendor-bin/phpunit/** annotation to REUSE.toml
  • Fix php-cs: reformat string concatenation in tests/unit/UpdaterTest.php to leading-dot style
  • Verify same-code-check still passes
  • Resolve merge conflicts with origin/master (kept opcache_invalidate fix from master + buildPath() from our branch)
  • Drop testRelativePathExtractionForIssue711() — pure logic test that doesn't instantiate the Updater class

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI and others added 2 commits March 25, 2026 06:36
… createBackup()

Co-authored-by: skjnldsv <14975046+skjnldsv@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nextcloud/updater/sessions/5f2df1e7-e17a-4242-b4c3-91a831b9048d
…cloud/privacy pattern

Co-authored-by: skjnldsv <14975046+skjnldsv@users.noreply.github.com>
Agent-Logs-Url: https://github.com/nextcloud/updater/sessions/5f2df1e7-e17a-4242-b4c3-91a831b9048d
Copilot AI changed the title [WIP] Add string concat method for nextcloudDir concatenations feat: add buildPath() helper and fix double-slash bug in createBackup() Mar 25, 2026
Copilot AI requested a review from skjnldsv March 25, 2026 06:47
Copilot AI and others added 2 commits March 25, 2026 06:53
Copilot AI changed the title feat: add buildPath() helper and fix double-slash bug in createBackup() fix: centralise path building, fix explode-based double-slash bug (issue #711), add PHPUnit Mar 25, 2026
@skjnldsv skjnldsv requested a review from blizzz March 25, 2026 08:16
@skjnldsv skjnldsv marked this pull request as ready for review March 25, 2026 08:16
@skjnldsv skjnldsv requested a review from Altahrim as a code owner March 25, 2026 08:16
Copilot AI changed the title fix: centralise path building, fix explode-based double-slash bug (issue #711), add PHPUnit Add PHPUnit workflow, fix path handling bug, REUSE/php-cs compliance Mar 25, 2026
@Keeper-of-the-Keys
Copy link
Copy Markdown

Hey @skjnldsv
The substr based approach to #711/#720 should also work, my only gripe (probably overly paranoid) with it is that it is (as currently implemented) just chopping of a set amount of characters without verifying that they actually are what we seek to remove.

@Keeper-of-the-Keys
Copy link
Copy Markdown

As a total aside - how wise is it to roll so many issues into 1 PR?

@skjnldsv
Copy link
Copy Markdown
Member

skjnldsv commented May 7, 2026

As a total aside - how wise is it to roll so many issues into 1 PR?

Well, this adds phpunit tests which was not enabled before, so it will definitely be a big PR.
That is still a thing we should have :)

@skjnldsv
Copy link
Copy Markdown
Member

skjnldsv commented May 7, 2026

@copilot resolve the merge conflicts in this pull request

…+ buildPath()

Agent-Logs-Url: https://github.com/nextcloud/updater/sessions/a9abb800-8545-4e95-a29f-29e8dbd26cdf

Co-authored-by: skjnldsv <14975046+skjnldsv@users.noreply.github.com>
Copy link
Copy Markdown
Author

Copilot AI commented May 7, 2026

@copilot resolve the merge conflicts in this pull request

Merge conflicts resolved in 851f344. The only conflict was in index.php and lib/Updater.php — master added opcache_invalidate() to the version file check while our branch replaced the path with buildPath(). Both changes are preserved in the merge.

Comment thread tests/unit/UpdaterTest.php Outdated
@Keeper-of-the-Keys
Copy link
Copy Markdown

As a total aside - how wise is it to roll so many issues into 1 PR?

Well, this adds phpunit tests which was not enabled before, so it will definitely be a big PR. That is still a thing we should have :)

My point was that adding phpunit and fixing #711/#720 should be 2 different PRs.

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.

4 participants