Skip to content

Conversation

@palfrey
Copy link
Member

@palfrey palfrey commented Jan 26, 2026

Description

#2118 added logging around missing worker properties, but you still have cases where you don't know what property value should actually be set on the workers! This PR improves that.

Type of change

Please delete options that aren't relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

bazel test //... mostly.

Checklist

  • Updated documentation if needed
  • Tests added/amended
  • bazel test //... passes locally
  • PR is contained in a single commit, using git amend see some docs

This change is Reviewable

// No properties required, all workers match
return self.all_workers.clone();
}

Copy link
Member Author

Choose a reason for hiding this comment

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

These two got swapped over. In the "you have no workers case" the return value won't change, but it'll be a bit clearer as to why nothing is getting scheduled.

if full_worker_logging {
info!(
"No candidate workers due to a lack of matching {name} = {value:?}"
"No candidate workers due to a lack of matching '{name}' = {value:?}"
Copy link
Member Author

Choose a reason for hiding this comment

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

Otherwise you got things like due to a lack of key os and this more clearly delineates between the key and the message.

info!("No candidate workers due to a lack of key {name}");
info!(
"No candidate workers due to a lack of key '{name}'. Job asked for {value:?}"
);
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the main addition, as errors like No candidate workers due to a lack of key InputRootAbsolutePath are hard to fix without knowing what value the jobs are looking for.

@palfrey palfrey force-pushed the improved-missing-property-logging branch from e6cbec7 to adead3b Compare January 26, 2026 13:54
@palfrey palfrey marked this pull request as ready for review January 26, 2026 13:56
@palfrey palfrey force-pushed the improved-missing-property-logging branch from adead3b to dc4eb45 Compare January 26, 2026 13:59
@amankrx
Copy link
Collaborator

amankrx commented Jan 26, 2026

/build-image

@github-actions
Copy link

Image built and pushed!

ghcr.io/TraceMachina/nativelink:dc4eb45

@palfrey
Copy link
Member Author

palfrey commented Jan 26, 2026

/build-image nativelink-worker-init

@github-actions
Copy link

Image built and pushed!

ghcr.io/TraceMachina/nativelink-worker-init:dc4eb45

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