Skip to content

validation: enforce TensorBoard fields are set together#620

Draft
kmontemayor2-sc wants to merge 2 commits intomainfrom
kmonte/tb-validation
Draft

validation: enforce TensorBoard fields are set together#620
kmontemayor2-sc wants to merge 2 commits intomainfrom
kmonte/tb-validation

Conversation

@kmontemayor2-sc
Copy link
Copy Markdown
Collaborator

Adds check_vertex_ai_trainer_tensorboard_compatibility to the
ConfigPopulator/DataPreprocessor/SubgraphSampler/SplitGenerator/Trainer
start-points. Rule:

  • tensorboard_resource_name and tensorboard_experiment_name on
    VertexAiResourceConfig (or compute_pool of the graph-store
    variant) must both be set or both unset. Setting only one produces
    no observable behavior — the chief-rank uploader needs both.
  • tensorboard_experiment_name must satisfy the Vertex AI Experiment
    ID regex (lowercase letters, digits, hyphens; max 128 chars).
  • GbmlConfig.trainer_config.should_log_to_tensorboard=true requires
    both fields to be set.

Validation fires before code reads the new proto fields, so existing
configs (which set neither field) pass without change.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

kmontemayor and others added 2 commits May 6, 2026 18:48
Adds two optional fields on ``VertexAiResourceConfig`` for opting into
Vertex AI TensorBoard. ``tensorboard_resource_name`` points at an
existing ``Tensorboard`` resource; ``tensorboard_experiment_name`` is
the user-chosen ``TensorboardExperiment`` ID under that resource —
multiple jobs sharing this name surface as comparable runs on the same
TB page.

The fields must be set together (or both unset). The validation rule is
not enforced yet (lands in a follow-up PR); this commit only adds the
proto fields and regenerates Python + Scala stubs.

Also expands the docstring on ``TrainedModelMetadata.tensorboard_logs_uri``
to document its mapping to ``AIP_TENSORBOARD_LOG_DIR`` via
``CustomJobSpec.baseOutputDirectory``.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds ``check_vertex_ai_trainer_tensorboard_compatibility`` to the
ConfigPopulator/DataPreprocessor/SubgraphSampler/SplitGenerator/Trainer
start-points. Rule:

- ``tensorboard_resource_name`` and ``tensorboard_experiment_name`` on
  ``VertexAiResourceConfig`` (or ``compute_pool`` of the graph-store
  variant) must both be set or both unset. Setting only one produces
  no observable behavior — the chief-rank uploader needs both.
- ``tensorboard_experiment_name`` must satisfy the Vertex AI Experiment
  ID regex (lowercase letters, digits, hyphens; max 128 chars).
- ``GbmlConfig.trainer_config.should_log_to_tensorboard=true`` requires
  both fields to be set.

Validation fires before code reads the new proto fields, so existing
configs (which set neither field) pass without change.

Co-Authored-By: Claude Opus 4.7 (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 May 6, 2026

GiGL Automation

@ 18:59:03UTC : 🔄 Python Unit Test started.

@ 20:10:07UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

GiGL Automation

@ 18:59:04UTC : 🔄 Integration Test started.

@ 20:20:30UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

GiGL Automation

@ 18:59:04UTC : 🔄 C++ Unit Test started.

@ 19:01:27UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

GiGL Automation

@ 18:59:10UTC : 🔄 Lint Test started.

@ 19:07:23UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

GiGL Automation

@ 18:59:10UTC : 🔄 Scala Unit Test started.

@ 19:08:11UTC : ✅ Workflow completed successfully.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

GiGL Automation

@ 18:59:10UTC : 🔄 E2E Test started.

@ 20:22:58UTC : ✅ 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.

1 participant