Skip to content

Stack CI times out for Windows #6128

Closed

Description

Activity

  1. added
    platform: windows
    infra: github workflows
    on Sep 23, 2022
  2. andreasabel commented on Sep 27, 2022

    @andreasabel
    MemberAuthor

    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.

  3. added
    stack
    on Sep 27, 2022
  4. added 3 commits that reference this issue on Oct 5, 2022
  5. andreasabel commented on Oct 23, 2022

    @andreasabel
    MemberAuthor

    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.

  6. added
    release blocker
    and removed
    infra: github workflows
    on Oct 23, 2022
  7. added this to the 2.6.3 milestone on Oct 23, 2022
  8. nad commented on Oct 23, 2022

    @nad
    Collaborator

    Is this a regression? In that case you could use bisection.

  9. andreasabel commented on Oct 23, 2022

    @andreasabel
    MemberAuthor

    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

    (Andreas: Goal of this PR: speed up generation of .agdai files during setup.)

    Bingo! This looks like a hit.
    But:

    • Why is there no CI run for merging this into master?
    • You did not seem to check CI results before merging this, why?
  10. added 2 commits that reference this issue on Oct 23, 2022
    1c0d37c
    c4b5b2e
  11. nad commented on Oct 23, 2022

    @nad
    Collaborator

    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.
  12. self-assigned this
    on Oct 23, 2022
  13. andreasabel commented on Oct 23, 2022

    @andreasabel
    MemberAuthor

    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.

  14. added a commit that references this issue on Oct 23, 2022
    30d1d26
  15. nad commented on Oct 23, 2022

    @nad
    Collaborator

    "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.

  16. added a commit that references this issue on Oct 23, 2022
    e68e9a6
  17. added a commit that references this issue on Oct 23, 2022
    d039f15
  18. added
    infra: github workflows
    on Oct 24, 2022
  19. added a commit that references this issue on Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infra: github workflowsplatform: windowsrelease blockerstack

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions