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

vere: bring your own boot sequence #544

Merged
merged 7 commits into from
Mar 8, 2024
Merged

vere: bring your own boot sequence #544

merged 7 commits into from
Mar 8, 2024

Conversation

Fang-
Copy link
Member

@Fang- Fang- commented Oct 23, 2023

Adds support for --prop-file, --prop-url and --prop-name, which let one augment the boot sequence of a ship with additional events.

Back-ports the vere changes from urbit/urbit#5470 onto current vere. See that for additional details/history. This is a mostly straightforward, copy-paste port of the changes from that original PR, with the following exceptions:

  • Boot sequence construction now happens in _pier_boot_make.
  • We don't modify the way the default boot sequence is acquired (yet).

We will want to follow up on the latter, eventually. I've left TODOs in the relevant places. Figured it might be better to be less disruptive to release processes initially. cc @pkova

The %autoprop "prop builder" that was included in urbit/urbit#5470 should still operate fine and be useful for automatically keeping certain kinds of props up to date. (Save for minimal kelvin compatibility disrepair it has fallen into due to the flow of time.)

If the curl fails or receives a non-2xx status code, it retries, backing
off a little bit, until it either succeeds, or exceeds five attempts.
Adds support for --prop-file, --prop-url and --prop-name, which let one
augment the boot sequence of a ship with additional events.

Back-ports the vere changes from urbit/urbit#5470 onto current vere. See
that for additional details/history. This is a mostly straightforward,
copy-paste port of the changes from that original PR, with the following
exceptions:
- Boot sequence construction now happens in _pier_boot_make.
- We don't modify the way the default boot sequence is acquired (yet).

We will want to follow up on the latter, eventually.

The %autoprop "prop builder" that was included in #5470 should still
operate fine and be useful for automating keeping certain kinds of props
up to date. (Save for minimal kelvin compatability disrepair it has
fallen into due to the flow of time.)
@Fang- Fang- added the feature New feature or feature request label Oct 23, 2023
@Fang- Fang- requested a review from joemfb October 23, 2023 20:34
@Fang- Fang- requested a review from a team as a code owner October 23, 2023 20:34
pkg/vere/king.c Outdated
Comment on lines 187 to 188
//TODO should maybe respect ops_u.url_c
"https://bootstrap.urbit.org/props/" URBIT_VERSION "/%s.jam",
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this might be correct in the long run, but not right now due to interactions between -B and -u, and the fact that we hardcode bootstrap.urbit.org in a handful of other places as well.

Copy link
Member

Choose a reason for hiding this comment

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

This should use snprintf to check against stack overflow. And you should bump the max size to 256.

pkg/vere/main.c Outdated Show resolved Hide resolved
pkg/vere/pier.c Outdated Show resolved Hide resolved
Copy link
Member

@joemfb joemfb left a comment

Choose a reason for hiding this comment

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

time is a flat circle.

thanks for reviving/restaging this, a couple nits:

pkg/vere/king.c Outdated
Comment on lines 187 to 188
//TODO should maybe respect ops_u.url_c
"https://bootstrap.urbit.org/props/" URBIT_VERSION "/%s.jam",
Copy link
Member

Choose a reason for hiding this comment

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

This should use snprintf to check against stack overflow. And you should bump the max size to 256.

pkg/vere/pier.c Outdated Show resolved Hide resolved
pkg/vere/main.c Outdated Show resolved Hide resolved
@Fang- Fang- requested a review from joemfb January 16, 2024 20:39
Copy link
Member

@joemfb joemfb left a comment

Choose a reason for hiding this comment

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

this will do

@pkova pkova merged commit cd46cb7 into develop Mar 8, 2024
5 checks passed
@pkova pkova deleted the m/bring-your-own-boot branch March 8, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants