-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rmdir-support
- Loading branch information
Showing
9 changed files
with
177 additions
and
199 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Fixed fs policy E2E test. |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Pinned `cargo-chef` version to `0.1.68` in the dockerfiles. |
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 |
---|---|---|
|
@@ -8,7 +8,8 @@ RUN ./platform.sh | |
# this takes around 1 minute since libgit2 is slow https://github.com/rust-lang/cargo/issues/9167 | ||
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
|
||
RUN cargo install cargo-chef | ||
# cargo-chef 0.1.69 breaks the build | ||
RUN cargo install [email protected] | ||
|
||
FROM chef AS planner | ||
|
||
|
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 |
---|---|---|
|
@@ -8,7 +8,8 @@ RUN ./platform.sh | |
# this takes around 1 minute since libgit2 is slow https://github.com/rust-lang/cargo/issues/9167 | ||
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
|
||
RUN cargo install cargo-chef | ||
# cargo-chef 0.1.69 breaks the build | ||
RUN cargo install [email protected] | ||
|
||
FROM chef AS planner | ||
|
||
|
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,54 +1,19 @@ | ||
import fs from 'fs'; | ||
|
||
fs.open("/app/file.local", (fail, fd) => { | ||
console.log(`open file.local ${fd}`); | ||
if (fd) { | ||
console.log(`SUCCESS /app/file.local ${fd}`); | ||
} | ||
|
||
if (fail) { | ||
console.error(`FAIL /app/file.local ${fail}`); | ||
} | ||
}); | ||
|
||
fs.open("/app/file.not-found", (fail, fd) => { | ||
console.log(`open file.not-found ${fd}`); | ||
if (fd) { | ||
console.log(`SUCCESS /app/file.not-found ${fd}`); | ||
} | ||
|
||
if (fail) { | ||
console.error(`FAIL /app/file.not-found ${fail}`); | ||
} | ||
}); | ||
|
||
fs.open("/app/file.read-only", (fail, fd) => { | ||
if (fd) { | ||
console.log(`SUCCESS /app/file.read-only ${fd}`); | ||
} | ||
|
||
if (fail) { | ||
console.error(`FAIL /app/file.read-only ${fail}`); | ||
} | ||
}); | ||
|
||
fs.open("/app/file.read-only", "r+", (fail, fd) => { | ||
if (fd) { | ||
console.log(`SUCCESS r+ /app/file.read-only ${fd}`); | ||
} | ||
|
||
if (fail) { | ||
console.error(`FAIL r+ /app/file.read-only ${fail}`); | ||
} | ||
}); | ||
|
||
fs.open("/app/file.read-write", "r+", (fail, fd) => { | ||
if (fd) { | ||
console.log(`SUCCESS /app/file.read-write ${fd}`); | ||
} | ||
|
||
if (fail) { | ||
console.error(`FAIL /app/file.read-write ${fail}`); | ||
} | ||
}); | ||
|
||
function test_open(path, mode) { | ||
fs.open(path, mode, (fail, fd) => { | ||
if (fd) { | ||
console.log(`SUCCESS ${mode} ${path} ${fd}`); | ||
} | ||
|
||
if (fail) { | ||
console.log(`FAIL ${mode} ${path} ${fail}`); | ||
} | ||
}); | ||
} | ||
|
||
test_open("/app/file.local", "r"); | ||
test_open("/app/file.not-found", "r"); | ||
test_open("/app/file.read-only", "r"); | ||
test_open("/app/file.read-only", "r+"); | ||
test_open("/app/file.read-write", "r+"); |
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
Oops, something went wrong.