Page MenuHomePhabricator

jobs-api: resolve some env variable differences between jobs-api and webservice-cli
Closed, ResolvedPublic

Description

  • In both jobs-api and webservice-cli, HOME env is set for standard images (injected by admission webhook).
  • In webservice-cli, HOME is set for buildpack images.
  • In jobs-api, NO_HOME is set for buildpack images.
  • In webservice-cli, PORT env is set for buildpack images.
  • In jobs-api we don't set PORT env at all.

I can't recall why we have some of these differences (if you know please comment so we don't go spending time chasing this investigation).

  • why were we using NO_HOME in the first place? the value of this env (a buildservice pod does not need a home env) might be an indication that we did this because it was not needed in jobs-api.
  • do webservice-cli users depend on HOME and PORT being present for buildpack images? I can't say for sure.
  • is there are problem to just setting these in jobs-api? I don't think it breaks anything, but opinions are welcome.

Event Timeline

Decision:

  • PORT env should be added.
  • HOME env for buildservice images was added because HOME was being set to / in buildservice images without it. we could leave everything like it is right now (so HOME for webservice-cli, NO_HOME for jobs-api, shouldn't be a problem)
Raymond_Ndibe claimed this task.
Raymond_Ndibe moved this task from Backlog to Done on the tools-platform-team board.
aputhin triaged this task as High priority.Jul 8 2026, 2:40 PM
aputhin moved this task from Backlog to Stable release on the Toolforge (Push-to-Deploy) board.

group_203_bot_3c0afd0d9fd9529f3b7bc7e69a4a3bce opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/1335

jobs-api: bump to 0.0.540-20260714004554-38eaaabf

aputhin moved this task from In review to Done on the tools-platform-team board.