Skip to content

Conversation

bartoszmajsak
Copy link
Contributor

To make targets such as test or lint self-contained we can leverage Makefile target resolutions and install tools to local ./bin folder if they are not present. This way we can also ensure consistency as both CI and local dev loop will be using exact same versions.

This PR introduces Makefile.tools.mk where all project-specific tools are defined and installed on demand. Dependent .PHONY targets can simply request binary to exist.

As a consequence github actions are also simplified as make takes care of setting up tooling with right versions instead, reducing the risk of versions drift between the enviroments.

Unused composite actions has been removed:

  • .github/actions/go-test/action.yml - this is now handled as make test
  • .github/actions/push-image/action.yml was not referred across workflows. The actual push seems to be part of .github/actions/push-image/action.yml

To make targets such as `test` or `lint`  self-contained we can leverage
Makefile target resolutions and install tools to local `./bin` folder
when they are not present. This way we can also ensure consistency as
both CI and local dev loop will be using exact same versions.

This PR introduces `Makefile.tools.mk` where all project-specific tools
are defined and installed on demand. Dependent `.PHONY` targets can
simply request binary to exist.

As a consequence github actions are also simplified as `make` takes care
of setting up tooling with right versions instead, reducing the risk of
versions drift between the enviroments.

Unused composite actions has been removed:

- `.github/actions/go-test/action.yml` - this is now handled as `make
  test`
- `.github/actions/push-image/action.yml` was not referred across
  workflows. The actual push is part of
`.github/actions/push-image/action.yml`

Signed-off-by: Bartosz Majsak <[email protected]>
@irar2 irar2 requested a review from shmuelk September 18, 2025 08:05
@shmuelk
Copy link
Collaborator

shmuelk commented Sep 18, 2025

/lgtm

/approve

@github-actions github-actions bot added the lgtm label Sep 18, 2025
@shmuelk shmuelk merged commit b8eb7a4 into llm-d:main Sep 18, 2025
4 checks passed
@bartoszmajsak bartoszmajsak deleted the auto_install_tools branch September 18, 2025 11:03
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.

2 participants