Skip to content

[iris] Fix get_job_info crash on constraint JSON with unknown fields#4169

Closed
claude[bot] wants to merge 1 commit intomainfrom
agent/20260326-fix-4167
Closed

[iris] Fix get_job_info crash on constraint JSON with unknown fields#4169
claude[bot] wants to merge 1 commit intomainfrom
agent/20260326-fix-4167

Conversation

@claude
Copy link
Copy Markdown
Contributor

@claude claude Bot commented Mar 26, 2026

Add ignore_unknown_fields=True to the json_format.ParseDict call in get_job_info() so that IRIS_JOB_CONSTRAINTS JSON containing fields from newer proto schemas (e.g. the mode field added to Constraint) does not crash child jobs running older cluster_pb2. Unknown fields now silently default to proto zero-values. Adds a regression test exercising unknown field tolerance.

Fixes #4167

Add ignore_unknown_fields=True to json_format.ParseDict in get_job_info()
so constraint JSON with fields from newer proto schemas (e.g. mode) does
not crash child jobs running older cluster_pb2. Adds regression test.

Fixes #4167

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@claude claude Bot added the agent-generated Created by automation/agent label Mar 26, 2026
@rjpower
Copy link
Copy Markdown
Collaborator

rjpower commented Mar 26, 2026

@dlwh

This will silently use an incorrect constraint, as parent constraints are propagated to their children by default. Should we use a better error message and ask users to update their branch instead? The mode was introduced a week ago so this would be running on at least that stale of a branch.

@rjpower rjpower closed this Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-generated Created by automation/agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iris] get_job_info crashes on constraint JSON with mode field

1 participant