-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* mounting a volume to buildkit * squash last 12 commits * remove toml * remove volume * retrigger tests * making import export dynamic * set the startup flag * Add tests support for startup & refactoring * testing * testing * testing * testing * testing * testing * testing * testing * testing * testing * was sh all along * fix startup string to bool * removing ts for testing as building it alone fails * runtime error while building c * now go failed * rust failed * just py,rb,node * just py,rb,node * trigger all the tests * trigger all the tests * trigger all the tests * trigger all the tests * trigger all the tests * trigger all the tests startup with cli, i am soooo dumb * i think this might work now * final testing * retrigger * what happens if i trigger tests with only runtime build * retrigger with backtrace added * add diff registry for run time/dev to isolate and retrigger tests with both open * disable backtrace like before, this test should fail * triggering only the startup tests with backtrace enabled * enable backtrace,both issues resolved, very demure, very mindful * cleanup and enable all tests * only add startup-rootless and startup-client as tests * Seperated tests
- Loading branch information
Showing
11 changed files
with
167 additions
and
39 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 |
---|---|---|
|
@@ -34,4 +34,4 @@ jobs: | |
run: ./test/test.sh rootless | ||
|
||
- name: Test Daemon | ||
run: ./test/test.sh client | ||
run: ./test/test.sh client |
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,38 @@ | ||
name: Build and Test MetaCall Builder for startup flow | ||
# Seperate because the space is limited in the github actions | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "v*.*.*" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# TODO: | ||
# - name: Lint | ||
# run: docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.59.1 golangci-lint run -v --enable-all | ||
|
||
- name: Build | ||
run: docker compose build | ||
|
||
- name: Test Binary | ||
env: | ||
BUILDER_ARGS: "runtime rb" | ||
run: docker compose up --exit-code-from binary binary | ||
|
||
- name: Test Startup-Rootless | ||
run: ./test/test.sh rootless startup | ||
|
||
- name: Test Startup-Daemon | ||
run: ./test/test.sh client startup |
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
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
File renamed without changes.
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,20 @@ | ||
#!/bin/sh\n\ | ||
export BUILDKITD_FLAGS=--oci-worker-no-process-sandbox\n\ | ||
|
||
if [ -z "$EXPORT_REGISTRY" ]; then | ||
EXPORT_REGISTRY="registry:5000/metacall/builder_cache" | ||
fi | ||
|
||
if [ -z "$IMPORT_REGISTRY" ]; then | ||
IMPORT_REGISTRY="registry:5000/metacall/builder_startup" | ||
fi | ||
|
||
if [ -z "$BUILDER_BINARY" ]; then | ||
BUILDER_BINARY="/home/user/builder" | ||
fi | ||
|
||
|
||
${BUILDER_BINARY} $@ | buildctl-daemonless.sh build \ | ||
--export-cache type=registry,ref=${EXPORT_REGISTRY},registry.insecure=true \ | ||
--import-cache type=registry,ref=${IMPORT_REGISTRY},registry.insecure=true \ | ||
--output type=image,name=registry:5000/metacall/builder_output,push=true,registry.insecure=true\n'\ |
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