Skip to content
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

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

RishhiB
Copy link
Contributor

@RishhiB RishhiB commented Jan 3, 2025

eslint(container-runtime): Prefix container-runtime before enabling no-unchecked-record-access
AB#25378

@github-actions github-actions bot added base: main PRs targeted against main branch area: runtime Runtime related issues labels Jan 3, 2025
@RishhiB RishhiB marked this pull request as ready for review January 3, 2025 16:57
@Copilot Copilot bot review requested due to automatic review settings January 3, 2025 16:57

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);
Copy link
Member

@markfields markfields left a comment

Choose a reason for hiding this comment

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

LGTM

@RishhiB RishhiB merged commit 5befe5d into microsoft:main Jan 6, 2025
28 checks passed
@RishhiB RishhiB deleted the preFixContainerRuntime branch January 6, 2025 20:57
@@ -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);
Copy link
Contributor

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" */);
Copy link
Contributor

@tyler-cai-microsoft tyler-cai-microsoft Jan 6, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: runtime Runtime related issues base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants