Repository navigation
Conversation
Signed-off-by: mnkj0021 <98058999+mnkj0021@users.noreply.github.com>
|
| assignment = RM_ASSIGN_RE.search(line) | ||
| if assignment: | ||
| host = assignment.group("host") | ||
| assigned_node = evidence.nodes.setdefault(host, Node(host)) |
There was a problem hiding this comment.
Could we keep the host in the node inventory without treating this placeholder as registration evidence? With assignment maxima and a node-class map, this now produces a final cost even though no node registration was logged.
There was a problem hiding this comment.
Addressed on the current head b0920a5. RM-assignment placeholders remain in the node inventory, but final accounting now treats a used node without registration evidence as incomplete even if a node-class map makes it priceable. I added regression coverage for the mapped-but-unregistered case. Leaving this thread open for your confirmation.
| container = evidence.containers.setdefault( | ||
| candidate.container_id, candidate | ||
| ) | ||
| if container is candidate and node_id == path_node_id: |
There was a problem hiding this comment.
Could we track whether this file has reported a host instead of comparing node_id with the directory name? If the directory is worker-a, a later worker-b registration can relabel A’s container while leaving A’s capacity on it.
There was a problem hiding this comment.
Addressed on b0920a5. NodeManager parsing now tracks an explicit reported host per file rather than comparing the mutable node_id with the directory name, so a later registration for another worker cannot relabel an already-attributed container. Added a regression for that sequence. Leaving this open for your review.
| nm_hosts_by_dir.setdefault(file.parent, set()).add(node_id) | ||
| for container in unresolved_nm_containers.pop(file, []): | ||
| container.node_id = node_id | ||
| node.instance_type = _node_instance_type(line) |
There was a problem hiding this comment.
Could we preserve the existing instance type when this NM line doesn’t include one? Otherwise it clears a class already reported by the RM and can prevent pricing.
There was a problem hiding this comment.
Addressed on b0920a5. An NM registration now replaces instance_type only when that registration line actually reports one, so an RM-provided instance type is preserved otherwise. Added a focused regression. Leaving the thread open for confirmation.
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
Preserve real YARN worker identities in partial-log reports.
Validation completed before the latest human-review follow-up:
The current head is
b0920a5. The latest license-header and YARN Python workflows areaction_requiredand need NVIDIA maintainer/vetter approval, so this description does not claim a fresh CI pass on the final review-fix head.Fixes #276