-
-
Notifications
You must be signed in to change notification settings - Fork 32
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: allow specifying the vcpkg version + fix: fix check for apt package installs + feat: allow parallel apt-get calls #257
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1818c42
fix: allow specifying the vcpkg version
aminya 040d331
fix: fix check for apt package installs
aminya 7e559c0
fix: fix the version check for vcpkg
aminya a93caaa
fix: wait for apt lock if it is held
aminya a654826
fix: allow parallel apt calls in the llvm installer
aminya 315189b
fix: install LLVM dependencies after LLVM
aminya 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 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 |
---|---|---|
|
@@ -17,3 +17,5 @@ exe/ | |
*.log | ||
*.exe | ||
.cache/ | ||
|
||
coverage |
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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,20 +1,28 @@ | ||
import { setupTmpDir, testBin } from "../../utils/tests/test-helpers" | ||
import { cleanupTmpDir, setupTmpDir, testBin } from "../../utils/tests/test-helpers" | ||
import { setupVcpkg } from "../vcpkg" | ||
|
||
jest.setTimeout(300000) | ||
async function testVcpkg(directory: string) { | ||
const { binDir } = await setupVcpkg("", directory, "") | ||
await testBin("vcpkg", ["--version"], binDir) | ||
return binDir | ||
} | ||
|
||
describe("setup-vcpkg", () => { | ||
let directory: string | ||
beforeAll(async () => { | ||
beforeEach(async () => { | ||
directory = await setupTmpDir("vcpkg") | ||
}) | ||
|
||
it("should setup vcpkg", async () => { | ||
await testVcpkg(directory) | ||
console.log(!("true" in ["", "true"])) | ||
const { binDir } = await setupVcpkg("", directory, "") | ||
await testBin("vcpkg", ["--version"], binDir) | ||
return binDir | ||
}) | ||
|
||
it("should setup vcpkg with specific version", async () => { | ||
const { binDir } = await setupVcpkg("e590c2b30c08caf1dd8d612ec602a003f9784b7d", directory, "") | ||
await testBin("vcpkg", ["--version"], binDir) | ||
return binDir | ||
}) | ||
|
||
afterEach(async () => { | ||
await cleanupTmpDir(directory) | ||
}) | ||
}) |
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.
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.
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.
The downloaded llvm.sh script contains
add-apt-repository -y "${REPO_NAME}"
so I don't think this replacement will be done.The script also has an update afterwards which could be patch instead of adding the apt-get update.
See:
https://github.com/opencollab/llvm-jenkins.debian.net/blob/master/llvm.sh#L173-L174
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 like they added the flag recently. The code needs to be updated. Thanks for catching this.
opencollab/llvm-jenkins.debian.net@33f9c64