-
Notifications
You must be signed in to change notification settings - Fork 537
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
Replace snapshot with summarize to get summary of the container runtime #8286
Comments
In order to remove the export interface IRuntime extends IDisposable {
/**
* Snapshots the runtime
*/
snapshot(tagMessage: string, fullTree?: boolean): Promise<ITree | null>;
} to export interface IRuntime extends IDisposable {
/**
* Snapshots the runtime
*/
snapshot?(tagMessage: string, fullTree?: boolean): Promise<ITree | null>;
} Does this seem like a good approach @ChumpChief @heliocliu @sdeshpande3 @ssimic2 ? |
ProxyRuntime is from one of the example packages that shouldn't be being consumed in the same way so I don't think that needs special consideration here. So this should follow the standard procedure for back-compat (which may involve using the optional or not depending on usage of the snapshot function?) |
It seems that between the two classes which implement |
While testing removing
I would suggest to replace this instance of |
Removing |
Actually, only |
@agarwal-navin, I noticed in your PR #4230, you mentioned that |
Yeah, it has been a long goal to remove all the We have couple of items tracking additional work for this:
The replay tool under
|
The question here again is about loader/runtime backward compatibility. If we remove this API call from the runtime, older loader (container context) won't be able to get |
These efforts don't seem blocked on loader/runtime compat. issue:
What is blocked is us removing runtime API, which is gated by above work + some wait time to flush the usage. Currently the minimum loader version that's in use seems to be 0.46 and we are regressing against 0.45+ |
Closing this issue. After further discussion with @markfields, we decided to keep |
@scottn12 Did you close the wrong issue? I don't see anything related to error type here. |
Hey @scottn12, it looks like you closed the wrong issue. |
The deprecated
snapshot
function inpackages\runtime\container-runtime\src\containerRuntime.ts
was previously used to get a summary of the container runtime. This functionality has been replaced with thesummarize
funciton.In order to remove it, the
IRuntime
interface must also be adjusted to not require an implementation of thesnapshot
function in filecommon\lib\container-definitions\src\runtime.ts
.Phases
IRuntime
interface to not requiresnapshot
snapshot
fromcontainer-runtime
The text was updated successfully, but these errors were encountered: