Skip to content

Commit

Permalink
Enable writing isolated channels by default (#6231)
Browse files Browse the repository at this point in the history
* Enable isolated channels

* Point to PR for snapshot tests

* Point to correct PR commit

* Update to latest

* Revert to PR commit

* Move to latest PR commit

* Fix gc summary tests

* Fix more tests
  • Loading branch information
Arin Taylor authored May 27, 2021
1 parent 8160549 commit ecbf0d8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/runtime/container-runtime/src/containerRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,8 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents>
&& !this.runtimeOptions.gcOptions.disableGC
);

// Default to true (disabled) until a few versions have passed.
this.disableIsolatedChannels = this.runtimeOptions.summaryOptions.disableIsolatedChannels ?? true;
// Default to false (enabled).
this.disableIsolatedChannels = this.runtimeOptions.summaryOptions.disableIsolatedChannels ?? false;

this._connected = this.context.connected;
this.chunkMap = new Map<string, string[]>(chunks);
Expand Down
2 changes: 1 addition & 1 deletion packages/test/snapshots/content
Submodule content updated 157 files
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ describeNoCompat("GC reference updates in local summary", (getTestObjectProvider
});

let dataStoreTree: ISummaryTree | undefined;
for (const [ id, summaryObject ] of Object.entries(summary.tree)) {
const channelsTree = (summary.tree[".channels"] as ISummaryTree)?.tree ?? summary.tree;
for (const [ id, summaryObject ] of Object.entries(channelsTree)) {
if (id === dataStoreId) {
assert(
summaryObject.type === SummaryType.Tree,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ describeNoCompat("Garbage Collection", (getTestObjectProvider) => {
*/
function validateDataStoreInSummary(summary: ISummaryTree, dataStoreId: string, referenced: boolean) {
let dataStoreTree: ISummaryTree | undefined;
for (const [ id, summaryObject ] of Object.entries(summary.tree)) {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const channelsTree = (summary.tree[".channels"] as ISummaryTree)?.tree ?? summary.tree;
for (const [ id, summaryObject ] of Object.entries(channelsTree)) {
if (id === dataStoreId) {
assert(
summaryObject.type === SummaryType.Tree,
Expand Down

0 comments on commit ecbf0d8

Please sign in to comment.