-
Notifications
You must be signed in to change notification settings - Fork 159
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
fix: truncated actor bundles #3485 #3488
Conversation
This comment was marked as duplicate.
This comment was marked as duplicate.
Not surprising - the uncompressed is 60MiB: #!/usr/bin/env python3
import requests
import humanize
urls = [
"https://github.com/filecoin-project/builtin-actors/releases/download/v9.0.3/builtin-actors-calibrationnet.car",
"https://github.com/filecoin-project/builtin-actors/releases/download/v10.0.0-rc.1/builtin-actors-calibrationnet.car",
"https://github.com/filecoin-project/builtin-actors/releases/download/v11.0.0-rc2/builtin-actors-calibrationnet.car",
"https://github.com/filecoin-project/builtin-actors/releases/download/v9.0.3/builtin-actors-devnet.car",
"https://github.com/filecoin-project/builtin-actors/releases/download/v10.0.0/builtin-actors-devnet.car",
"https://github.com/filecoin-project/builtin-actors/releases/download/v11.0.0/builtin-actors-devnet.car",
"https://github.com/filecoin-project/builtin-actors/releases/download/v9.0.3/builtin-actors-mainnet.car",
"https://github.com/filecoin-project/builtin-actors/releases/download/v10.0.0/builtin-actors-mainnet.car",
"https://github.com/filecoin-project/builtin-actors/releases/download/v11.0.0/builtin-actors-mainnet.car",
]
total = 0
for url in urls:
response = requests.head(url, allow_redirects=True)
response.raise_for_status()
content_length = response.headers["content-length"]
total += int(content_length)
print(humanize.naturalsize(total, binary=True))
|
284d871
to
b9b1458
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 good and way more readable.
Would be nice to have some details/comments about the car validation though.
it's not really clean why certain assumptions are enforced.
generate_protobuf_code() | ||
} | ||
|
||
fn ensure_actor_bundle_includable() -> anyhow::Result<()> { |
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.
Why don't we need this check anymore?
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.
It's covered by the asset_integrity
test now
675957d
to
4224ca3
Compare
…sets/actor_bundles.car.zst
Co-authored-by: David Himmelstrup <[email protected]>
…sets/actor_bundles.car.zst
…sets/actor_bundles.car.zst
4224ca3
to
bf66624
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.
Great!
#3485