Skip to content

Add more commands to the Makefile and use them in CI#24

Merged
feloy merged 3 commits intodevfile:mainfrom
feloy:issue-1234/makefile
Sep 12, 2023
Merged

Add more commands to the Makefile and use them in CI#24
feloy merged 3 commits intodevfile:mainfrom
feloy:issue-1234/makefile

Conversation

@feloy
Copy link
Contributor

@feloy feloy commented Sep 7, 2023

What does this PR do?

The command make help is added to the Makefile.

The commands make check_registry, make gosec and make gosec_install are added to the Makefile, and used in CI workflows.

Which issue(s) does this PR fix

fixes devfile/api#1234

PR acceptance criteria

Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened.

  • Unit/Functional tests

  • Documentation

How to test changes / Special notes to the reviewer

@feloy feloy requested review from rm3l and thepetk September 7, 2023 08:13
@feloy feloy force-pushed the issue-1234/makefile branch from 3415261 to 1ad8772 Compare September 7, 2023 08:13
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (04361c9) 67.23% compared to head (abd4762) 67.23%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #24   +/-   ##
=======================================
  Coverage   67.23%   67.23%           
=======================================
  Files          11       11           
  Lines        1419     1419           
=======================================
  Hits          954      954           
  Misses        405      405           
  Partials       60       60           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@rm3l rm3l left a comment

Choose a reason for hiding this comment

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

Also, I think it can be helpful to also add a cross-compile Make target that will build Alizer for multiple platforms. This will simplify the release.yaml workflow.

@feloy
Copy link
Contributor Author

feloy commented Sep 7, 2023

Also, I think it can be helpful to also add a cross-compile Make target that will build Alizer for multiple platforms. This will simplify the release.yaml workflow.

Because of the filename of the executable needs to be passed to the next step of the release (Release with Notes and Binaries), I cannot find a way to clearly simplify it (the filename will need to be computed twice or to be passed between the workflow and the build script).

@rm3l
Copy link
Member

rm3l commented Sep 7, 2023

Also, I think it can be helpful to also add a cross-compile Make target that will build Alizer for multiple platforms. This will simplify the release.yaml workflow.

Because of the filename of the executable needs to be passed to the next step of the release (Release with Notes and Binaries), I cannot find a way to clearly simplify it (the filename will need to be computed twice or to be passed between the workflow and the build script).

I just read that the files input parameter of this Action can be a glob expression that could match all the binaries produced by the previous step. So that could be a solution, I guess..

Actually, I was even thinking that this softprops/action-gh-release action may not be needed, since the official gh release CLI can be used to create a release and upload assets as well. So the steps for cross-compiling, and creating a release with the assets, could all be scripted and called in this Workflow. But maybe that can be a separate issue on its own.

@feloy
Copy link
Contributor Author

feloy commented Sep 7, 2023

Also, I think it can be helpful to also add a cross-compile Make target that will build Alizer for multiple platforms. This will simplify the release.yaml workflow.

Because of the filename of the executable needs to be passed to the next step of the release (Release with Notes and Binaries), I cannot find a way to clearly simplify it (the filename will need to be computed twice or to be passed between the workflow and the build script).

I just read that the files input parameter of this Action can be a glob expression that could match all the binaries produced by the previous step. So that could be a solution, I guess..

Actually, I was even thinking that this softprops/action-gh-release action may not be needed, since the official gh release CLI can be used to create a release and upload assets as well. So the steps for cross-compiling, and creating a release with the assets, could all be scripted and called in this Workflow. But maybe that can be a separate issue on its own.

Yes, I would prefer to handle this as a different issue, to have the opportunity to discuss these choices with @thepetk

@thepetk
Copy link
Contributor

thepetk commented Sep 7, 2023

Also, I think it can be helpful to also add a cross-compile Make target that will build Alizer for multiple platforms. This will simplify the release.yaml workflow.

Because of the filename of the executable needs to be passed to the next step of the release (Release with Notes and Binaries), I cannot find a way to clearly simplify it (the filename will need to be computed twice or to be passed between the workflow and the build script).

I just read that the files input parameter of this Action can be a glob expression that could match all the binaries produced by the previous step. So that could be a solution, I guess..
Actually, I was even thinking that this softprops/action-gh-release action may not be needed, since the official gh release CLI can be used to create a release and upload assets as well. So the steps for cross-compiling, and creating a release with the assets, could all be scripted and called in this Workflow. But maybe that can be a separate issue on its own.

Yes, I would prefer to handle this as a different issue, to have the opportunity to discuss these choices with @thepetk

We have already a small item to fix the release.yaml devfile/api#1212
I think we can add some more improvements to this workflow and re-refine it again after we update the acceptance criteria.
cc @feloy @rm3l

@openshift-ci openshift-ci bot added the lgtm label Sep 7, 2023
Copy link
Contributor

@thepetk thepetk left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Sep 11, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: feloy, rm3l, thepetk

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@feloy feloy merged commit 2f1e8ab into devfile:main Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more commands to Alizer Makefile

3 participants