Repository navigation
test(scale): qualify Fly filesystem exact path #883
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6b97e43
test: enforce Fly qualification safety contract
DecisionNerd b47d188
test: add disposable Fly filesystem qualification
DecisionNerd 405b512
test(storage): qualify Fly filesystem exact path
DecisionNerd 4f20292
test: bound Fly qualification arguments
DecisionNerd f51a2f9
test: satisfy Fly qualification quality gates
DecisionNerd c1e2447
fix: harden Fly qualification failure paths
DecisionNerd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .git | ||
| .venv | ||
| target | ||
| bazel-* | ||
| build | ||
| dist | ||
| node_modules | ||
| *.env | ||
| .env* | ||
| *.pem | ||
| *.key | ||
| fly-qualification-evidence.json |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| FROM rust:1.90-bookworm AS build | ||
| WORKDIR /source | ||
| COPY . . | ||
| RUN cargo build --locked --release -p graphforge-api --bin graphforge-fly-filesystem-smoke | ||
|
|
||
| FROM debian:bookworm-slim | ||
| RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates coreutils \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
| COPY --from=build /source/target/release/graphforge-fly-filesystem-smoke /usr/local/bin/graphforge-fly-filesystem-smoke | ||
| COPY containers/fly-filesystem-qualification/run-smoke.sh /usr/local/bin/run-fly-filesystem-smoke | ||
| RUN chmod 0555 /usr/local/bin/run-fly-filesystem-smoke /usr/local/bin/graphforge-fly-filesystem-smoke | ||
| ENTRYPOINT ["/usr/local/bin/run-fly-filesystem-smoke"] |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| #!/bin/sh | ||
| set -eu | ||
|
|
||
| evidence=/work/fly-qualification-evidence.json | ||
| ack=/work/controller-ack | ||
| temporary=/work/.fly-qualification-evidence.json.tmp | ||
| if [ "$(stat -c %d /work)" = "$(stat -c %d /)" ]; then | ||
| echo "qualification work root is not an attached mount" >&2 | ||
| exit 3 | ||
| fi | ||
| rm -f "$ack" "$evidence" "$temporary" | ||
| export TMPDIR=/work | ||
|
|
||
| # Budget chain: 900s probe, 930s TERM backstop plus 30s KILL grace, then a | ||
| # 300s evidence-ack wait. The controller retrieval window must cover the probe | ||
| # and grace; cleanup remains the final bounded backstop. | ||
| set +e | ||
| timeout --signal=TERM --kill-after=30s 930s \ | ||
| /usr/local/bin/graphforge-fly-filesystem-smoke \ | ||
| --work-root /work --evidence-out "$evidence" --timeout-s 900 | ||
| status=$? | ||
| set -e | ||
|
|
||
| # Keep the auto-destroy Machine available only long enough for retrieval. | ||
| remaining=300 | ||
| while [ ! -f "$ack" ] && [ "$remaining" -gt 0 ]; do | ||
| sleep 1 | ||
| remaining=$((remaining - 1)) | ||
| done | ||
| exit "$status" |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.