-
Notifications
You must be signed in to change notification settings - Fork 321
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
Minor simplifications and clean-ups of build pipeline/workflows #2214
Merged
LorenzoBettini
merged 1 commit into
eclipse:main
from
HannesWell:minorBuildSimplifications
Apr 14, 2023
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
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
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
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.
This actions seems to trigger the installation of additional packages in GitHub Actions:
while the "if" solution did not require any additional package installation.
Besides not having the "if" and 2 steps, does the use of this action provide additional benefits?
Have you used this action in other projects?
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.
question would be: why is xvfb-run insufficient.
we used that cause the original GabrielBB/xvfb-action
was no longer maintained
coactions/setup-xvfb
seems to be the new fork.
but i am not sure if needed cause xvfb-run seem to work.
should this be reported to coactions/setup-xvfb
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.
No more benefits I'm aware of.
Yes, for example we used the predecessor (as Christian mentioned) in M2E for a while and I just changed to the new one recently: eclipse-m2e/m2e-core#1344
And SWT uses it as well (I should probably update it there too):
https://github.com/eclipse-platform/eclipse.platform.swt/blob/6912a16abe78c905180908ea4d59218f6519c272/.github/workflows/maven.yml#L60
Probably, yes. I have not digged into the details, but as far as I understand this is mainly for conveniences and avoids the need for the if.
From https://github.com/coactions/setup-xvfb
This action installs [XVFB](http://elementalselenium.com/tips/38-headless) and runs your headless tests with it. It cleans up the xvfb process after your tests are done. If it detects you're not using linux then your tests still run, but without xvfb, which is very practical for multi-platform workflows.
So that's probably it.
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.
we were using the garielbb for rerference project integ tests nor about 5 years
but we stopped using once it was no longer maintained
and github was issuing warnings about the deprecation feature use of that
this is why we then switchted to the alternative approach
xtext/xtext-reference-projects@bc0256f
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.
Understand, but since the action has been revived I think things changed a bit.
Any way, just let me know which way you want and I can act accordingly.
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.
using the new action is ok. the question is the warning already reported upstream or do we do something wrong
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.
OK. 👍🏽
Probably not reported, at least I cannot see any issue on that topic.
This extra package installation was just recently added in coactions/setup-xvfb#5. Unfortunately there is not much context.
Maybe this can be made smarter by just installing the recommended packages with it, but I'm not an apt expert?
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.
hmmm ok
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 don't see the warning in GitHub Actions.
If the action has been revived, I'm OK with that.
The apt installation doesn't seem to take a lot of time.
If something goes wrong we can revert.
@cdietrich I'd approve the PR, what about you?