Skip to content

Commit

Permalink
gh: bump code version and include is_app_migratable binary (#806)
Browse files Browse the repository at this point in the history
* gh: bump code version and include is_app_migratable binary

* planner: fix resource accounting when migrating messages

* faasmctl: bump to version 0.18.0

* dist-tests: simplify mpi waiting/checking so that it does not rely on the exec graph any more

* dist-tests: nits

* dist-tests: more fixture updates

* dist-tests: more fixes

* gh: bump faabric again

* dist-tests: use preloaded decision in remote execution test

* faabric: bump commit after merge to main
  • Loading branch information
csegarragonz committed Dec 5, 2023
1 parent 90be79f commit 7cec27e
Show file tree
Hide file tree
Showing 24 changed files with 157 additions and 168 deletions.
10 changes: 5 additions & 5 deletions .env
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FAASM_VERSION=0.14.0
FAASM_CLI_IMAGE=faasm.azurecr.io/cli:0.14.0
FAASM_WORKER_IMAGE=faasm.azurecr.io/worker:0.14.0
FAASM_VERSION=0.15.0
FAASM_CLI_IMAGE=faasm.azurecr.io/cli:0.15.0
FAASM_WORKER_IMAGE=faasm.azurecr.io/worker:0.15.0

FAABRIC_VERSION=0.9.0
FAABRIC_PLANNER_IMAGE=faasm.azurecr.io/planner:0.9.0
FAABRIC_VERSION=0.10.0
FAABRIC_PLANNER_IMAGE=faasm.azurecr.io/planner:0.10.0

CPP_VERSION=0.3.1
CPP_CLI_IMAGE=faasm.azurecr.io/cpp-sysroot:0.3.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
./bin/inv_wrapper.sh cluster.credentials --name ${{ env.CLUSTER_NAME }}
working-directory: ${{ github.workspace }}/experiment-base
- name: "Install faasmctl"
run: pip3 install faasmctl==0.16.0
run: pip3 install faasmctl==0.18.0
- name: "Deploy Faasm on k8s cluster"
run: faasmctl deploy.k8s --workers=4
- name: "Build, upload and run a simple CPP function"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sgx_hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: self-hosted
env:
VM_BASE_NAME: gha-sgx-hw-vm
FAASM_VERSION: 0.14.0
FAASM_VERSION: 0.15.0
steps:
- name: "Check out the experiment-base code"
uses: actions/checkout@v4
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: faasm.azurecr.io/cli:0.14.0
image: faasm.azurecr.io/cli:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: faasm.azurecr.io/cli:0.14.0
image: faasm.azurecr.io/cli:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
Expand Down Expand Up @@ -196,7 +196,7 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container:
image: faasm.azurecr.io/cli:0.14.0
image: faasm.azurecr.io/cli:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
Expand Down Expand Up @@ -224,18 +224,18 @@ jobs:
env:
HOST_TYPE: ci
container:
image: faasm.azurecr.io/cli:0.14.0
image: faasm.azurecr.io/cli:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
services:
redis:
image: faasm.azurecr.io/redis:0.14.0
image: faasm.azurecr.io/redis:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
minio:
image: faasm.azurecr.io/minio:0.14.0
image: faasm.azurecr.io/minio:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
Expand Down Expand Up @@ -330,18 +330,18 @@ jobs:
env:
HOST_TYPE: ci
container:
image: faasm.azurecr.io/cli:0.14.0
image: faasm.azurecr.io/cli:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
services:
redis:
image: faasm.azurecr.io/redis:0.14.0
image: faasm.azurecr.io/redis:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
minio:
image: faasm.azurecr.io/minio:0.14.0
image: faasm.azurecr.io/minio:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
Expand Down Expand Up @@ -434,18 +434,18 @@ jobs:
env:
HOST_TYPE: ci
container:
image: faasm.azurecr.io/cli-sgx-sim:0.14.0
image: faasm.azurecr.io/cli-sgx-sim:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
services:
redis:
image: faasm.azurecr.io/redis:0.14.0
image: faasm.azurecr.io/redis:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
minio:
image: faasm.azurecr.io/minio:0.14.0
image: faasm.azurecr.io/minio:0.15.0
credentials:
username: ${{ secrets.ACR_SERVICE_PRINCIPAL_ID }}
password: ${{ secrets.ACR_SERVICE_PRINCIPAL_PASSWORD }}
Expand Down Expand Up @@ -525,7 +525,7 @@ jobs:
env:
CONAN_CACHE_MOUNT_SOURCE: ~/.conan
FAASM_INI_FILE: ./faasm.ini
FAASM_VERSION: 0.14.0
FAASM_VERSION: 0.15.0
WASM_VM: ${{ matrix.wasm_vm }}
steps:
- uses: csegarragonz/set-compose-version-action@main
Expand All @@ -549,7 +549,7 @@ jobs:
with:
submodules: true
- name: "Install faasmctl"
run: pip3 install faasmctl==0.16.0
run: pip3 install faasmctl==0.18.0
# Cache contains architecture-specific machine code
- name: "Get CPU model name"
run: echo "CPU_MODEL=$(./bin/print_cpu.sh)" >> $GITHUB_ENV
Expand Down Expand Up @@ -593,7 +593,7 @@ jobs:
working-directory: ${{ github.workspace }}
env:
FAASM_INI_FILE: ./faasm.ini
FAASM_VERSION: 0.14.0
FAASM_VERSION: 0.15.0
PYTHON_CODEGEN: "on"
steps:
- uses: csegarragonz/set-compose-version-action@main
Expand Down Expand Up @@ -622,7 +622,7 @@ jobs:
build-type: release
if: matrix.detached == false
- name: "Install faasmctl"
run: pip3 install faasmctl==0.16.0
run: pip3 install faasmctl==0.18.0
- name: "Fetch python's CPP submodulle"
run: git submodule update --init -f third-party/cpp
working-directory: ${{ github.workspace }}/clients/python
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ Start a Faasm cluster locally using `docker compose`:

```bash
faasmctl deploy.compose

# Set the env. var with Faasm's INI file to avoid having to repeat it
export FAASM_INI_FILE=./faasm.ini
```

To compile, upload and invoke a C++ function using this local cluster you can
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.0
0.15.0
1 change: 1 addition & 0 deletions bin/workon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ VERSION_FILE=${PROJ_ROOT}/VERSION
export LOG_LEVEL=debug
export FAASM_ROOT=$(pwd)
export FAASM_VERSION=$(cat ${VERSION_FILE})
export FAASM_INI_FILE=${PROJ_ROOT}/faasm.ini

if [[ "$MODE" == "terminal" ]]; then
export FAASM_BUILD_DIR=$(pwd)/dev/native/build
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s-common/minio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
containers:
- name: minio-main
image: faasm.azurecr.io/minio:0.14.0
image: faasm.azurecr.io/minio:0.15.0
env:
- name: MINIO_ROOT_USER
value: "minio"
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s-common/planner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
containers:
- name: planner
image: faasm.azurecr.io/planner:0.9.0
image: faasm.azurecr.io/planner:0.10.0
ports:
- containerPort: 8081
env:
Expand Down
4 changes: 2 additions & 2 deletions deploy/k8s-common/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
containers:
- name: master
image: faasm.azurecr.io/redis:0.14.0
image: faasm.azurecr.io/redis:0.15.0
ports:
- containerPort: 6379

Expand All @@ -28,7 +28,7 @@ metadata:
spec:
containers:
- name: master
image: faasm.azurecr.io/redis:0.14.0
image: faasm.azurecr.io/redis:0.15.0
ports:
- containerPort: 6379

Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s-sgx/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
containers:
- name: upload
image: faasm.azurecr.io/upload:0.14.0
image: faasm.azurecr.io/upload:0.15.0
ports:
- containerPort: 8002
- containerPort: 5000
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s-sgx/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
weight: 100

containers:
- image: faasm.azurecr.io/worker-sgx:0.14.0
- image: faasm.azurecr.io/worker-sgx:0.15.0
name: faasm-worker
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s-wamr/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
containers:
- name: upload
image: faasm.azurecr.io/upload:0.14.0
image: faasm.azurecr.io/upload:0.15.0
ports:
- containerPort: 8002
- containerPort: 5000
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s-wamr/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
weight: 100

containers:
- image: faasm.azurecr.io/worker:0.14.0
- image: faasm.azurecr.io/worker:0.15.0
name: faasm-worker
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
spec:
containers:
- name: upload
image: faasm.azurecr.io/upload:0.14.0
image: faasm.azurecr.io/upload:0.15.0
ports:
- containerPort: 8002
- containerPort: 5000
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
weight: 100

containers:
- image: faasm.azurecr.io/worker:0.14.0
- image: faasm.azurecr.io/worker:0.15.0
name: faasm-worker
ports:
- containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black==22.3.0
breathe==4.32.0
docker==5.0.0
faasmctl==0.16.0
faasmctl==0.18.0
flake8==3.9.2
gunicorn==20.1.0
invoke>=2.0.0
Expand Down
3 changes: 2 additions & 1 deletion src/wasm/migration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ void doMigrationPoint(int32_t entrypointFuncWasmOffset,
->pushSnapshot(snapKey, snap);
msg.set_snapshotkey(snapKey);

// Propagate the app ID and set the _same_ message ID
// Propagate the group IDx and set the _same_ message ID
msg.set_id(call->id());
msg.set_groupidx(call->groupidx());

// If message is MPI, propagate the necessary MPI bits
Expand Down
1 change: 1 addition & 0 deletions tasks/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"codegen_shared_obj",
"func_runner",
"func_sym",
"is_app_migratable",
"local_pool_runner",
"planner_server",
"pool_runner",
Expand Down
Loading

0 comments on commit 7cec27e

Please sign in to comment.