git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] ci/github: add missing 'CI_JOB_IMAGE' env variable

From
Patrick Steinhardt <ps@pks.im>
Date
Mar 20, 2025, 07:10 UTC
Message-ID
<Z9u_UlxCDPFlOubZ@pks.im>
In-Reply-To
<20250319163328.525284-1-karthik.188@gmail.com>
On Wed, Mar 19, 2025 at 05:33:28PM +0100, Karthik Nayak wrote:
Show 14 quoted lines
> The CI setups of GitLab and GitHub use a common dependency management
> script 'ci/install-dependencies.sh'. The script install the necessary
> packages based on a combination of the "$distro" and "$jobname" env
> variables.
> 
> The "$distro" variable is derived from the "CI_JOB_IMAGE" env variable
> set by the CI configs. In the GitHub CI config, some of the jobs are
> missing this variable. For the 'Documentation' job which depends on
> 'meson' being installed, this raises an error since the 'meson'
> dependency is never installed.
> 
> Fix this by adding the 'CI_JOB_IMAGE' variable to all missing jobs. We
> don't add it the windows jobs, since they manager their dependency as
> part of the CI config and no further dependency management is needed.

Makes sense. We didn't install Meson beforehand because we accidentally didn't install any of the base dependencies. This is fixed by setting the expected environment variable, and that already pulls in Meson for us.

I think this fix is preferable over Junio's fix that manually installs Meson as it fixes the root cause and because it's more robust going forward in case we ever happen to pull in any additional dependencies.

Thanks!
Patrick
Previous: Karthik NayakNext: Junio C Hamano
Message 11 of 15 in “What's cooking in git.git (Mar 2025, #04; Fri, 14)”
  1. Junio C HamanoMar 14, 2025
  2. Jeff KingMar 14, 2025
  3. Jeff KingMar 14, 2025
  4. Junio C HamanoMar 15, 2025
  5. install meson for Documentation jobJunio C Hamano, Mar 18, 2025
  6. Karthik NayakMar 18, 2025
  7. Junio C HamanoMar 18, 2025
  8. Patrick SteinhardtMar 19, 2025
  9. Karthik NayakMar 19, 2025
  10. ci/github: add missing 'CI_JOB_IMAGE' env variableKarthik Nayak, Mar 19, 2025
  11. Patrick SteinhardtMar 20, 2025
  12. Junio C HamanoMar 21, 2025
  13. Junio C HamanoMar 20, 2025
  14. en/diff-rename-follow-fix (Was: Re: What's cooking in git.git (Mar 2025, #04; Fri, 14))Elijah Newren, Mar 15, 2025
  15. Junio C HamanoMar 15, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.