Repository navigation
feat(ci,tools): add verifiers and matrix entries for 7 unblocked nightly examples - #1057
Merged
Merged
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces several new nightly test verification scripts for XMC workloads (including chart artifacts, init containers, metrics dashboards, metrics autologging, multi-pod, and sidecars), registers them in the Bazel build file, and implements artifact validation logic in xmc_entities_validator.py with accompanying unit tests. The review feedback highlights a critical issue in metrics_dashboard_job_verify.py where a non-existent function validate_dashboard is called and silently caught, as well as potential false positives in init_container_job_verify.py and sidecar_verify.py where empty work unit lists would silently bypass topology assertions instead of raising an error.
janzak-dev
force-pushed
the
feat/nightly-unblocked-examples-suite
branch
from
October 2, 2026 10:43
122ff52 to
cf2b6aa
Compare
janzak-dev
had a problem deploying
to
xmc-nightly
October 2, 2026 11:54 — with
GitHub Actions
Failure
janzak-dev
had a problem deploying
to
xmc-nightly
October 2, 2026 11:54 — with
GitHub Actions
Failure
janzak-dev
had a problem deploying
to
xmc-nightly
October 2, 2026 11:54 — with
GitHub Actions
Failure
janzak-dev
changed the base branch from
main
to
refactor/nightly-common-verifier-extraction
October 5, 2026 09:15
…d_chart_data and add unit tests
…nblocked-examples-suite
- Add public validate_work_unit_jobsets in xmc_entities_validator and delegate common.assert_work_unit_jobsets to it. - Pin WorkUnit count in verify_standard_workload to len(workers) so NUM_WORK_UNITS in the environment does not inflate single-unit checks. - Drop unused strict_required parameter and XMANAGER_UI_URL strictness inference from assert_dashboard_chart_data. - Unpack tuple-packed assignments, restore timeout duration in dashboard hydration error message, and restore WorkUnits/Workers/Timeout/Title fields in banner and summary output. - Document follow-up responsibility split TODO in common.py docstring and expand stub-boundary and strictness unit tests.
…nightly-unblocked-examples-suite # Conflicts: # tools/nightly_tests/common.py # tools/nightly_tests/common_test.py # tools/nightly_tests/xmc_entities_validator_test.py
andrzejfudro
previously approved these changes
Oct 5, 2026
… verify_standard_workload
…nightly-unblocked-examples-suite
andrzejfudro
previously approved these changes
Oct 6, 2026
Base automatically changed from
refactor/nightly-common-verifier-extraction
to
main
October 6, 2026 09:30
andrzejfudro
approved these changes
Oct 6, 2026
This was referenced Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds nightly E2E verifiers (
tools/nightly_tests/*_verify.py), container image build steps, and workflow matrix entries (.github/workflows/nightly-examples-e2e.yml) for the 6 newly unblocked example workloads (init_container_job,sidecar,multipod_job,metrics_job,chart_artifact_job,metrics_dashboard_job), bringing the active nightly E2E suite to 8 workloads (17 files changed, 1,051 insertions(+), 36 deletions(-)).Stack Context (GitHub Stack #1065)
verify_standard_workload,assert_experiment,assert_work_units,assert_work_unit_jobsets,assert_clickhouse_metrics,assert_dashboard_chart_data) and refactorssimple_job_verify.pyandclickhouse_metrics_job_verify.py.validate_artifacts/assert_work_unit_artifacts), adds the 6 new unblocked example verifiers and CI matrix entries, deduplicates cluster port-forwards into a singleStart Service Port-Forwardsstep, and fixesmetrics_dashboard_jobandxdashauth forwarding.managed_xprof_artifact_job,per_job_node_selector,pathways_job,xdash_dashboard).Motivation & Context
Previously, only 2 examples (
simple_jobandclickhouse_metrics_job) ran in the nightly E2E pipeline. Expanding the nightly matrix to the 6 additional CPU/ClickHouse-ready examples exposed four real issues in the examples and SDK:examples/metrics_dashboard_job/launch.pywidType Bug: Line 258 parsedwid = str(...)instead ofint(...), causingChartBuilder.for_experiment(xid=xid, wid=wid)(sdks/python/xdash/builders.py:230) to fail withTypeError: '<=' not supported between instances of 'str' and 'int'.sdks/python/xdash/client.pyMissing OIDC Bearer Metadata:DashboardClientdid not attachXMC_AUTH_TOKENto outgoing gRPC calls, causing the Dashboard Service OIDC interceptor (cmd/dashboard_service/main.go) to reject requests withUNAUTHENTICATED: missing metadata in context.examples/metrics_job/Dockerfile&examples/metrics_dashboard_job/DockerfileMissing Proto Package in Wheel:sdks/python/xmc/metrics/_writer.pyimportsfrom api.protos.metrics import metrics_pb2, which lives at the repo root (api/protos/metrics/), outsidesdks/python/xmc/. Without symlinking/build/apiinto/build/sdks/python/apiprior topip install,setuptools.find_packages()omittedapi.protos.metricsfrom the built wheel, causing workers to crash at startup withModuleNotFoundError: No module named 'api'(unlikeexamples/clickhouse_metrics_job/Dockerfileandexamples/chart_artifact_job/Dockerfile, which already had this symlink).ChartArtifactProvisioning: ESS createsChartArtifactrecords withstatus = PROVISIONING(1) before the background observer creates the backing chart and transitionsstatustoSUCCESS(2).Key Changes
tools/nightly_tests/xmc_entities_validator.py,tools/nightly_tests/common.py):validate_artifacts(andcommon.assert_work_unit_artifacts, plusexpected_artifact_types/expected_metric_namesoncommon.verify_standard_workload) to poll ESSListArtifactsuntilChartArtifactasynchronous provisioning transitions fromPROVISIONING(status=1) toSUCCESS(status=2), and verifies non-emptyUrlArtifact.url.tools/nightly_tests/*_verify.py,tools/nightly_tests/BUILD.bazel):init_container_job_verify.py: Verifies JobSet init container (setup-workspace) and primary container (main-worker).sidecar_verify.py: Verifies init container (init-setup), sidecar (sidecar-service), and primary container (primary-worker).multipod_job_verify.py: Verifies multi-job JobSet topology (counter-workerswith 4 replicas andsecondary-counterwith 1 replica).metrics_job_verify.py: Verifies 4-job JobSet topology and ClickHouse ingestion of all 4 autologged/manual metric series (manual/loss,loss,keras_cb/loss,pl/loss_epoch,chart_artifact_job_verify.py: VerifiesChartArtifact&UrlArtifact,chart_artifact_x{xid}_w1).metrics_dashboard_job_verify.py: VerifiesTraining ProgressandThroughput) onexp_{xid}_overview.metrics_dashboard_job&xdashgRPC Auth:examples/metrics_dashboard_job/launch.py: Fixed 1-linewid = int(...)bug on line 258.sdks/python/xdash/client.py&sdks/python/xdash/client_test.py: ForwardXMC_AUTH_TOKENas aBearertoken in gRPC metadata when set in the environment..github/workflows/nightly-examples-e2e.yml):localhost:50051) and ClickHouse HTTP (localhost:8123) port-forward blocks into a singleStart Service Port-Forwardsstep (start_port_forward()) that runs once before bothLaunch Example WorkloadandRun Workload Verification Assertions, with automatic cleanup (pkill -f "kubectl port-forward") inPublish Step Summary & Save Result.expected_queue: "${{ inputs.queue_name || 'cpu-queue' }}"andrequires_clickhouse: truefor all metrics workloads.examples/metrics_job/Dockerfile,examples/metrics_dashboard_job/Dockerfile):ln -sf /build/api /build/sdks/python/apibeforepip installsoapi.protos.metrics.metrics_pb2is bundled into the wheel, verified by a documented build-time smoke test (RUN python3 -c "import xmc; from api.protos.metrics import metrics_pb2; metrics_pb2.Metric()").Assumptions
xmc-metrics) and Dashboard Service (xmc), which are reached from the ARC runner viakubectl port-forwardinStart Service Port-Forwards.Verification & Testing
bazel test //tools/nightly_tests/... //sdks/python/xdash/...(all test targets pass)../.githooks/pre-commitpassed cleanly.Related Issues / Bugs
TAG=agy
CONV=acf882de-1561-404c-ba2e-ae0940451165