Skip to content

fix(SwingSet): adapt to promise tagging support#8403

Merged
mergify[bot] merged 1 commit into
masterfrom
markm-adapt-to-promise-tagging-support
Sep 28, 2023
Merged

fix(SwingSet): adapt to promise tagging support#8403
mergify[bot] merged 1 commit into
masterfrom
markm-adapt-to-promise-tagging-support

Conversation

@erights

@erights erights commented Sep 28, 2023

Copy link
Copy Markdown
Member

The current agoric-sdk depends on an endo before endojs/endo#1785 ,

At #8312 , @FUDCo made use of the previous kludge for tagging passable promises. But this kludge no longer works after endojs/endo#1785.

Therefore, agoric-sdk would break if upgraded to depend on current endo. with the CI errors shown at #7937 .

This PR alters the relevant code that @FUDCo added in #8312 so that it checks which technique works, and then use only that one. The CI on this PR checks that this change works in the current agoric-sdk, which currently depends on an endo before endojs/endo#1785 . This same change is also incorporated and tested by #8340 , which is like #7937 but with some fixes needed to work with the current endo. Its CI is not yet clean, but the errors from #7937 due to endojs/endo#1785 seems to have gone away.

Reviewers, in the github diff view, try both "show whitespace" and "hide whitespace" because they adapt to the moved lines in opposite ways.

@FUDCo FUDCo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems fine, albeit unavoidably ugly. I've got a colliding PR in flight which moves the kmarshal.js file to a different package, so I'm sure hoping Git's merge/rebase logic does the right thing!

Comment thread packages/SwingSet/src/lib/kmarshal.js Outdated
Comment thread packages/SwingSet/src/lib/kmarshal.js
@erights
erights force-pushed the markm-adapt-to-promise-tagging-support branch from 7d941ee to 630d203 Compare September 28, 2023 21:09
@erights erights added the automerge:squash Automatically squash merge label Sep 28, 2023
@erights
erights force-pushed the markm-adapt-to-promise-tagging-support branch from 630d203 to 2e9d97d Compare September 28, 2023 21:32
@mergify
mergify Bot merged commit af6e3fd into master Sep 28, 2023
@mergify
mergify Bot deleted the markm-adapt-to-promise-tagging-support branch September 28, 2023 22:12
anilhelvaci pushed a commit to Jorge-Lopes/agoric-sdk that referenced this pull request Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge:squash Automatically squash merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants