-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eslint(container-runtime): Prefix container-runtime before enabling no-unchecked-record-access #23437
Conversation
…o-unchecked-record-access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 12 changed files in this pull request and generated no comments.
Files not reviewed (7)
- packages/runtime/container-runtime/src/blobManager/blobManagerSnapSum.ts: Evaluated as low risk
- packages/runtime/container-runtime/src/channelCollection.ts: Evaluated as low risk
- packages/runtime/container-runtime/src/containerRuntime.ts: Evaluated as low risk
- packages/runtime/container-runtime/src/gc/garbageCollection.ts: Evaluated as low risk
- packages/runtime/container-runtime/src/gc/gcConfigs.ts: Evaluated as low risk
- packages/runtime/container-runtime/src/gc/gcHelpers.ts: Evaluated as low risk
- packages/runtime/container-runtime/src/gc/gcReferenceGraphAlgorithm.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)
packages/runtime/container-runtime/src/test/gc/garbageCollection.spec.ts:1958
- Ensure defaultGCData.gcNodes[nodeA] is initialized before pushing. Add a check to initialize it if undefined.
defaultGCData.gcNodes[nodeA]?.push(nodeD);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -1951,7 +1955,7 @@ describe("Garbage Collection Tests", () => { | |||
defaultGCData.gcNodes[nodeE] = [nodeA]; | |||
|
|||
// 4. Add reference from A to D with calling addedOutboundReference | |||
defaultGCData.gcNodes[nodeA].push(nodeD); | |||
defaultGCData.gcNodes[nodeA]?.push(nodeD); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this a ?
now, that seems problematic
@@ -4170,7 +4171,7 @@ export class ContainerRuntime | |||
// Counting dataStores and handles | |||
// Because handles are unchanged dataStores in the current logic, | |||
// summarized dataStore count is total dataStore count minus handle count | |||
const dataStoreTree = summaryTree.tree[channelsTreeName]; | |||
const dataStoreTree: SummaryObject | undefined = summaryTree.tree[channelsTreeName]; | |||
|
|||
assert(dataStoreTree.type === SummaryType.Tree, 0x1fc /* "summary is not a tree" */); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this not throw? Doesn't this need to be dataStoreTree?.type
eslint(container-runtime): Prefix container-runtime before enabling no-unchecked-record-access
AB#25378