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

test: reproduce dune exec -w crash with pkg management #10960

Merged
merged 3 commits into from
Oct 20, 2024

Conversation

anmonteiro
Copy link
Collaborator

reproduces the crash in #10959

@Alizter
Copy link
Collaborator

Alizter commented Sep 29, 2024

  let update_build_progress_exn ~f =

is initialising when this happens so I need to find who is updating the build progress this early.

@Alizter
Copy link
Collaborator

Alizter commented Sep 29, 2024

For some reason this stems from the let* binding of env in run_eagar_watch. Not sure how it is being triggered yet however.

@anmonteiro
Copy link
Collaborator Author

I just pushed a commit that delays evaluating Env.t Memo.t until get_path_and_build_if_necessary

bin/exec.ml Outdated Show resolved Hide resolved
@anmonteiro
Copy link
Collaborator Author

before addressing the outstanding code review items, I'd like some confirmation that the fix is in the right direction, or even correct.

@rgrinberg
Copy link
Member

The fix looks good to me

@anmonteiro anmonteiro force-pushed the anmonteiro/gh10959 branch 3 times, most recently from 94ec620 to 810756b Compare October 20, 2024 00:11
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
@anmonteiro
Copy link
Collaborator Author

should be ready for another look

Copy link
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit worried about this test being flaky. I suppose we can disable if it proves to be a problem.

@anmonteiro
Copy link
Collaborator Author

Absolutely. In my tests it was always under the allocated time budget so we can disable it if it regresses.

@anmonteiro anmonteiro enabled auto-merge (squash) October 20, 2024 20:52
@anmonteiro anmonteiro merged commit dce464e into ocaml:main Oct 20, 2024
1 of 2 checks passed
@maiste
Copy link
Collaborator

maiste commented Oct 21, 2024

before addressing the outstanding code review items, I'd like some confirmation that the fix is in the right direction, or even correct.

Does this PR also fix the problem, or is it the test to find the problem?

@anmonteiro
Copy link
Collaborator Author

this PR should also have fixed the issue. is it still reproducible for you?

@anmonteiro anmonteiro deleted the anmonteiro/gh10959 branch October 21, 2024 17:06
@maiste
Copy link
Collaborator

maiste commented Oct 22, 2024

Sorry, it was a misunderstanding on my side with the title of the PR. I tried it and it definitely fixes the problem, thanks 🙏

anmonteiro added a commit to anmonteiro/dune that referenced this pull request Nov 17, 2024
* test: reproduce `dune exec -w` crash with pkg management

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>

* fix: delay evaluating `env` until `get_path_and_build_if_necessary`

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>

---------

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants