Skip to content

fixed Composer parser bugs - #873

Merged
kyasbal merged 1 commit into
GoogleCloudPlatform:mainfrom
kyasbal:push-lppkwxszlvto
Aug 6, 2026
Merged

fixed Composer parser bugs#873
kyasbal merged 1 commit into
GoogleCloudPlatform:mainfrom
kyasbal:push-lppkwxszlvto

Conversation

@kyasbal

@kyasbal kyasbal commented Aug 6, 2026

Copy link
Copy Markdown
Member

Airflow log parser wrongly returned STATUS_NONE for some particular logs.
This PR fixes the issues and adding tests.

@kyasbal kyasbal added the bug Something isn't working label Aug 6, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the ComposerWorkerTaskInstanceFieldSetReader by introducing a helper struct workerTaskInstanceInfo and helper methods readLabels and parsePayload to parse and merge task instance information from labels and text payloads. It also adds corresponding unit tests. The review feedback points out that parsePayload silently ignores errors from stringToTiState using blank identifiers. To prevent silent failures, it is recommended to propagate these errors by updating parsePayload to return an error, handling it in Read, and updating the test cases accordingly.

Comment thread pkg/task/inspection/googlecloudclustercomposer/contract/fieldset.go Outdated
Comment thread pkg/task/inspection/googlecloudclustercomposer/contract/fieldset.go Outdated
Comment thread pkg/task/inspection/googlecloudclustercomposer/contract/fieldset_test.go Outdated
@kyasbal
kyasbal force-pushed the push-lppkwxszlvto branch from a4a8d73 to 37e691b Compare August 6, 2026 08:00
@kyasbal
kyasbal marked this pull request as ready for review August 6, 2026 08:08
@kyasbal
kyasbal merged commit 1bbd717 into GoogleCloudPlatform:main Aug 6, 2026
16 checks passed
@kyasbal
kyasbal deleted the push-lppkwxszlvto branch August 6, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant