Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add minimal Makefile #2940

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

Merged
merged 1 commit into from
May 8, 2024
Merged

Conversation

stephenfin
Copy link
Contributor

Does what it says on this tin.

@github-actions github-actions bot added the semver:patch No API change label Feb 22, 2024
@coveralls
Copy link

coveralls commented Feb 22, 2024

Coverage Status

coverage: 78.32%. remained the same
when pulling dfa4bec on stephenfin:makefile
into 280727e on gophercloud:master.

Copy link
Contributor

@EmilienM EmilienM left a comment

Choose a reason for hiding this comment

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

That's a really good idea, thanks for working on this.
I've dropped some comments.
I also want @pierreprinetti's feedback on the structure (unit vs lint, what to run) etc.

I propose the desired end goals being:

  • We don't call commands directly, but rather write scripts in ./scripts.
  • Makefile targets are coherent (running the right thing for lint, for unit, etc) and consistent with our CI jobs.
  • Our CI jobs run make instead of calling scripts.

@github-actions github-actions bot added semver:patch No API change and removed semver:patch No API change labels Apr 3, 2024
@stephenfin
Copy link
Contributor Author

stephenfin commented Apr 3, 2024

That's a really good idea, thanks for working on this. I've dropped some comments. I also want @pierreprinetti's feedback on the structure (unit vs lint, what to run) etc.

I propose the desired end goals being:

Mostly agreed with one change suggested.

  • We don't call commands directly, but rather write scripts in ./scripts.

I'd prefer that we got rid of the scripts and use Makefile targets directly. The scripts encourage workarounds and hacks rather than doing things "properly" (such as writing skips for tests that need specific configuration, as fixed in #3005, or structure)

  • Makefile targets are coherent (running the right thing for lint, for unit, etc) and consistent with our CI jobs.

Agreed.

  • Our CI jobs run make instead of calling scripts.

Agreed.

@github-actions github-actions bot added semver:patch No API change and removed semver:patch No API change labels Apr 4, 2024
To quickly run linters, unit tests and potentially acceptance tests
against a local DevStack. We will eventually add golangci-lint to the
'lint' target but that's a larger piece of work that should be done
separately. We should also rework the GitHub Actions jobs to use these
targets and remove the scripts, but that requires more work on job skips
to be able to do that.

Signed-off-by: Stephen Finucane <[email protected]>
@github-actions github-actions bot added semver:patch No API change and removed semver:patch No API change labels Apr 15, 2024
@EmilienM
Copy link
Contributor

EmilienM commented May 8, 2024

Our CI jobs run make instead of calling scripts.

This wasn't addressed, what's the plan?

@stephenfin
Copy link
Contributor Author

Our CI jobs run make instead of calling scripts.

This wasn't addressed, what's the plan?

I plan to address this separately once #3005 is merged. We can't do it sooner than that as we need to manually specify skips and that's not easily possible with these targets.

@EmilienM
Copy link
Contributor

EmilienM commented May 8, 2024

@pierreprinetti you good with this?

@pierreprinetti
Copy link
Member

Nice addition, thanks

@pierreprinetti pierreprinetti merged commit ef98774 into gophercloud:master May 8, 2024
@stephenfin stephenfin deleted the makefile branch May 8, 2024 16:16
@stephenfin
Copy link
Contributor Author

I plan to address this separately once #3005 is merged. We can't do it sooner than that as we need to manually specify skips and that's not easily possible with these targets.

Started in #3005.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch No API change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants