You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am afraid I have no clue why stack install suddenly stalls under the windows-2022 virtual environment, and what upstream change caused this breakage. I currently have no idea how to fix this. One could randomly downgrade stack/ghc/windows or wait for stack 2.9.1 to become available.
I managed to reproduce this behavior on my Windows machine.
Looks like our Setup script hangs.
We need to investigate this before the release!
2022-10-23 10:11:37.457678: [info] Agda > copy/register
2022-10-23 10:11:37.457678: [debug] Run process within agda\:
agda\.stack-work\dist\22605e11\setup\setup.EXE --verbose=1 --builddir=.stack-work\dist\22605e
This is the last message. In the task manager, I can see setup running, and if I kill it, stack terminates as well. So, it is definitely waiting for setup to finish.
which you did not describe, so I added the description
(Andreas: Goal of this PR: speed up generation of .agdai files during setup.)
There was a description: "Fixed #5225" (and issue #5225 explains what this was about). I don't see the point of duplicating information, I created the pull request only to run the CI tests, not to ask for feedback.
Why is there no CI run for merging this into master?
This commit was not merged into the master branch. I usually don't merge, because merging adds noise to the history. Furthermore there is no guarantee that the CI tests will succeed after a merge.
You did not seem to check CI results before merging this, why?
In this case it seems as if there were two CI problems:
Something related to ICU on MacOS. I usually ignore such problems.
The Windows build seems to have been cancelled. I guess I thought that there was some resource problem related to the CI infrastructure, but if I had looked closer I would have seen that the build stalled at the point in the build that I had modified. If we had had fewer false negatives I might have investigated this more carefully.
There was a description: "Fixed #5225" (and issue #5225 explains what this was about). I don't see the point of duplicating information, I created the pull request only to run the CI tests, not to ask for feedback.
"Fixed #nnn" isn't a sufficient description. An issue #nnn only describes the problem. A PR should describe the solution. In particular what solution has been taken, and sometimes also why this particular solution was chosen.
Communicating more in a joint enterprise is seldom to the disadvantage. Usually, there isn't enough communication.
As a rule, each change through Agda should go through a PR, for communication, documentation, and also after-the-fact discussion (as many changes introduce regressions).
This commit was not merged into the master branch. I usually don't merge, because merging adds noise to the history. Furthermore there is no guarantee that the CI tests will succeed after a merge.
I didn't mean "merge" in the sense of "merge commit". I strongly prefer "rebase and merge" or "squash and merge". "Merging a branch" more generally means that the commits from a branch enter master.
Not seeing this PR in a CI run on master confused me greatly when looking for the source of the CI failure. As you can see, the first broken CI on master was your documentation patch. If CI starts failing on master, I want to see the first failure on the commits that caused it, not on some other commits. Yes, this means extra CI runs, unfortunately.
* The Windows build seems to have been cancelled. I guess I thought that there was some resource problem related to the CI infrastructure, but if I had looked closer I would have seen that the build stalled at the point in the build that I had modified. If we had had fewer false negatives I might have investigated this more carefully.
Well, yes, a broken macOS CI occurring in parallel did not help here. But the Windows CI kept being broken even after the macOS CI was fixed, and your input would have helped finding the culprit easier. Since I saw it break on an innocuous commit first, I could only suspect upstream and tried to solve it by upgrading the virtual environment, stack, etc., all to no avail.
Usually, I'd say "You owe me a beer", but then, you don't drink.
I wonder what we can learn from this. I am considering this:
All additions to master have to go through a PR.
Successful CI is mandatory to merge a PR into master.
This is standard in many open-source project. cabal is way stricter, additionally, 2 approving reviews are needed for every PR to get merged. I don't think I want to go that far, since it slows down the development process considerably, and many PRs are actually uncontroversial.
"Fixed #nnn" isn't a sufficient description. An issue #nnn only describes the problem. A PR should describe the solution. In particular what solution has been taken, and sometimes also why this particular solution was chosen.
I don't fully agree with you, but I suggest that we discuss this offline.
I wonder what we can learn from this. I am considering this:
All additions to master have to go through a PR.
Successful CI is mandatory to merge a PR into master.
I think the most important thing is to avoid false negatives, there have been lots of those recently.
Activity
andreasabel commentedon Sep 27, 2022
I am afraid I have no clue why
stack installsuddenly stalls under the windows-2022 virtual environment, and what upstream change caused this breakage. I currently have no idea how to fix this. One could randomly downgrade stack/ghc/windows or wait for stack 2.9.1 to become available.Re #6128: try downgrade to windows-2019
Re #6128: try downgrade to windows-2019
Re #6128: temporarily disable the stack/windows CI
andreasabel commentedon Oct 23, 2022
I managed to reproduce this behavior on my Windows machine.
Looks like our
Setupscript hangs.We need to investigate this before the release!
This is the last message. In the task manager, I can see
setuprunning, and if I kill it,stackterminates as well. So, it is definitely waiting forsetupto finish.nad commentedon Oct 23, 2022
Is this a regression? In that case you could use bisection.
andreasabel commentedon Oct 23, 2022
According to the CI runs on
master, https://github.com/agda/agda/actions/workflows/stack.yml?page=3&query=branch%3Amaster, the first commit that broke it was your (@nad) commit https://github.com/agda/agda/actions/runs/3083630490, see workflow run https://github.com/agda/agda/actions/runs/3083630490. But this commit just changed documentation. So I think bisection cannot help here.Concerning CI run on branches, your run https://github.com/agda/agda/actions/runs/3083625202/jobs/4984786370 failed as well. This is
which you did not describe, so I added the description
Bingo! This looks like a hit.
But:
master?Fix #6128: Setup with stack under Windows
Fix #6128: Setup with stack under Windows
nad commentedon Oct 23, 2022
There was a description: "Fixed #5225" (and issue #5225 explains what this was about). I don't see the point of duplicating information, I created the pull request only to run the CI tests, not to ask for feedback.
This commit was not merged into the master branch. I usually don't merge, because merging adds noise to the history. Furthermore there is no guarantee that the CI tests will succeed after a merge.
In this case it seems as if there were two CI problems:
andreasabel commentedon Oct 23, 2022
"Fixed #nnn" isn't a sufficient description. An issue #nnn only describes the problem. A PR should describe the solution. In particular what solution has been taken, and sometimes also why this particular solution was chosen.
Communicating more in a joint enterprise is seldom to the disadvantage. Usually, there isn't enough communication.
As a rule, each change through Agda should go through a PR, for communication, documentation, and also after-the-fact discussion (as many changes introduce regressions).
I didn't mean "merge" in the sense of "merge commit". I strongly prefer "rebase and merge" or "squash and merge". "Merging a branch" more generally means that the commits from a branch enter
master.Not seeing this PR in a CI run on
masterconfused me greatly when looking for the source of the CI failure. As you can see, the first broken CI onmasterwas your documentation patch. If CI starts failing onmaster, I want to see the first failure on the commits that caused it, not on some other commits. Yes, this means extra CI runs, unfortunately.Well, yes, a broken macOS CI occurring in parallel did not help here. But the Windows CI kept being broken even after the macOS CI was fixed, and your input would have helped finding the culprit easier. Since I saw it break on an innocuous commit first, I could only suspect upstream and tried to solve it by upgrading the virtual environment,
stack, etc., all to no avail.Usually, I'd say "You owe me a beer", but then, you don't drink.
I wonder what we can learn from this. I am considering this:
masterhave to go through a PR.master.This is standard in many open-source project.
cabalis way stricter, additionally, 2 approving reviews are needed for every PR to get merged. I don't think I want to go that far, since it slows down the development process considerably, and many PRs are actually uncontroversial.Fix #6128: Setup with stack under Windows
nad commentedon Oct 23, 2022
I don't fully agree with you, but I suggest that we discuss this offline.
I think the most important thing is to avoid false negatives, there have been lots of those recently.
Fix #6128: Setup with stack under Windows
Fix #6128: Setup with stack under Windows
Re #6128: temporarily disable the stack/windows CI