-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: Adapt to PR coq-community/docker-coq#47 #39
Conversation
Oh, minimal is deprecated? This is a surprise to me. |
BTW, in the end there was no announcement yet for the change in Docker-Coq single-switch vs double-switch, right? Should the end of the transition period still be on Dec 14th then? |
Hi, I wanted to announce it yesterday, but I've been busy. Soon anyway. And which migration period do you think it is reasonable? 7 days maybe? Finally, if you agree with the "backward-compatible" solution we discussed just now, here is the plan:
Let me know if you are OK with this plan, and I'll implement it very soon in this PR :) Finally, a suggestion regarding the deprecation of |
I agree with this plan. 7 days sound right.
Yes, it makes sense for a deprecated field. The question that remains to be decided if whether to deprecate but preserve the semantics of The latter would not be strictly compatibility-preserving, but we can decide depending on the usages that were made of it. I just reviewed the 8 usages found with: https://github.com/search?q=docker-coq-action+minimal+language%3AYAML&type=code Most come directly from a generation from a previous version of the coq-community templates. Note that the coq-community template used an explicit The only exceptions are:
Out of these, only Coq-Elpi is a plugin. It is currently tested with Coq 8.12 and OCaml WDYT? |
Hi @Zimmi48, thanks for your comments.
Indeed, having a Anyway, I agree with your concern that there should be the least possible business logic / ad-hoc code in docker-coq-action to "compute" the desired version! but I guess this can be done in a somewhat "future-proof" way (without needing to update the action as soon as a Coq is released that has the same minimal supported ocaml version as that of the previous release), as long as we we don't bump to docker-coq-action v2... |
If you are not comfortable with |
48d3549
to
387c3ac
Compare
Hi @Zimmi48, just FYI the "minimal" deprecation warning is implemented (and I guess it's in line which part of this Thursday's discussion on promoting a better version than 4.05.0!) |
I'm surprised it doesn't also appear in the files changes tab as the Coq annotations themselves: https://github.com/erikmd/docker-coq-github-action-demo/pull/8/files Apart from this, LGTM. |
I suspect that this PR may have been forgotten to be merged together with the single-opam-switch change. Since then, |
I now see that the single-switch change may have been expected to be backward compatible. However, I need to move from 4.09 to 4.10 due to this change, and the CI is not properly selecting the 4.10 image. See here for example: https://github.com/coq-tactician/coq-tactician-stdlib/runs/1554834940 |
@LasseBlaauwbroek my bad… the fact that this PR has been delayed induced that ocaml_version was ignored for the newly avaialble swiches! |
Hi @LasseBlaauwbroek, the issue is fixed now in v1.2.3, thanks again for your report! |
Thanks! |
6fd889e
to
8e2545a
Compare
@Zimmi48 could you proofread the docs part of this PR? (README.md and error messages only) Here is the link to the rendered Regarding the error messages 1 and 2, they can be seen, rendered, as GHA annotations: I plan to merge this PR on next Monday 2022-06-20 and do a minor release. |
FTR, it seems that all Docker-Coq images experience a coq reinstall at runtime… probably because of this change, so I'm going to rebuild all Docker-Coq images… Done ✔️ |
9261f44
to
b4e2515
Compare
FWIW, to date there's only two YAML configs that use |
* Document the support of coq_version: '…-native' * Add more links, to the ocaml-version-policy of Docker-Coq * Deprecate the value of ocaml_version: 'minimal' * Add a GHA warning for this deprecated value. * Add a GHA warning for (coq_version: '…-native', ocaml_version != 'default') * Remove the now-unneeded `opam switch ${COMPILER_EDGE)` command
Let's wait for a newest CI run, then I'll merge and release this important patch tonight. |
Can be merged and released after coq-community/docker-coq#7 is deployedThis is a backward-compatible migration, so if there were no new release of the action,coq-community/docker-coq-action@v1.2.2
will continue to work as is with existing configurations until December 14, since Docker-Coq's "default tags" (which don't specify an ocaml version) will be retained as dual-switch up to December 14.Edit: Adapt to coq-community/docker-coq#47