-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix 32bit support and add workflow for 32bits testing #36120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
3885818
Add workflow for 32bits testing
come-nc e156f83
Revert "remove 32-bit workarounds"
come-nc b370fdb
Running all tests on 32bits to see what happens
come-nc 2d8e696
Add apcu and ffmpeg to have less skipped tests
come-nc ff776a9
Strong type filesize related methods to ease 32bits problem findings
come-nc d9dbed9
Fix psalm errors related to filesizes
come-nc 5cfab22
Improve test failure output for RouterTest.php
come-nc 255f230
Fix bigsize support on 32bits in OC_Helper
come-nc 0f8c34c
Fix filesize return type error in ViewTest
come-nc 94ecae4
Add helper to cast to int|float, fix MemoryInfo on 32bits
come-nc 7a628c0
Fix 32bits bigint support in Util/OC_Helper
come-nc 0753be3
Fix a few tests that were using too big int values for 32bits
come-nc d00422b
Fix computerFileSize when called with a string without unit
come-nc 5aed587
Fix setQuota on User on 32bits
come-nc 5c1a0e0
Allow float sizes in FileInfo for 32bits
come-nc cd885b5
Type sizes as int|float throughout the code base
come-nc 77c8c9c
Improve error output on failed Router test
come-nc 110fc79
Silence errors of return type mismatch from Sabre for now
come-nc d315bce
Improve behavior with dates on 32bits and fix tests or skip them
come-nc b7d9e43
Put back string in $includeMounts as it actually does something
come-nc db80ac0
Fix name of skip method for phpunit
come-nc 028c225
Fix psalm errors
come-nc 1994554
Fix Sabre connector test
come-nc 885e54e
Psalm easy fixes in apps/files/appinfo/routes.php
come-nc 892e6c6
Skip buggy tests for 32bits CI
come-nc 476d5dc
Skip tests that cannot succeed on 32bits
come-nc 33b5207
Only run 32bit CI once a day
come-nc 1765908
Document that size may be a float in new class VersionEntity
come-nc c4d90f3
Removed catch of ValueError as we cannot know if it’s >2038 or <1970
come-nc 09a97ad
Move back typing to phpdoc to keep backward compatibility in OCP
come-nc 308fcf4
Respect OCP interface in private classes
come-nc 6e276ad
Show logs on smb-kerberos CI failure
come-nc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| name: PHPUnit | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: "15 1 * * 1-6" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: phpunit-32bits-${{ github.head_ref || github.run_id }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| phpunit-32bits: | ||
| runs-on: ubuntu-latest | ||
| container: shivammathur/node:latest-i386 | ||
|
|
||
| strategy: | ||
| matrix: | ||
| php-versions: ['8.0'] | ||
|
|
||
| steps: | ||
| - name: Checkout server | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| submodules: true | ||
|
|
||
| - name: Install tools | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y ffmpeg imagemagick libmagickcore-6.q16-3-extra | ||
|
|
||
| - name: Set up php ${{ matrix.php-versions }} | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php-versions }} | ||
| extensions: ctype, curl, dom, fileinfo, gd, imagick, intl, json, mbstring, openssl, pdo_sqlite, posix, sqlite, xml, zip, apcu | ||
| tools: phpunit:9 | ||
| coverage: none | ||
| ini-values: | ||
| apc.enabled=on, | ||
| apc.enable_cli=on | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Set up Nextcloud | ||
| env: | ||
| DB_PORT: 4444 | ||
| run: | | ||
| mkdir data | ||
| ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=autotest --database-pass=rootpassword --admin-user admin --admin-pass admin | ||
| php -f index.php | ||
|
|
||
| - name: PHPUnit | ||
| working-directory: tests | ||
| run: phpunit --configuration phpunit-autotest.xml --exclude-group PRIMARY-azure,PRIMARY-s3,PRIMARY-swift,Memcached,Redis,RoutingWeirdness |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,3 +64,9 @@ jobs: | |
| CONTENT=$(./client-cmd.sh ${{ env.DC_IP }} curl -b /shared/cookies/jar -s --negotiate -u [email protected]: --delegation always http://httpd.domain.test/remote.php/webdav/smb/test.txt) | ||
| CONTENT=$(echo $CONTENT | head -n 1 | tr -d '[:space:]') | ||
| [[ $CONTENT == "testfile" ]] | ||
| - name: Show logs | ||
| if: failure() | ||
| run: | | ||
| docker exec --user 33 apache ./occ log:file | ||
| FILEPATH=$(docker exec --user 33 apache ./occ log:file | grep "Log file:" | cut -d' ' -f3) | ||
| docker exec --user 33 apache cat $FILEPATH | ||
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.