GHA: add a job that test opam libs dependencies compilation#6394
GHA: add a job that test opam libs dependencies compilation#6394kit-ty-kate merged 4 commits intoocaml:masterfrom
Conversation
.github/scripts/main/main.sh
Outdated
| test_project "ocaml-opam" "opam-publish" 0 "make" | ||
| test_project "AltGr" "opam-bundle" 0 "make" | ||
| test_project "ocamlpro" "opam-custom-install" 1 "dune build" | ||
|
|
There was a problem hiding this comment.
I would also suggest adding dune-release, odep, odig, odoc-driver, opam-check-npm-deps, opam-build, opam-test, opam-dune-lint, opam-graph, opam-package-upgrade, orb, opam-0install and topkg-care
There was a problem hiding this comment.
It was package to test (some are failing on purpose as they have a dependency on opam < 2.2, see commits message). We'll need to select what package to add here : they are blocking for the PR merge.
Ideally we would have another more light mechanism, one that sends the information as a comment in the PR for ex., like that we are aware without blocking the PR (for packages that we don't maintain).
|
Discussion on dev meeting:
main comment updated with TODOs |
|
Added
|
3b16c68 to
b936860
Compare
.github/workflows/main.yml
Outdated
| env: | ||
| OPAM_DEPENDS: 1 | ||
| permissions: | ||
| pull-requests: write |
There was a problem hiding this comment.
Trying to fix gha lacking permissions to comment on the PR, probably due to the way this repo is configured
https://github.com/ocaml/opam/actions/runs/16571896348/job/46866212682?pr=6394#step:12:120
(My fork doesn't have this issue)
There was a problem hiding this comment.
Yea, PR from forks seem to have limited permissions by default actions/first-interaction#10 (comment)
3a35a2e to
73b818d
Compare
|
I've extracted commenting in another PR (#6646) to unblock this one. |
b86c512 to
9a91757
Compare
kit-ty-kate
left a comment
There was a problem hiding this comment.
Some minor suggestions but overall it looks alright.
There are definitely some parts that can be improved (e.g. every project reinstall their dependencies, even if they have been installed before because a new local switch was created), but it's more than i'm personally willing to invest in that so since it's blocking other PRs i'm fine with it.
Yes, there is some caching that can be added, definitively. |
81c0175 to
f24796e
Compare
| ++ checkout () | ||
| ++ cache Archives | ||
| ++ uses "Get changed files" ~id:"files" ~cond:(Predicate(true, Compare("github.event_name", "pull_request"))) (* ~continue_on_error:true see https://github.com/jitterbit/get-changed-files/issues/19 *) "Ana06/get-changed-files@v2.3.0" (* see https://github.com/jitterbit/get-changed-files/issues/55 ; Ana06'fork contains #19 and #55 fixes *) | ||
| ++ run "Changed files list" [ |
There was a problem hiding this comment.
I removed the changed files printing as now it is present in the step output itself
Co-authored-by: arozovyk <artemiy.rozovyk@ocamlpro.com>
Co-authored-by: arozovyk <artemiy.rozovyk@ocamlpro.com>
9a08bec to
5bea8fc
Compare
|
Thanks! |
In it based on the same mechanism than opam-rt, it permits to keep them synchronised with the current API
TODO
This PR also contains an enhancement of changed files step (and it use/conditionning).