Skip to content

ocis: add sequential upgrade path through 8.1 - #409138

Closed
Ramblurr wants to merge 2 commits into
NixOS:masterfrom
Ramblurr:init/ocis_7-bin
Closed

Ramblurr wants to merge 2 commits into
NixOS:masterfrom
Ramblurr:init/ocis_7-bin

Conversation

@Ramblurr

@Ramblurr Ramblurr commented May 20, 2025 •

Copy link
Copy Markdown
Contributor

Edit 2026-07:

This PR has been languishing too long, it's over a year old.

I rebuilt this PR on current master and expanded it to cover the complete upstream production upgrade sequence:

5.0 → 7.0 → 7.1 → 7.2 → 7.3 → 8.0 → 8.1

Existing systems will stay on ocis_5-bin, while new NixOS 26.11 systems default to ocis_81-bin.

Original PR:

This is a follow up to #394598

TL;DR: (full explanation is in the "Maintainer information" in the nixos documentation)

Upgrading ocis requires stepping through every stable major and minor version. You cannot skip one.

This PR adds ocis 7.0 and ocis 7.1. ocis 6.0 was skipped as it is not a stable version.

The nixos module is updated to choose the appropriate version based on the
system.stateVersion, and now provides some tools to help the user update their
instance.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

pinging fellow maintainers

@bhankas @danth


Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: documentation This PR adds or changes documentation labels May 20, 2025
@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 20, 2025
@Ramblurr
Ramblurr force-pushed the init/ocis_7-bin branch 3 times, most recently from 0fb0cdc to d7cd0bc Compare May 22, 2025 14:36
@Ramblurr

Copy link
Copy Markdown
Contributor Author

Fixed merge conflicts

@Ramblurr

Ramblurr commented Jun 4, 2025

Copy link
Copy Markdown
Contributor Author

@bhankas @danth Feel free to review, if you aren't interested in this package anymore feel free to tell me, and I'll stop pinging y'all :)

@Ramblurr Ramblurr mentioned this pull request Jun 5, 2025
13 tasks
@Ramblurr

Ramblurr commented Jun 5, 2025

Copy link
Copy Markdown
Contributor Author

Fixed merge conflicts, again.

@bhankas

bhankas commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

@bhankas @danth Feel free to review, if you aren't interested in this package anymore feel free to tell me, and I'll stop pinging y'all :)

@Ramblurr apologies for long delays between activity, $LIFE has been very busy and my github activity has diminished as a result. I have also temporarily stopped being a sysadmin for myself, so haven't kept up with ocis dev either. Until I am back to using the package on daily basis it would be wise to take my name off maintainers list.

That being said, the changes LGTM, approved.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 9, 2025
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 16, 2025
@Ramblurr

Copy link
Copy Markdown
Contributor Author

Fixed merge conflicts.

@ofborg ofborg Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 19, 2025
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 9, 2025
@Ramblurr

Ramblurr commented Jul 9, 2025 •

Copy link
Copy Markdown
Contributor Author

@wegank I have yet again fixed the merge conflicts. Could you please remove the label? This PR has been languishing for well over a month and I would like to get it merged as no one can upgrade their owncloud without it.

@dotlambda dotlambda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me like the different derivativions share most of their code. Can we make them call a generic builder instead to deduplicate that?

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 4, 2026
@Ramblurr

Ramblurr commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

@dotlambda thanks again for your attention. I have implemented your suggestion! See the updated commits.

However the nixpkgs-vet tool complains that pkgs/by-name/oc/ocis-bin/ requires a package.nix. Libressl seems to have a package.nix that aliases pkgs.libressl to the latest version. For oCIS however we don't want an pkgs.ocis-bin because it's not safe to suddenly upgrade to the latest version (hence this whole rigamarole).

What's the proper way forward here..

Should package.nix permanently alias a specific version? Alias the latest with a warning? Or is there another established by-name pattern for exposing only the explicitly versioned attributes? Should we move the pkg out of pkgs/by_name entirely?

@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Aug 6, 2026
@dotlambda

Copy link
Copy Markdown
Member

Should we move the pkg out of pkgs/by_name entirely?

Yes you can move the generic code out of pkgs/by-name.

@Ramblurr

Ramblurr commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Should we move the pkg out of pkgs/by_name entirely?

Yes you can move the generic code out of pkgs/by-name.

Alrighty, done.

@nixpkgs-ci nixpkgs-ci Bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. and removed 8.has: package (new) This PR adds a new package labels Aug 7, 2026
@Ramblurr

Ramblurr commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

closing and reopening the PR to trigger the CI again. The https://github.com/NixOS/nixpkgs/actions/runs/31121231572/job/92683186095?pr=409138 job failed because github is flaky.

@Ramblurr Ramblurr closed this Aug 8, 2026
@Ramblurr Ramblurr reopened this Aug 8, 2026
@github-project-automation github-project-automation Bot moved this from ✅ Done to ⚖ Needs refinement in Nix documentation Aug 8, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. and removed 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Aug 8, 2026
@c2fc2f

c2fc2f commented Aug 13, 2026

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 409138
Commit: cd573fb8a5249366f0b6788ed41fe978b51ca655


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • tests.config-nix-unit
⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
✅ 8 packages built:
  • nixpkgs-manual
  • ocis_5-bin
  • ocis_70-bin
  • ocis_71-bin
  • ocis_72-bin
  • ocis_73-bin
  • ocis_80-bin
  • ocis_81-bin

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Aug 13, 2026
@Ramblurr

Copy link
Copy Markdown
Contributor Author

I have decided not to pursue oCIS in nixpkgs any further and am retracting this PR.

@Ramblurr Ramblurr closed this Aug 21, 2026
@github-project-automation github-project-automation Bot moved this from ⚖ Needs refinement to ✅ Done in Nix documentation Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

5 participants