Skip to content

Bring back 32 bit support on Nextcloud 26 #36072

Closed

Description

@PVince81

Tasks

Regarding the typing, instead of removing typing like for stable25 we should use the union types available thanks to PHP 8 and use int|float.

Running the CI on 32 bits is not that straightforward because Github does not propose it so one has to run a docker in a docker or something along these lines. Need someone with knowledge on CI/docker.

On Drone, 64bit hardware is likely able to run 32bit code.
See "arch" field in https://docs.drone.io/pipeline/configuration/

It should not be too hard to fix once we have proper CI, given we have the PR for stable25 to use as an example of how to fix stuff. That said it seems stable25 is still not passing test suite on 32bits.

Estimate: possibly 2 weeks effort if not more depending on hurdles and whether we need to port Github workflow tests to Drone

@AndyScherzinger @DaphneMuller @come-nc @blizzz

Activity

  1. added this to the Nextcloud 26 milestone on Jan 10, 2023
  2. added
    1. to develop
    on Jan 10, 2023
  3. PVince81 commented on Jan 24, 2023

    @PVince81
    MemberAuthor

    @come-nc can you update the status, in case there was progress on the revertings ?

  4. come-nc commented on Jan 24, 2023

    @come-nc
    Contributor

    Only reverted the first one in my PR, I checked the boxes with current PR state.

    Current CI status in the PR:
    Tests: 14429, Assertions: 37379, Errors: 8, Failures: 6, Warnings: 29, Skipped: 42.

    On the 8 errors:

    • 7 are PHPUnit\Framework\MockObject\UnknownTypeException: Class or interface "OCA\Files_External\Lib\StorageConfig" does not exist from tests/lib/Encryption/UtilTest.php:208. They also fail in my 8.2 testing PR and should be fixed or skipped, but are not related to 32bits
    • 1 is ValueError: Epoch doesn't fit in a PHP integer from sabre-dav, needs investigation and fix or skip

    On the 6 failures:

    • All 6 of them seem related to the routes loading failing for files application. From what I was able to debug the include_once in lib/private/Route/Router.php does not include the routes because the file was already included but the routes were lost for some reason. It only happens in github and not in drone or local run, and only happens when running apps/files tests after core tests. So some kind of env specific loading problem. Not related to 32bits. Not clear how to fix it and not sure if safe to skip routing tests on 32bits?
  5. added
    2. developing
    and removed
    1. to develop
    on Jan 24, 2023
  6. come-nc commented on Jan 24, 2023

    @come-nc
    Contributor
  7. reopened this on Feb 7, 2023
  8. szaimen commented on Feb 9, 2023

    @szaimen
    Contributor

    Looks like everything done now or is something missing?

  9. blizzz commented on Feb 9, 2023

    @blizzz
    Member

    Looks like everything done now or is something missing?

    I am not aware of anything missing. @come-nc can you confirm?

  10. come-nc commented on Feb 9, 2023

    @come-nc
    Contributor

    Backport of CI and fixes to 25 is missing but that will have to wait 25.0.5.

  11. blizzz commented on Feb 9, 2023

    @blizzz
    Member

    Backport of CI and fixes to 25 is missing but that will have to wait 25.0.5.

    which ones did i miss? (but this issue is about 26?)

  12. come-nc commented on Feb 13, 2023

    @come-nc
    Contributor

    Backport of CI and fixes to 25 is missing but that will have to wait 25.0.5.

    which ones did i miss? (but this issue is about 26?)

    The fixes which were done in the PR adding CI: #36120
    The CI needs to be backported to 25 and some things will break, and some of the fixes will have to be backported.
    But it’s not an easy backport because typing is different on 25 and 26.

  13. ZachHandley commented on Jul 22, 2024

    @ZachHandley

    hey so, I don't know if this is the right issue, but I have this error
    image
    only on files over 2 GB, these aren't four, they're 3.7 GB, so it's extra weird. From the research I've done, it's related to #16431 -- if I'm wrong please don't re-open, but I can't upload anything and I have a hetzner cloud 32 bit so.

  14. AndyScherzinger commented on Aug 1, 2024

    @AndyScherzinger
    Member

    Can't say for sure @ZachHandley - best to raise a new issue so folks can reply to it. I know there is a limitation in terms of file size 32Bit can handle due to the limitations that come with it within PHP.

  15. sunjam commented on Aug 4, 2024

    @sunjam

    hey so, I don't know if this is the right issue, but I have this error image only on files over 2 GB, these aren't four, they're 3.7 GB, so it's extra weird. From the research I've done, it's related to #16431 -- if I'm wrong please don't re-open, but I can't upload anything and I have a hetzner cloud 32 bit s

    Try asking Hetzner assistance directly. Good luck with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions