Skip to content

Add tests/smoke suite that runs Vertex AI tests against a fresh source image#668

Draft
kmontemayor2-sc wants to merge 6 commits into
mainfrom
kmonte/smoke-test-suite
Draft

Add tests/smoke suite that runs Vertex AI tests against a fresh source image#668
kmontemayor2-sc wants to merge 6 commits into
mainfrom
kmonte/smoke-test-suite

Conversation

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator

@kmontemayor2-sc kmontemayor2-sc commented Jun 4, 2026

Follow up #666 - would have caught this error much earlier.

Tested this with https://github.com/Snapchat/GiGL/actions/runs/26966650689, will making this a blocking test after submission.

Relocate the two non-e2e tests that launch real Vertex AI jobs (networking_test, vertex_ai_test) into a new tests/smoke/ package with its own main.py, and add a make smoke_test target that builds a fresh src-cpu image from the current source and runs them against it (via GIGL_CPU_DOCKER_URI).

This closes a source/image skew gap: make integration_test runs workers on the pinned release image, so worker-side source changes (e.g. get_graph_store_info) were only validated after a release. smoke_test rebuilds from current source so they're validated on the PR.

  • Makefile: SMOKE_TEST_CPU_IMAGE_TAG / SMOKE_TEST_CPU_IMAGE vars + smoke_test target.
  • CI: run make smoke_test in on-pr-merge's ci-integration-test, and add a /smoke_test (+ /all_test) on-demand job to on-pr-comment. Both pass an immutable per-run tag (run_id.run_attempt) so concurrent runs can't clobber it.
  • networking_test: worker runs a real _assert_graph_store_info() function (thin python -c import+call) instead of an inlined script, now that the image is rebuilt from source.
  • vertex_ai_test: the CustomJob tests run a real worker function asserting the provisioned machine's vCPU count, on the fresh image.
  • All smoke job configs set an explicit short timeout_s.
  • Document make smoke_test / tests/smoke in CLAUDE.md and README.md.

Scope of work done

Where is the documentation for this feature?: N/A

Did you add automated tests or write a test plan?

Updated Changelog.md? NO

Ready for code review?: NO

…e image

Relocate the two non-e2e tests that launch real Vertex AI jobs
(networking_test, vertex_ai_test) into a new tests/smoke/ package with its own
main.py, and add a `make smoke_test` target that builds a fresh src-cpu image
from the current source and runs them against it (via GIGL_CPU_DOCKER_URI).

This closes a source/image skew gap: `make integration_test` runs workers on
the pinned release image, so worker-side source changes (e.g. get_graph_store_info)
were only validated after a release. smoke_test rebuilds from current source so
they're validated on the PR.

- Makefile: SMOKE_TEST_CPU_IMAGE_TAG / SMOKE_TEST_CPU_IMAGE vars + smoke_test target.
- CI: run `make smoke_test` in on-pr-merge's ci-integration-test, and add a
  `/smoke_test` (+ /all_test) on-demand job to on-pr-comment. Both pass an
  immutable per-run tag (run_id.run_attempt) so concurrent runs can't clobber it.
- networking_test: worker runs a real _assert_graph_store_info() function (thin
  python -c import+call) instead of an inlined script, now that the image is
  rebuilt from source.
- vertex_ai_test: the CustomJob tests run a real worker function asserting the
  provisioned machine's vCPU count, on the fresh image.
- All smoke job configs set an explicit short timeout_s.
- Document make smoke_test / tests/smoke in CLAUDE.md and README.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator Author

/all_test

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

GiGL Automation

@ 16:52:25UTC : 🔄 C++ Unit Test started.

@ 16:54:20UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

GiGL Automation

@ 16:52:26UTC : 🔄 Integration Test started.

@ 17:43:25UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

GiGL Automation

@ 16:52:27UTC : 🔄 Lint Test started.

@ 17:00:32UTC : ❌ Workflow failed.
Please check the logs for more details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

GiGL Automation

@ 16:52:28UTC : 🔄 Python Unit Test started.

@ 17:55:27UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

GiGL Automation

@ 16:52:28UTC : 🔄 E2E Test started.

@ 18:12:45UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

GiGL Automation

@ 16:52:33UTC : 🔄 Scala Unit Test started.

@ 17:01:20UTC : ✅ Workflow completed successfully.

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.

2 participants