-
Notifications
You must be signed in to change notification settings - Fork 74
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
refactor(daemon): Synchronize host makeUnconfined()
#2124
Conversation
65f7bfa
to
63a7d1c
Compare
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.
looks a little complicated, but idk how to make it simpler yet
6516b25
to
9fe0d6c
Compare
@kumavis I hope to simplify things as the synchronization effort continues, but the simplest way of doing things may not reveal itself until late in that process. |
63a7d1c
to
5d356f7
Compare
5d356f7
to
aab0a1a
Compare
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.
With a nit.
// Regression test for: https://github.com/endojs/endo/issues/2021 | ||
test('eval-mediated worker name', async t => { | ||
// Regression test for https://github.com/endojs/endo/issues/2021 | ||
test.failing('eval-mediated worker name', async t => { |
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.
So, we have whacked a mole?
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.
I am consulting my exterminator as to our next steps.
Synchronizes the host's `makeUnconfined()` per #2086. Refactoring `daemon.js` in support of this goal fixed one bug while revealing another. In particular, #2074 is progressed by enabling indirect cancellation of caplets via their workers. The issue is not resolved since indirect cancellation of caplets via their caplet dependencies still does not work as intended. A new, failing regression test has been added for this specific case. The revealed bug is #2021, which we believed to be fixed by #2092. Rather than fixing the bug, that PR concealed it by always creating a new incarnation of `eval` formula workers, even if they already existed. The regression test for #2021 has been marked as failing, and we will have to find a different solution for it.
aab0a1a
to
a239f10
Compare
* Helper for callers of `incarnateNumberedGuest`. | ||
* @param {string} hostFormulaIdentifier - The formula identifier of the host. | ||
*/ | ||
const incarnateGuestDependencies = async hostFormulaIdentifier => |
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.
Should be provideGuestDependencies
. Doesn’t create formulas. Renaming formulate*
functions should make that distinction clearer.
Progresses: #2086
Synchronizes the host's
makeUnconfined()
per #2086. Refactoringdaemon.js
in support of this goal fixed one bug while revealing another.In particular, #2074 is progressed by enabling indirect cancellation of caplets via their workers. The issue is not resolved since indirect cancellation of caplets via their caplet dependencies still does not work as intended. A new, failing regression test has been added for this specific case.
The revealed bug is #2021, which we believed to be fixed by #2092. Rather than fixing the bug, that PR concealed it by always creating a new incarnation of
eval
formula workers, even if they already existed. The regression test for #2021 has been marked as failing, and we will have to find a different solution for it.