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

CI: Unpack installers, test --help and --version #6983

Closed
wants to merge 3 commits into from

Conversation

JohannesLorenz
Copy link
Contributor

@JohannesLorenz JohannesLorenz commented Nov 13, 2023

Finally ready to review. Thanks to the almost not countable devs who helped.

For discussion:

  • Time spent Most systems are equally fast, however, MinGW takes ~ 1 minute more (master average time is 9 minutes), because I added dpkg --add-architecture i386 && apt-get --yes update. I also had to add a second apt-get install, which however just takes ~ 15 seconds. I hope that is all acceptable.

These memory leaks caused help and version to crash at the end, due to
rpmalloc's memleak detection.
@JohannesLorenz JohannesLorenz force-pushed the fix-memleak-help branch 5 times, most recently from 358024a to e3a3ab7 Compare November 24, 2023 23:36
@JohannesLorenz JohannesLorenz marked this pull request as ready for review November 25, 2023 00:18
@JohannesLorenz JohannesLorenz changed the title Fix memleaks in help/version Fix memleaks in help/version, including CI tests Nov 25, 2023
@JohannesLorenz JohannesLorenz mentioned this pull request Jan 14, 2024
Copy link
Contributor

@Veratil Veratil left a comment

Choose a reason for hiding this comment

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

Feel free to ignore these if you want, but some of the formatting I feel is completely unnecessary and adding extra lines for no reason.

This runs `lmms --version` and `lmms --help` in the github CI. Further
checks, like importing an LMMS project to WAV via CLI, are conceivable.
@JohannesLorenz
Copy link
Contributor Author

JohannesLorenz commented Mar 23, 2024

@DomClark as a friendly reminder, it seems like you self-requested a review here last month.

Copy link
Member

@DomClark DomClark left a comment

Choose a reason for hiding this comment

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

I don't think build.yml is the right place to define end-to-end tests. It means they have to be defined multiple times (for Linux, macOS, MinGW, and MSVC jobs), and they will quickly clutter the file (which is intended to define the build process instead) if many more are added. I don't mind launching the tests from there (as we do for the current suite), but I think a separate script would be more appropriate to define them.

@DomClark
Copy link
Member

There are three things changed in this PR:

  • The memory leak fix for the help/version commands. This looks good to me.
  • The end-to-end tests for said commands. I still think the build action is the wrong place to define these, especially as separate steps. While end-to-end tests are worth having, I'd rather leave them out for now, and find a proper way to write them. (This could even be done in a separate action, which would enable us to test the MinGW builds in a real Windows environment, rather than under Wine.)
  • The introduction of yamllint. This also looks good to me, but is only relevant in the context of the build script changes, so I'd make it a separate PR.

This was referenced Aug 4, 2024
@Rossmaxx
Copy link
Contributor

Rossmaxx commented Aug 4, 2024

Since this PR has been spun up into #7424 and #7423 , better to close this PR in favour of it's children.

@Rossmaxx Rossmaxx closed this Aug 4, 2024
@JohannesLorenz
Copy link
Contributor Author

Thanks, but since this contains multiple open comments from Dom, I will rather keep using this for the remaining CI commit. I will fix the title and description.

@JohannesLorenz JohannesLorenz changed the title Fix memleaks in help/version, including CI tests Add CI tests to unpack installers and to run --help and --version Aug 4, 2024
@JohannesLorenz JohannesLorenz changed the title Add CI tests to unpack installers and to run --help and --version CI: Unpack installers, test --help and --version Aug 4, 2024
@JohannesLorenz
Copy link
Contributor Author

Oh no now it cannot be reopened :-( OK, I will open a new PR...

This was referenced Aug 4, 2024
@JohannesLorenz
Copy link
Contributor Author

  • While end-to-end tests are worth having, I'd rather leave them out for now, and find a proper way to write them. (This could even be done in a separate action, which would enable us to test the MinGW builds in a real Windows environment, rather than under Wine.)

Do you mean having 2 actions in sequential order, e.g. let one action use jobs.JOBID.needs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants