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: simplify dev/CI and prepare for image building #140

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

robbkidd
Copy link
Member

  • overhaul ocb, jq, and yq prereqs

    • use a LinuxServer.io image for yq/jq to avoid managing a whole Python install
    • added scripts to a new ./bin directory to simplify the running of yq/jq
    • use Make to retrieve the necessary version of Collector to build upon; yq to query the version of the Collector in builder-config so that the version is declared in one place
  • something something image publish

* use a LinuxServer.io[1] image for yq/jq to avoid managing a whole
  Python install
  * added scripts to a new ./bin directory to simplify the running of
  yq/jq

* use Make to retrieve the necessary version of Collector to build upon;
  yq to query the version of the Collector in builder-config so that the
  version is declared in one place

[1] https://hub.docker.com/r/linuxserver/yq
@robbkidd robbkidd self-assigned this Sep 24, 2024
While go-yq *is* available in the CI runner, we need python-yq to
support defining functions in jq-programs and some other specific
syntax currently in use.

Update the bin/{jq|yq} wrappers to use local binaries on PATH if they
exist. In yq's case, also check that it is the python edition.
... because it didn't work, back to python-yq with a Python install.
We will need to do this in any new jobs added to get the right yq.
Doesn't work for things that run Docker-in-Docker with fancy volume
mounts, though.
* Declare that name in Makefile and builder-config
  * some more nuanced version determination in Make, too

* generate code into a directory that looks like other Go projects:
  cmd/<command name>

* add some judicious commentary to target outputs
The time of a directory is unreliable for determining need to rebuild.
maybe it works in CI?
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.

1 participant