-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Windows - Install-Msys2.ps1 - minor reliability, taskkill, logging #928
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this really necessary since we're installing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alepauly, see #906 (comment). The procedure in this PR is different from the recommended in those references (
-Syyuu
vs-Syuu
, and-Syuu
vs-Suu
). However, I think that this first execution oftaskkill /f /fi "MODULES eq msys-2.0.dll"
is required. I'm not sure about others, tho.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought I'd err on the cautious side, as the script should be bullet-proof. I intend to keep an eye on future CI logs to see if all the taskkill statements are needed. Some were included based on doing the install in Actions (mult vm's on one system), which may not be the case for the Pipeliines runs...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MSP-Greg, I think that the first
y
is irrelevant (i.e.Syyuu
orSyuu
). However, I believe that usingy
in following statements is what might maketaskkill
to be required again. Anyway, this should be fixed upstream, albeit "experimental" (https://github.com/msys2/msys2-installer/releases/tag/2020-05-22). We should not need it in the near future.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eine
As mentioned above, 'the script should be bullet-proof'. If an extra few seconds are added to the install time to do that, so be it. As MSYS2 is tested better re scripted install, etc, the install script may be able to be simplified.
Both Ruby itself and several extension gems are running CI using the new MSYS2 install, and all are passing with no changes. All are using the gcc tools, the bash shell is used less frequently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, most users of eine/setup-msys2 are using
update: true
. Hence, apart from the Ruby extensions gems, there is intensive testing going on. See msys2/setup-msys2#20. For example in ghdl/ghdl:actions nightly packages for MSYS2 are being built with setup-msys2.