Skip to content
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

Mac ARM64 5.1.0~rc2 upgrade failure #23

Open
jmid opened this issue Sep 1, 2023 · 2 comments
Open

Mac ARM64 5.1.0~rc2 upgrade failure #23

jmid opened this issue Sep 1, 2023 · 2 comments

Comments

@jmid
Copy link
Contributor

jmid commented Sep 1, 2023

It looks like the docker image for Mac ARM64 5.1 was upgraded to 5.1.0~rc2 🎉
It fails now however:
https://ocaml-multicoretests.ci.dev:8100/job/2023-08-31/200021-ci-ocluster-build-7f7193#L65

[WARNING] Upgrade is not possible because of conflicts or packages that are no longer available:
    - Missing dependency:
    - ocaml-base-compiler >= 5.1.0~rc2
    incompatible with the switch invariant ["ocaml-base-compiler" {= "5.1.0~rc2"}] (use `--update-invariant' to force)

I think it just needs an opam update to receive the latest opam-repo that includes the 5.1.0~rc2 release...

@jmid
Copy link
Contributor Author

jmid commented Sep 5, 2023

Figured out a fix with help from @mtelvers

It would be nice to set the validity of the opam-repository to a week or so, to allow for picking up updates such as ocaml.5.1.0~rc2 and the recent qcheck.0.21.2 without having to restart the service.

@jmid
Copy link
Contributor Author

jmid commented Sep 7, 2023

We just hit this issue again with the update to 5.1.0~rc3:
https://ocaml-multicoretests.ci.dev:8100/job/2023-09-07/103019-ci-ocluster-build-081d5f#L67

/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
        (network host)
        (shell "cd ~/opam-repository && (git cat-file -e 7a76ea59a3009358e12f34ba7cd690f940353705 || git fetch origin master) && git reset -q --hard 7a76ea59a3009358e12f34ba7cd690f940353705 && git log --no-decorate -n1 --oneline && opam update -u"))
7a76ea59a3 Merge pull request #24353 from dinosaure/release-miou-v0.0.1_beta1

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///Users/mac1000/opam-repository

[WARNING] Upgrade is not possible because of conflicts or packages that are no longer available:
    - Missing dependency:
    - ocaml-base-compiler >= 5.1.0~rc3
    incompatible with the switch invariant ["ocaml-base-compiler" {= "5.1.0~rc3"}] (use `--update-invariant' to force)

It was temporarily solved by restarting the service.
As we will face the same issue next week with the release of 5.1.0 (and later for a 5.2.0* release cycle) it would be nice to lower the cache entry validity to avoid the need for continued manual intervention.

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

No branches or pull requests

1 participant