ci(ai): build the datahub-ai-service image on every relevant PR

Closed
NW
4d ago
+440-31

Stack. This is one PR in a series that adds a built-in MCP server to DataHub Core. It is based on na--frontend-mcp-route (the previous PR in the stack); review only its own commit. This PR changes GMS, the frontend, Docker or CI, not only the new Python packages. Everything user-facing is behind a GMS feature flag, MCP_SERVER_ENABLED, off by default (added in #21349).

Stack so far:

  1. #21332
  2. #21333
  3. #21334
  4. #21335
  5. #21336
  6. #21337
  7. #21338
  8. #21339
  9. #21340
  10. #21341
  11. #21342
  12. #21343
  13. #21344
  14. #21345
  15. #21346
  16. #21347
  17. #21348
  18. #21349
  19. #21350
  20. #21351 ← this PR
  21. #21352
  22. #21353
  23. #21435
  24. #21436
  25. #21437
  26. #21438
  27. #21439
  28. #21440
  29. #21441
  30. #21442
  31. #21443
  32. #21444
  33. #21445
  34. #21447
  35. #21501
  36. #21502
  37. #21503
  38. #21504
  39. #21505
  40. #21506
  41. #21507
  42. #21508
  43. #21509
  44. #21510
  45. #21511
  46. #21512

What this does

Adds an image job to the DataHub AI Service workflow, so a Dockerfile change
or a dependency bump that breaks the image fails in the pull request rather
than in a release build:

  • builds the image with the same Gradle task the release uses;
  • fails when it grows past a 450 MB budget (about 365 MB today);
  • checks it runs as a non-root user and ships no curl;
  • starts it with GMS unreachable and requires it to report healthy within
    30 seconds (about 6 seconds locally), since the service has to come up
    before GMS does.

Multi-arch publishing, reuse of the quickstart tag and the image scan come
with the quickstart change that puts the image in the release bake.

Testing

Checks run locally against the built image (healthy after 6 s); actionlint.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly PR Title Format)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). The MCP docs come later in the stack.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Breaking Changes. The release notes come later in the stack.

šŸ¤– Generated with Claude Code