-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework the PHD artifact store to reduce complexity and add some features: - Instead of specifying a single remote URI per downloadable artifact, have the artifact manifest specify a list of remote URI bases from which any downloadable artifact with the "remote server" source type can be obtained. - Instead of having separate tables for guest OS images and bootroms, create one table of artifacts whose kinds are distinguished by an enum. - Make the store remember whether it has previously verified the hash of an extant artifact. This substantially reduces runtime for runs that work with large disk images. - Add support for a "Propolis server" artifact type. The runner doesn't use this yet but will begin making use of this in a future PR. See #528. - Add support for Buildomat as an artifact source. Update the PHD README and default artifact file to reflect these changes. Also convert from PathBuf to camino::Utf8PathBuf in a few places to eliminate some awkward type conversions.
- Loading branch information
Showing
15 changed files
with
471 additions
and
531 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
[guest_images.alpine] | ||
guest_os_kind = "alpine" | ||
metadata.relative_local_path = "alpine.iso" | ||
metadata.expected_digest = "ba8007f74f9b54fbae3b2520da577831b4834778a498d732f091260c61aa7ca1" | ||
metadata.remote_uri = "https://oxide-omicron-build.s3.amazonaws.com/alpine.iso" | ||
remote_server_uris = ["https://oxide-omicron-build.s3.amazonaws.com"] | ||
|
||
[bootroms.ovmf] | ||
relative_local_path = "OVMF_CODE.fd" | ||
expected_digest = "29813374b58e3b77fb665f2d95cb3bab37d44fdd2c4fce2a70de9d76a3512a4f" | ||
remote_uri = "https://buildomat.eng.oxide.computer/public/file/oxidecomputer/edk2/image_debug/6d92acf0a22718dd4175d7c64dbcf7aaec3740bd/OVMF_CODE.fd" | ||
[artifacts.alpine] | ||
filename = "alpine.iso" | ||
[artifacts.alpine.kind] | ||
guest_os = "alpine" | ||
[artifacts.alpine.source.remote_server] | ||
sha256 = "ba8007f74f9b54fbae3b2520da577831b4834778a498d732f091260c61aa7ca1" | ||
|
||
[artifacts.ovmf] | ||
filename = "OVMF_CODE.fd" | ||
kind = "bootrom" | ||
[artifacts.ovmf.source.buildomat] | ||
repo = "oxidecomputer/edk2" | ||
series = "image_debug" | ||
commit = "6d92acf0a22718dd4175d7c64dbcf7aaec3740bd" | ||
sha256 = "29813374b58e3b77fb665f2d95cb3bab37d44fdd2c4fce2a70de9d76a3512a4f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.