-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
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.)
pkg/vere/king.c
Outdated
//TODO should maybe respect ops_u.url_c | ||
"https://bootstrap.urbit.org/props/" URBIT_VERSION "/%s.jam", |
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 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.
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.
This should use snprintf to check against stack overflow. And you should bump the max size to 256.
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.
time is a flat circle.
thanks for reviving/restaging this, a couple nits:
pkg/vere/king.c
Outdated
//TODO should maybe respect ops_u.url_c | ||
"https://bootstrap.urbit.org/props/" URBIT_VERSION "/%s.jam", |
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.
This should use snprintf to check against stack overflow. And you should bump the max size to 256.
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.
this will do
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:
_pier_boot_make
.We will want to follow up on the latter, eventually. I've left
TODO
s in the relevant places. Figured it might be better to be less disruptive to release processes initially. cc @pkovaThe %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.)