From c843fd3ed554f84fd6d268c9c096a96419ec8b4e Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 11:38:08 -0800 Subject: [PATCH 01/73] Fix python issue. --- test/correspondence/correspondence.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/correspondence/correspondence.py b/test/correspondence/correspondence.py index 3034d6e7..cb02fcbc 100644 --- a/test/correspondence/correspondence.py +++ b/test/correspondence/correspondence.py @@ -46,7 +46,8 @@ def compile_chapel(test_name,test_path,chai_path): assert test_name == test_path.name chapel_test_path = test_path / f'{test_name}.chpl' test_dir = chapel_test_path.parent - os.system(f'chpl {chapel_test_path} -M {chai_path / 'lib'} -o {test_dir / test_name}') + chai_lib_path = chai_path / 'lib' + os.system(f'chpl {chapel_test_path} -M {chai_lib_path} -o {test_dir / test_name}') def run_chapel_test(test_name,test_path): From 3036cd412f7bdd71a8aaaced82d64ee06b48d9cb Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 20:40:15 -0800 Subject: [PATCH 02/73] Add custom docker image test. --- .github/actions/action.yml | 15 +++++++++++++++ .github/actions/entrypoint.sh | 5 +++++ .github/workflows/test-dockerfile.yml | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 .github/actions/action.yml create mode 100755 .github/actions/entrypoint.sh create mode 100644 .github/workflows/test-dockerfile.yml diff --git a/.github/actions/action.yml b/.github/actions/action.yml new file mode 100644 index 00000000..4110b014 --- /dev/null +++ b/.github/actions/action.yml @@ -0,0 +1,15 @@ +name: 'Hello World' +description: 'Greet someone and record the time' +inputs: + who-to-greet: # id of input + description: 'Who to greet' + required: true + default: 'World' +outputs: + time: # id of output + description: 'The time we greeted you' +runs: + using: 'docker' + image: 'Dockerfile' + args: + - ${{ inputs.who-to-greet }} \ No newline at end of file diff --git a/.github/actions/entrypoint.sh b/.github/actions/entrypoint.sh new file mode 100755 index 00000000..3fee027d --- /dev/null +++ b/.github/actions/entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/sh -l + +echo "Hello $1" +time=$(date) +echo "time=$time" >> $GITHUB_OUTPUT diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml new file mode 100644 index 00000000..e416acd1 --- /dev/null +++ b/.github/workflows/test-dockerfile.yml @@ -0,0 +1,19 @@ +on: [push] + +jobs: + hello_world_job: + runs-on: ubuntu-latest + name: A job to say hello + steps: + # To use this repository's private action, + # you must check out the repository + - name: Checkout + uses: actions/checkout@v4 + - name: Hello world action step + uses: ./.github/actions # Uses an action in the root directory + id: hello + with: + who-to-greet: 'Mona the Octocat' + # Use the output from the `hello` step + - name: Get the output time + run: echo "The time was ${{ steps.hello.outputs.time }}" \ No newline at end of file From d6285da6e6b0b0ebbea864667a11ff7af941b0e7 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 20:41:15 -0800 Subject: [PATCH 03/73] Change workflow action path pt 1. --- .github/actions/entrypoint.sh | 0 .github/workflows/test-dockerfile.yml | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 .github/actions/entrypoint.sh diff --git a/.github/actions/entrypoint.sh b/.github/actions/entrypoint.sh old mode 100755 new mode 100644 diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index e416acd1..231852ab 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Hello world action step - uses: ./.github/actions # Uses an action in the root directory + uses: .github/actions # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' From 64e80a28654018f9357eb0d1686623a5930e965f Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 20:42:42 -0800 Subject: [PATCH 04/73] Change workflow action path pt 2. --- .github/workflows/test-dockerfile.yml | 2 +- {.github/actions => actions}/action.yml | 0 {.github/actions => actions}/entrypoint.sh | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {.github/actions => actions}/action.yml (100%) rename {.github/actions => actions}/entrypoint.sh (100%) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 231852ab..b510d0b8 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Hello world action step - uses: .github/actions # Uses an action in the root directory + uses: ./actions/ # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' diff --git a/.github/actions/action.yml b/actions/action.yml similarity index 100% rename from .github/actions/action.yml rename to actions/action.yml diff --git a/.github/actions/entrypoint.sh b/actions/entrypoint.sh similarity index 100% rename from .github/actions/entrypoint.sh rename to actions/entrypoint.sh From 0cfd0179d3500ed3a6cf017751e5f68b53233cbf Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 20:43:48 -0800 Subject: [PATCH 05/73] Change workflow action path pt 3. --- .github/workflows/test-dockerfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index b510d0b8..6db5d53d 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -10,7 +10,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Hello world action step - uses: ./actions/ # Uses an action in the root directory + uses: actions/ # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' From 091c5d6a8df96ca2f007d2564bc737233886dc5a Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 20:48:44 -0800 Subject: [PATCH 06/73] Change workflow action path pt 4. --- .github/workflows/test-dockerfile.yml | 3 ++- actions/action.yml => action.yml | 0 actions/entrypoint.sh => entrypoint.sh | 0 3 files changed, 2 insertions(+), 1 deletion(-) rename actions/action.yml => action.yml (100%) rename actions/entrypoint.sh => entrypoint.sh (100%) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 6db5d53d..ae3422bd 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -9,8 +9,9 @@ jobs: # you must check out the repository - name: Checkout uses: actions/checkout@v4 + - name: Hello world action step - uses: actions/ # Uses an action in the root directory + uses: ./ # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' diff --git a/actions/action.yml b/action.yml similarity index 100% rename from actions/action.yml rename to action.yml diff --git a/actions/entrypoint.sh b/entrypoint.sh similarity index 100% rename from actions/entrypoint.sh rename to entrypoint.sh From e5fc1abdbc6153cdb27527a75a63a9636bd6867e Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 20:49:52 -0800 Subject: [PATCH 07/73] Change workflow action path pt 5. --- .github/workflows/test-dockerfile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index ae3422bd..5f74366c 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -9,9 +9,9 @@ jobs: # you must check out the repository - name: Checkout uses: actions/checkout@v4 - + - name: Hello world action step - uses: ./ # Uses an action in the root directory + uses: ./../ # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' From 5841e34f47b1afbcb0ca2d8240acfc4a9d8eb174 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 20:53:44 -0800 Subject: [PATCH 08/73] Change workflow action path pt 6. --- .github/workflows/test-dockerfile.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 5f74366c..0be5c7d4 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -1,4 +1,9 @@ -on: [push] +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + jobs: hello_world_job: @@ -15,6 +20,7 @@ jobs: id: hello with: who-to-greet: 'Mona the Octocat' + # Use the output from the `hello` step - name: Get the output time run: echo "The time was ${{ steps.hello.outputs.time }}" \ No newline at end of file From 0e70b969fff679292b63c846492cc6a4ee2bc98b Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:03:15 -0800 Subject: [PATCH 09/73] Add dockerfile to gitignore. --- .github/actions/hello-action/Dockerfile | 8 ++++++++ action.yml => .github/actions/hello-action/action.yml | 0 .../actions/hello-action/entrypoint.sh | 0 .gitignore | 1 + docker/Dockerfile | 9 +++++++++ 5 files changed, 18 insertions(+) create mode 100644 .github/actions/hello-action/Dockerfile rename action.yml => .github/actions/hello-action/action.yml (100%) rename entrypoint.sh => .github/actions/hello-action/entrypoint.sh (100%) create mode 100644 docker/Dockerfile diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile new file mode 100644 index 00000000..9761d19a --- /dev/null +++ b/.github/actions/hello-action/Dockerfile @@ -0,0 +1,8 @@ +# Container image that runs your code +FROM alpine:3.10 + +# Copies your code file from your action repository to the filesystem path `/` of the container +COPY entrypoint.sh /entrypoint.sh + +# Code file to execute when the docker container starts up (`entrypoint.sh`) +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/action.yml b/.github/actions/hello-action/action.yml similarity index 100% rename from action.yml rename to .github/actions/hello-action/action.yml diff --git a/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh similarity index 100% rename from entrypoint.sh rename to .github/actions/hello-action/entrypoint.sh diff --git a/.gitignore b/.gitignore index d9ab9e1f..628757ad 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ target/ .cls-commands.json .venv __pycache__/ +!Dockerfile \ No newline at end of file diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 00000000..168d5989 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,9 @@ +FROM chapel/chapel:latest + +# Install Python 3, pip, NumPy, Torch +RUN apt-get update \ + && apt-get install -y --no-install-recommends python3 python3-pip \ + && pip3 install --no-cache-dir numpy torch \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + From 17bd2a133be4585f0f4858bf143389aa024e250f Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:05:46 -0800 Subject: [PATCH 10/73] Change workflow action path pt 7. --- .github/actions/hello-action/Dockerfile | 7 +++++++ .github/workflows/test-dockerfile.yml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 9761d19a..36fc100e 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -1,8 +1,15 @@ # Container image that runs your code FROM alpine:3.10 + +RUN apt-get update && apt-get install -y curl + + # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + + # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 0be5c7d4..3f9c9083 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -1,3 +1,5 @@ +name: Test Docker Image Action (Hello Action) + on: push: branches: [ main ] @@ -16,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: Hello world action step - uses: ./../ # Uses an action in the root directory + uses: ./.github/actions/hello-action # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' From 193e013223f0e0d083591c5ad96e332ca4da201e Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:07:51 -0800 Subject: [PATCH 11/73] Change workflow action path pt 8. --- .github/workflows/test-dockerfile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 3f9c9083..98caf513 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -2,9 +2,9 @@ name: Test Docker Image Action (Hello Action) on: push: - branches: [ main ] + branches: [ main, iain-changes ] pull_request: - branches: [ main ] + branches: [ main, iain-changes ] jobs: From c72717958d9bf988471655745196d6c584222c45 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:09:20 -0800 Subject: [PATCH 12/73] Chnage linux version. --- .github/actions/hello-action/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 36fc100e..d6f96551 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -1,5 +1,5 @@ # Container image that runs your code -FROM alpine:3.10 +FROM ubuntu:latest RUN apt-get update && apt-get install -y curl From caaacfcd4f5f2afcf880c0a277c1eb3af302b8c3 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:29:59 -0800 Subject: [PATCH 13/73] Testing docker. --- .github/actions/hello-action/Dockerfile | 8 ++++---- .github/actions/hello-action/entrypoint.sh | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index d6f96551..bc3d7b85 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -1,9 +1,9 @@ # Container image that runs your code -FROM ubuntu:latest - - -RUN apt-get update && apt-get install -y curl +# FROM ubuntu:latest +# FROM pytorch/pytorch:latest +FROM pytorch/pytorch:latest AS builder +FROM chapel/chapel # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 3fee027d..5ae6f019 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -3,3 +3,11 @@ echo "Hello $1" time=$(date) echo "time=$time" >> $GITHUB_OUTPUT + +stdout=$(which python3) +echo "python3=$stdout" >> $GITHUB_OUTPUT + + +stdout=$(which chpl) +echo "chapel=$stdout" >> $GITHUB_OUTPUT + From db7af7e7a16150f98bf08e9f0d2aafe8aebf01e3 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:31:29 -0800 Subject: [PATCH 14/73] Testing docker. --- .github/actions/hello-action/entrypoint.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 5ae6f019..d997a86a 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -7,7 +7,6 @@ echo "time=$time" >> $GITHUB_OUTPUT stdout=$(which python3) echo "python3=$stdout" >> $GITHUB_OUTPUT - stdout=$(which chpl) echo "chapel=$stdout" >> $GITHUB_OUTPUT From 4fcfdfd87d3690688a7991dc0b172981f9996dc2 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:33:10 -0800 Subject: [PATCH 15/73] Testing docker. --- .github/workflows/test-dockerfile.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 98caf513..a197a8b4 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -25,4 +25,7 @@ jobs: # Use the output from the `hello` step - name: Get the output time - run: echo "The time was ${{ steps.hello.outputs.time }}" \ No newline at end of file + run: | + echo "The time was ${{ steps.hello.outputs.time }}" + (echo "The python3 path is ${{ steps.hello.outputs.python3 }}" || echo "No python3 found!") + (echo "The chapel path is ${{ steps.hello.outputs.chapel }}" || echo "No chapel found!") From 711e2fe385b1018a2a87d1a77164819604637b18 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:38:36 -0800 Subject: [PATCH 16/73] Testing docker. --- .github/workflows/test-dockerfile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index a197a8b4..a7d9c350 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -29,3 +29,4 @@ jobs: echo "The time was ${{ steps.hello.outputs.time }}" (echo "The python3 path is ${{ steps.hello.outputs.python3 }}" || echo "No python3 found!") (echo "The chapel path is ${{ steps.hello.outputs.chapel }}" || echo "No chapel found!") + echo "All outputs: ${{ steps.hello.outputs }}" \ No newline at end of file From cdf6421aada76d970f291439965e73e514eb50e1 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:48:16 -0800 Subject: [PATCH 17/73] Testing docker. --- .github/actions/hello-action/Dockerfile | 7 ++++++- .github/actions/hello-action/entrypoint.sh | 4 ++++ .github/workflows/test-dockerfile.yml | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index bc3d7b85..8b2aac2c 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -5,11 +5,16 @@ FROM pytorch/pytorch:latest AS builder FROM chapel/chapel +WORKDIR /ChAI + +COPY . . + +COPY ../../../ ./ + # Copies your code file from your action repository to the filesystem path `/` of the container COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh - # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index d997a86a..18455f50 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -10,3 +10,7 @@ echo "python3=$stdout" >> $GITHUB_OUTPUT stdout=$(which chpl) echo "chapel=$stdout" >> $GITHUB_OUTPUT + + +stdout=$(ls -la) +echo "ls=$stdout" >> $GITHUB_OUTPUT diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index a7d9c350..3747754e 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -29,4 +29,6 @@ jobs: echo "The time was ${{ steps.hello.outputs.time }}" (echo "The python3 path is ${{ steps.hello.outputs.python3 }}" || echo "No python3 found!") (echo "The chapel path is ${{ steps.hello.outputs.chapel }}" || echo "No chapel found!") + echo "The chapel path is ${{ steps.hello.outputs.ls }}" + echo "All outputs: ${{ steps.hello.outputs }}" \ No newline at end of file From f7a605ea393eb8c86cba0005c856fd8c1e10a7ae Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:49:33 -0800 Subject: [PATCH 18/73] Testing docker. --- .github/actions/hello-action/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 18455f50..7d677082 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -12,5 +12,5 @@ echo "chapel=$stdout" >> $GITHUB_OUTPUT -stdout=$(ls -la) +stdout=$(ls) echo "ls=$stdout" >> $GITHUB_OUTPUT From 1144c2f7002f347381e893a6d8ee2946f881fe50 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:51:08 -0800 Subject: [PATCH 19/73] Testing docker. --- .github/actions/hello-action/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 7d677082..6ad66d35 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -14,3 +14,7 @@ echo "chapel=$stdout" >> $GITHUB_OUTPUT stdout=$(ls) echo "ls=$stdout" >> $GITHUB_OUTPUT + + +echo "Hello from entry." + From 9be94cbee9ea5abecb153aec4135a34ff9ef5db1 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:52:47 -0800 Subject: [PATCH 20/73] Testing docker (again). --- .github/actions/hello-action/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 6ad66d35..5175d334 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -13,8 +13,10 @@ echo "chapel=$stdout" >> $GITHUB_OUTPUT stdout=$(ls) +echo "$stdout" echo "ls=$stdout" >> $GITHUB_OUTPUT echo "Hello from entry." + From dbb25fe718d61c73343091017086780ed3c83c8e Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:54:02 -0800 Subject: [PATCH 21/73] Testing docker (again). --- .github/actions/hello-action/entrypoint.sh | 3 --- .github/workflows/test-dockerfile.yml | 1 - 2 files changed, 4 deletions(-) diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 5175d334..11226e8e 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -14,9 +14,6 @@ echo "chapel=$stdout" >> $GITHUB_OUTPUT stdout=$(ls) echo "$stdout" -echo "ls=$stdout" >> $GITHUB_OUTPUT - - echo "Hello from entry." diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 3747754e..30e77b0c 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -29,6 +29,5 @@ jobs: echo "The time was ${{ steps.hello.outputs.time }}" (echo "The python3 path is ${{ steps.hello.outputs.python3 }}" || echo "No python3 found!") (echo "The chapel path is ${{ steps.hello.outputs.chapel }}" || echo "No chapel found!") - echo "The chapel path is ${{ steps.hello.outputs.ls }}" echo "All outputs: ${{ steps.hello.outputs }}" \ No newline at end of file From c6de354b83a9151d7f4ef7403d7472c558ea688b Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 21:56:57 -0800 Subject: [PATCH 22/73] Testing docker (again). --- .github/actions/hello-action/entrypoint.sh | 8 +++++++- myshell.sh | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 myshell.sh diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 11226e8e..0ba1b30c 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -12,8 +12,14 @@ echo "chapel=$stdout" >> $GITHUB_OUTPUT -stdout=$(ls) +stdout=$(ls -la) echo "$stdout" echo "Hello from entry." +echo $(pwd) + +echo $(which python3 || echo "No python3") +echo $(which chpl || echo "No chpl") + + diff --git a/myshell.sh b/myshell.sh new file mode 100644 index 00000000..fad75e0a --- /dev/null +++ b/myshell.sh @@ -0,0 +1,3 @@ + + +echo $(pwd) \ No newline at end of file From 565ff45b9404478aab3e31cd951aa02d05da6648 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:03:04 -0800 Subject: [PATCH 23/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 8b2aac2c..6eea44c1 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -11,8 +11,11 @@ COPY . . COPY ../../../ ./ +COPY chai/chai ./ +# ADD chai/chai + # Copies your code file from your action repository to the filesystem path `/` of the container -COPY entrypoint.sh /entrypoint.sh +# COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh From dc138a45a2dc7382f85ad505ccdb04c6cda1d291 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:03:43 -0800 Subject: [PATCH 24/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 6eea44c1..546d6133 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -11,7 +11,7 @@ COPY . . COPY ../../../ ./ -COPY chai/chai ./ +COPY chapel/chapel ./ # ADD chai/chai # Copies your code file from your action repository to the filesystem path `/` of the container From c8d67b7a8f78a63c483c5e7d88a4deef7d9e9d25 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:05:59 -0800 Subject: [PATCH 25/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 3 +-- .github/actions/hello-action/entrypoint.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 546d6133..11cb5e04 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -11,8 +11,7 @@ COPY . . COPY ../../../ ./ -COPY chapel/chapel ./ -# ADD chai/chai +ADD chapel/chapel /chapel # Copies your code file from your action repository to the filesystem path `/` of the container # COPY entrypoint.sh /entrypoint.sh diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 0ba1b30c..1dbea3fe 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -23,3 +23,4 @@ echo $(which python3 || echo "No python3") echo $(which chpl || echo "No chpl") +echo $(cd / && ls) \ No newline at end of file From cd60dd18443574efebe6f2ed9150879e00078e84 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:06:45 -0800 Subject: [PATCH 26/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 11cb5e04..8358e85a 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -3,7 +3,8 @@ # FROM pytorch/pytorch:latest FROM pytorch/pytorch:latest AS builder -FROM chapel/chapel +# FROM chapel/chapel +ADD chapel/chapel /chapel WORKDIR /ChAI @@ -11,7 +12,6 @@ COPY . . COPY ../../../ ./ -ADD chapel/chapel /chapel # Copies your code file from your action repository to the filesystem path `/` of the container # COPY entrypoint.sh /entrypoint.sh From fc1490965bda6a01e271f48e227d48dde3005fbf Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:11:56 -0800 Subject: [PATCH 27/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 8358e85a..181a49f5 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -1,10 +1,16 @@ # Container image that runs your code # FROM ubuntu:latest # FROM pytorch/pytorch:latest -FROM pytorch/pytorch:latest AS builder -# FROM chapel/chapel -ADD chapel/chapel /chapel +FROM chapel/chapel:latest as chapel + +FROM pytorch/pytorch:latest + +COPY --from=chapel /usr/local/chapel /usr/local/chapel + +ENV PATH="/usr/local/chapel/bin:${PATH}" + +# ADD chapel/chapel /chapel WORKDIR /ChAI @@ -18,5 +24,7 @@ COPY ../../../ ./ RUN chmod +x /entrypoint.sh +RUN echo $(which chpl || echo "bad chapel. ") + # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file From 0dbe5a5528900ad82cf2fc51dde74a5524f20282 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:13:47 -0800 Subject: [PATCH 28/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 181a49f5..fc609e99 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -4,6 +4,8 @@ FROM chapel/chapel:latest as chapel +RUN echo $(which chpl) + FROM pytorch/pytorch:latest COPY --from=chapel /usr/local/chapel /usr/local/chapel From 7d30f11187628cc69905e73d2cc15f0d55e5704a Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:15:11 -0800 Subject: [PATCH 29/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index fc609e99..abb8736a 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -8,9 +8,9 @@ RUN echo $(which chpl) FROM pytorch/pytorch:latest -COPY --from=chapel /usr/local/chapel /usr/local/chapel +COPY --from=chapel /opt/chapel/bin/chpl /opt/chapel/bin/chpl -ENV PATH="/usr/local/chapel/bin:${PATH}" +ENV PATH="/opt/chapel/bin/chpl:${PATH}" # ADD chapel/chapel /chapel From 2196767d95f28d705d7d244ccbe2640804e123eb Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:18:11 -0800 Subject: [PATCH 30/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index abb8736a..71906f1c 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -12,14 +12,26 @@ COPY --from=chapel /opt/chapel/bin/chpl /opt/chapel/bin/chpl ENV PATH="/opt/chapel/bin/chpl:${PATH}" +RUN echo $(which python3) +RUN echo $(which chpl) + # ADD chapel/chapel /chapel +RUN echo $(ls -la) + WORKDIR /ChAI +RUN echo $(ls -la) + COPY . . +RUN echo $(ls -la) + +COPY entrypoint.sh /entrypoint.sh COPY ../../../ ./ +RUN echo $(ls -la) + # Copies your code file from your action repository to the filesystem path `/` of the container # COPY entrypoint.sh /entrypoint.sh From abacb25fd0d7676904395dba29a0fb6f78de3c3c Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:29:58 -0800 Subject: [PATCH 31/73] Testing docker (again). --- .github/actions/hello-action/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 71906f1c..f03200f1 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -2,7 +2,8 @@ # FROM ubuntu:latest # FROM pytorch/pytorch:latest -FROM chapel/chapel:latest as chapel +FROM chapel/chapel:latest +# as chapel RUN echo $(which chpl) From 1c8e9b80bd34183b3a39721ed8a7aa4ee64fdb4f Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:33:22 -0800 Subject: [PATCH 32/73] Testing docker (again). --- .github/workflows/test-dockerfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 30e77b0c..98168367 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: Hello world action step - uses: ./.github/actions/hello-action # Uses an action in the root directory + uses: ./../.github/actions/hello-action # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' From 361893e50cc1b6b16a92bccd7b3fecd98a8ed77e Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:34:17 -0800 Subject: [PATCH 33/73] Testing docker (again). --- .github/workflows/test-dockerfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 98168367..30e77b0c 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v4 - name: Hello world action step - uses: ./../.github/actions/hello-action # Uses an action in the root directory + uses: ./.github/actions/hello-action # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' From 1172a5b647968601c4fa7f28859697217c15fb6f Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 22:56:33 -0800 Subject: [PATCH 34/73] Testing docker (again). --- .github/actions/js-hello-action/README.md | 23 +++ .github/actions/js-hello-action/action.yml | 13 ++ .github/actions/js-hello-action/main.js | 15 ++ .github/actions/js-hello-action/package.json | 10 ++ .github/actions/js-hello-action/yarn.lock | 177 +++++++++++++++++++ .github/workflows/test-js-workflow.yml | 25 +++ .gitignore | 3 +- 7 files changed, 265 insertions(+), 1 deletion(-) create mode 100644 .github/actions/js-hello-action/README.md create mode 100644 .github/actions/js-hello-action/action.yml create mode 100644 .github/actions/js-hello-action/main.js create mode 100644 .github/actions/js-hello-action/package.json create mode 100644 .github/actions/js-hello-action/yarn.lock create mode 100644 .github/workflows/test-js-workflow.yml diff --git a/.github/actions/js-hello-action/README.md b/.github/actions/js-hello-action/README.md new file mode 100644 index 00000000..b7d48207 --- /dev/null +++ b/.github/actions/js-hello-action/README.md @@ -0,0 +1,23 @@ +# Hello world javascript action + +This action prints "Hello World" or "Hello" + the name of a person to greet to the log. + +## Inputs + +### `who-to-greet` + +**Required** The name of the person to greet. Default `"World"`. + +## Outputs + +### `time` + +The time we greeted you. + +## Example usage + +```yaml +uses: actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b +with: + who-to-greet: 'Mona the Octocat' +``` diff --git a/.github/actions/js-hello-action/action.yml b/.github/actions/js-hello-action/action.yml new file mode 100644 index 00000000..596afac4 --- /dev/null +++ b/.github/actions/js-hello-action/action.yml @@ -0,0 +1,13 @@ +name: 'JS: Hello World' +description: 'Greet someone and record the time' +inputs: + who-to-greet: # id of input + description: 'Who to greet' + required: true + default: 'World' +outputs: + time: # id of output + description: 'The time we greeted you' +runs: + using: 'node20' + main: './github/actions/js-hello-action/main.js' \ No newline at end of file diff --git a/.github/actions/js-hello-action/main.js b/.github/actions/js-hello-action/main.js new file mode 100644 index 00000000..3673d188 --- /dev/null +++ b/.github/actions/js-hello-action/main.js @@ -0,0 +1,15 @@ +const core = require('@actions/core'); +const github = require('@actions/github'); + +try { + // `who-to-greet` input defined in action metadata file + const nameToGreet = core.getInput('who-to-greet'); + console.log(`Hello ${nameToGreet}!`); + const time = (new Date()).toTimeString(); + core.setOutput("time", time); + // Get the JSON webhook payload for the event that triggered the workflow + const payload = JSON.stringify(github.context.payload, undefined, 2) + console.log(`The event payload: ${payload}`); +} catch (error) { + core.setFailed(error.message); +} \ No newline at end of file diff --git a/.github/actions/js-hello-action/package.json b/.github/actions/js-hello-action/package.json new file mode 100644 index 00000000..74c74526 --- /dev/null +++ b/.github/actions/js-hello-action/package.json @@ -0,0 +1,10 @@ +{ + "name": "js-hello-action", + "version": "1.0.0", + "main": "main.js", + "license": "MIT", + "dependencies": { + "@actions/core": "^1.11.1", + "@actions/github": "^6.0.0" + } +} diff --git a/.github/actions/js-hello-action/yarn.lock b/.github/actions/js-hello-action/yarn.lock new file mode 100644 index 00000000..e256b11e --- /dev/null +++ b/.github/actions/js-hello-action/yarn.lock @@ -0,0 +1,177 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@actions/core@^1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.11.1.tgz#ae683aac5112438021588030efb53b1adb86f172" + integrity sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A== + dependencies: + "@actions/exec" "^1.1.1" + "@actions/http-client" "^2.0.1" + +"@actions/exec@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@actions/exec/-/exec-1.1.1.tgz#2e43f28c54022537172819a7cf886c844221a611" + integrity sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w== + dependencies: + "@actions/io" "^1.0.1" + +"@actions/github@^6.0.0": + version "6.0.0" + resolved "https://registry.yarnpkg.com/@actions/github/-/github-6.0.0.tgz#65883433f9d81521b782a64cc1fd45eef2191ea7" + integrity sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g== + dependencies: + "@actions/http-client" "^2.2.0" + "@octokit/core" "^5.0.1" + "@octokit/plugin-paginate-rest" "^9.0.0" + "@octokit/plugin-rest-endpoint-methods" "^10.0.0" + +"@actions/http-client@^2.0.1", "@actions/http-client@^2.2.0": + version "2.2.3" + resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.2.3.tgz#31fc0b25c0e665754ed39a9f19a8611fc6dab674" + integrity sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA== + dependencies: + tunnel "^0.0.6" + undici "^5.25.4" + +"@actions/io@^1.0.1": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.1.3.tgz#4cdb6254da7962b07473ff5c335f3da485d94d71" + integrity sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q== + +"@fastify/busboy@^2.0.0": + version "2.1.1" + resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d" + integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA== + +"@octokit/auth-token@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-4.0.0.tgz#40d203ea827b9f17f42a29c6afb93b7745ef80c7" + integrity sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA== + +"@octokit/core@^5.0.1": + version "5.2.0" + resolved "https://registry.yarnpkg.com/@octokit/core/-/core-5.2.0.tgz#ddbeaefc6b44a39834e1bb2e58a49a117672a7ea" + integrity sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg== + dependencies: + "@octokit/auth-token" "^4.0.0" + "@octokit/graphql" "^7.1.0" + "@octokit/request" "^8.3.1" + "@octokit/request-error" "^5.1.0" + "@octokit/types" "^13.0.0" + before-after-hook "^2.2.0" + universal-user-agent "^6.0.0" + +"@octokit/endpoint@^9.0.1": + version "9.0.5" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.5.tgz#e6c0ee684e307614c02fc6ac12274c50da465c44" + integrity sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw== + dependencies: + "@octokit/types" "^13.1.0" + universal-user-agent "^6.0.0" + +"@octokit/graphql@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-7.1.0.tgz#9bc1c5de92f026648131f04101cab949eeffe4e0" + integrity sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ== + dependencies: + "@octokit/request" "^8.3.0" + "@octokit/types" "^13.0.0" + universal-user-agent "^6.0.0" + +"@octokit/openapi-types@^20.0.0": + version "20.0.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-20.0.0.tgz#9ec2daa0090eeb865ee147636e0c00f73790c6e5" + integrity sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA== + +"@octokit/openapi-types@^23.0.1": + version "23.0.1" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-23.0.1.tgz#3721646ecd36b596ddb12650e0e89d3ebb2dd50e" + integrity sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g== + +"@octokit/plugin-paginate-rest@^9.0.0": + version "9.2.1" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.1.tgz#2e2a2f0f52c9a4b1da1a3aa17dabe3c459b9e401" + integrity sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw== + dependencies: + "@octokit/types" "^12.6.0" + +"@octokit/plugin-rest-endpoint-methods@^10.0.0": + version "10.4.1" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz#41ba478a558b9f554793075b2e20cd2ef973be17" + integrity sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg== + dependencies: + "@octokit/types" "^12.6.0" + +"@octokit/request-error@^5.1.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.1.0.tgz#ee4138538d08c81a60be3f320cd71063064a3b30" + integrity sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q== + dependencies: + "@octokit/types" "^13.1.0" + deprecation "^2.0.0" + once "^1.4.0" + +"@octokit/request@^8.3.0", "@octokit/request@^8.3.1": + version "8.4.0" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.4.0.tgz#7f4b7b1daa3d1f48c0977ad8fffa2c18adef8974" + integrity sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw== + dependencies: + "@octokit/endpoint" "^9.0.1" + "@octokit/request-error" "^5.1.0" + "@octokit/types" "^13.1.0" + universal-user-agent "^6.0.0" + +"@octokit/types@^12.6.0": + version "12.6.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-12.6.0.tgz#8100fb9eeedfe083aae66473bd97b15b62aedcb2" + integrity sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw== + dependencies: + "@octokit/openapi-types" "^20.0.0" + +"@octokit/types@^13.0.0", "@octokit/types@^13.1.0": + version "13.7.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-13.7.0.tgz#22d0e26a8c9f53599bfb907213d8ccde547f36aa" + integrity sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA== + dependencies: + "@octokit/openapi-types" "^23.0.1" + +before-after-hook@^2.2.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c" + integrity sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ== + +deprecation@^2.0.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919" + integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ== + +once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +tunnel@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" + integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== + +undici@^5.25.4: + version "5.28.5" + resolved "https://registry.yarnpkg.com/undici/-/undici-5.28.5.tgz#b2b94b6bf8f1d919bc5a6f31f2c01deb02e54d4b" + integrity sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA== + dependencies: + "@fastify/busboy" "^2.0.0" + +universal-user-agent@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.1.tgz#15f20f55da3c930c57bddbf1734c6654d5fd35aa" + integrity sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ== + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== diff --git a/.github/workflows/test-js-workflow.yml b/.github/workflows/test-js-workflow.yml new file mode 100644 index 00000000..3186cab8 --- /dev/null +++ b/.github/workflows/test-js-workflow.yml @@ -0,0 +1,25 @@ +name: Test JavaScript Action (JS Action) + +on: + push: + branches: [ main, iain-changes ] + pull_request: + branches: [ main, iain-changes ] + +jobs: + hello_world_job: + runs-on: ubuntu-latest + name: A job to say hello + steps: + # To use this repository's private action, + # you must check out the repository + - name: Checkout + uses: actions/checkout@v4 + - name: Hello world action step + uses: ./ # Uses an action in the root directory + id: hello + with: + who-to-greet: 'Mona the Octocat' + # Use the output from the `hello` step + - name: Get the output time + run: echo "The time was ${{ steps.hello.outputs.time }}" diff --git a/.gitignore b/.gitignore index 628757ad..f5c0c57c 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ target/ .cls-commands.json .venv __pycache__/ -!Dockerfile \ No newline at end of file +!Dockerfile +node_modules/ \ No newline at end of file From 08b1776b1bd07a33e18d6496babb323b5cc5eea1 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 23:01:39 -0800 Subject: [PATCH 35/73] Testing docker (again). --- .github/workflows/test-js-workflow.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test-js-workflow.yml b/.github/workflows/test-js-workflow.yml index 3186cab8..9d6a3bb6 100644 --- a/.github/workflows/test-js-workflow.yml +++ b/.github/workflows/test-js-workflow.yml @@ -11,15 +11,21 @@ jobs: runs-on: ubuntu-latest name: A job to say hello steps: + + # To use this repository's private action, # you must check out the repository - name: Checkout uses: actions/checkout@v4 + + - name: Hello world action step uses: ./ # Uses an action in the root directory id: hello with: who-to-greet: 'Mona the Octocat' + + # Use the output from the `hello` step - name: Get the output time run: echo "The time was ${{ steps.hello.outputs.time }}" From ee95aaa4de0f507ca08b86438241c0dd1c98af44 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 23:26:13 -0800 Subject: [PATCH 36/73] Testing (JS actions). --- .github/actions/js-hello-action/package.json | 3 ++ .github/actions/js-hello-action/test.js | 1 + .github/workflows/test-js-workflow.yml | 37 +++++++++++++------- 3 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 .github/actions/js-hello-action/test.js diff --git a/.github/actions/js-hello-action/package.json b/.github/actions/js-hello-action/package.json index 74c74526..4c839f24 100644 --- a/.github/actions/js-hello-action/package.json +++ b/.github/actions/js-hello-action/package.json @@ -3,6 +3,9 @@ "version": "1.0.0", "main": "main.js", "license": "MIT", + "scripts": { + "ci-test": "npm i && node test.js", + }, "dependencies": { "@actions/core": "^1.11.1", "@actions/github": "^6.0.0" diff --git a/.github/actions/js-hello-action/test.js b/.github/actions/js-hello-action/test.js new file mode 100644 index 00000000..3032dea4 --- /dev/null +++ b/.github/actions/js-hello-action/test.js @@ -0,0 +1 @@ +console.log('Hello!'); \ No newline at end of file diff --git a/.github/workflows/test-js-workflow.yml b/.github/workflows/test-js-workflow.yml index 9d6a3bb6..cb68b33b 100644 --- a/.github/workflows/test-js-workflow.yml +++ b/.github/workflows/test-js-workflow.yml @@ -7,25 +7,38 @@ on: branches: [ main, iain-changes ] jobs: - hello_world_job: + test_js_workflow: + name: Test JavaScript Workflow runs-on: ubuntu-latest - name: A job to say hello steps: - - # To use this repository's private action, # you must check out the repository - name: Checkout + id: checkout uses: actions/checkout@v4 - - - name: Hello world action step - uses: ./ # Uses an action in the root directory - id: hello + - name: Setup Node.js + id: setup-node + uses: actions/setup-node@v4 with: - who-to-greet: 'Mona the Octocat' + node-version-file: .node-version + cache: npm + + - name: Install Dependencies + id: install + run: npm ci + + - name: Test + id: npm-ci-test + run: npm run ci-test + + # - name: Hello world action step + # uses: ./ # Uses an action in the root directory + # id: hello + # with: + # who-to-greet: 'Mona the Octocat' - # Use the output from the `hello` step - - name: Get the output time - run: echo "The time was ${{ steps.hello.outputs.time }}" + # # Use the output from the `hello` step + # - name: Get the output time + # run: echo "The time was ${{ steps.hello.outputs.time }}" From a07a4c2a21e1709ff8e6d78e62627ca1c1162bf3 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 23:29:56 -0800 Subject: [PATCH 37/73] Testing (JS actions). --- .github/workflows/test-js-workflow.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-js-workflow.yml b/.github/workflows/test-js-workflow.yml index cb68b33b..a6432868 100644 --- a/.github/workflows/test-js-workflow.yml +++ b/.github/workflows/test-js-workflow.yml @@ -17,6 +17,13 @@ jobs: id: checkout uses: actions/checkout@v4 + + - name: Hello world action step + uses: ./ # Uses an action in the root directory + id: hello + with: + who-to-greet: 'Mona the Octocat' + - name: Setup Node.js id: setup-node uses: actions/setup-node@v4 @@ -32,11 +39,6 @@ jobs: id: npm-ci-test run: npm run ci-test - # - name: Hello world action step - # uses: ./ # Uses an action in the root directory - # id: hello - # with: - # who-to-greet: 'Mona the Octocat' # # Use the output from the `hello` step From c8845d0df956b90684ffc77404fe0406e6031681 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Tue, 28 Jan 2025 23:32:28 -0800 Subject: [PATCH 38/73] Testing (JS actions). --- .github/workflows/test-dockerfile.yml | 4 ++-- .github/workflows/test-js-workflow.yml | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 30e77b0c..e60c09c2 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -2,9 +2,9 @@ name: Test Docker Image Action (Hello Action) on: push: - branches: [ main, iain-changes ] + branches: [ main ] pull_request: - branches: [ main, iain-changes ] + branches: [ main ] jobs: diff --git a/.github/workflows/test-js-workflow.yml b/.github/workflows/test-js-workflow.yml index a6432868..daca965e 100644 --- a/.github/workflows/test-js-workflow.yml +++ b/.github/workflows/test-js-workflow.yml @@ -17,13 +17,6 @@ jobs: id: checkout uses: actions/checkout@v4 - - - name: Hello world action step - uses: ./ # Uses an action in the root directory - id: hello - with: - who-to-greet: 'Mona the Octocat' - - name: Setup Node.js id: setup-node uses: actions/setup-node@v4 @@ -31,6 +24,13 @@ jobs: node-version-file: .node-version cache: npm + + - name: Hello world action step + uses: ./ # Uses an action in the root directory + id: hello + with: + who-to-greet: 'Mona the Octocat' + - name: Install Dependencies id: install run: npm ci From e651b25ea095508bafc343f6858a9f29a6b4dae7 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Thu, 30 Jan 2025 16:41:03 -0800 Subject: [PATCH 39/73] Testing (Dockerfile actions). --- .github/actions/hello-action/Dockerfile | 2 +- .github/workflows/test-js-workflow.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index f03200f1..f460d734 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -2,7 +2,7 @@ # FROM ubuntu:latest # FROM pytorch/pytorch:latest -FROM chapel/chapel:latest +FROM chapel/chapel # as chapel RUN echo $(which chpl) diff --git a/.github/workflows/test-js-workflow.yml b/.github/workflows/test-js-workflow.yml index daca965e..395914d1 100644 --- a/.github/workflows/test-js-workflow.yml +++ b/.github/workflows/test-js-workflow.yml @@ -23,8 +23,7 @@ jobs: with: node-version-file: .node-version cache: npm - - + - name: Hello world action step uses: ./ # Uses an action in the root directory id: hello From 84d1da83938e011e16fa4b8e572c378bd2a0f03c Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Thu, 30 Jan 2025 16:41:59 -0800 Subject: [PATCH 40/73] Testing (Dockerfile actions). --- .github/workflows/test-dockerfile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index e60c09c2..30e77b0c 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -2,9 +2,9 @@ name: Test Docker Image Action (Hello Action) on: push: - branches: [ main ] + branches: [ main, iain-changes ] pull_request: - branches: [ main ] + branches: [ main, iain-changes ] jobs: From d8e9c693a19d8579aabe541ed33e0623c7e51ae7 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Thu, 30 Jan 2025 16:42:26 -0800 Subject: [PATCH 41/73] Testing (Dockerfile actions). --- .github/workflows/test-dockerfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 30e77b0c..3cc09ec9 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -4,7 +4,7 @@ on: push: branches: [ main, iain-changes ] pull_request: - branches: [ main, iain-changes ] + branches: [ main ] jobs: From 103923a5d99191be71b72c00fe6fc88c0885decc Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 00:33:17 -0800 Subject: [PATCH 42/73] Add testing files for CI system with local docker (See Iain). --- docker/chapel-pytorch-test/Dockerfile | 17 +++++++++++++++++ docker/chapel-pytorch-test/build-run.sh | 8 ++++++++ docker/chapel-pytorch-test/script.sh | 7 +++++++ 3 files changed, 32 insertions(+) create mode 100644 docker/chapel-pytorch-test/Dockerfile create mode 100644 docker/chapel-pytorch-test/build-run.sh create mode 100644 docker/chapel-pytorch-test/script.sh diff --git a/docker/chapel-pytorch-test/Dockerfile b/docker/chapel-pytorch-test/Dockerfile new file mode 100644 index 00000000..8937cf72 --- /dev/null +++ b/docker/chapel-pytorch-test/Dockerfile @@ -0,0 +1,17 @@ +FROM chapel/chapel + +# Install pytorch +RUN pip3 install torch + +# RUN echo "Hello!" +# RUN echo $(which chpl) + +# ADD ./script.sh ./script.sh + +WORKDIR /app + +COPY ./script.sh script.sh +COPY . ../../. +RUN sh script.sh + +# CMD ["sh","script.sh"] # Turn off when testing. \ No newline at end of file diff --git a/docker/chapel-pytorch-test/build-run.sh b/docker/chapel-pytorch-test/build-run.sh new file mode 100644 index 00000000..4b182169 --- /dev/null +++ b/docker/chapel-pytorch-test/build-run.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +docker build --tag 'chapel_pytorch_test' . +docker run -a STDOUT -a STDERR 'chapel_pytorch_test' + +# terminal cmd: sh build-run.sh && docker run -it 'chapel_pytorch_test' +# when testing and output of Dockerfile could be unreliable. Having +# this allows you to see the environment produced by the Dockerfile! \ No newline at end of file diff --git a/docker/chapel-pytorch-test/script.sh b/docker/chapel-pytorch-test/script.sh new file mode 100644 index 00000000..986aa5e5 --- /dev/null +++ b/docker/chapel-pytorch-test/script.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +echo "Hello!" + +echo $(which chpl) + +echo $(which python3 || echo "No 'python3' found!") \ No newline at end of file From 966cff19a731f46020c37eb844f04e4db13b317b Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 00:38:37 -0800 Subject: [PATCH 43/73] Add iain-changes to branch trigger for workflows/CI.yml. --- .github/workflows/CI.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5570c462..5df949dd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [ main ] + branches: [ main, iain-changes ] pull_request: branches: [ main ] From 39c47b1c451f217cadfce2426e0fc2f5dabed0dc Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 00:44:07 -0800 Subject: [PATCH 44/73] Add flag for historical search. --- SNAPSHOT_SAT_FEB_1_2025.php | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 SNAPSHOT_SAT_FEB_1_2025.php diff --git a/SNAPSHOT_SAT_FEB_1_2025.php b/SNAPSHOT_SAT_FEB_1_2025.php new file mode 100644 index 00000000..b8139336 --- /dev/null +++ b/SNAPSHOT_SAT_FEB_1_2025.php @@ -0,0 +1,11 @@ +Snapshot +Iain Moncrief +Sat +Feb 1 2025 +Sprint 2 +CI +Test +Change +Actions +GH +GitHub From 0ce1244a1115acc4050a95b4b90b76bc801bb63a Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 00:45:03 -0800 Subject: [PATCH 45/73] Remove js action. --- .github/workflows/test-js-workflow.yml | 4 +--- SNAPSHOT_SAT_FEB_1_2025.php | 11 ----------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 SNAPSHOT_SAT_FEB_1_2025.php diff --git a/.github/workflows/test-js-workflow.yml b/.github/workflows/test-js-workflow.yml index 395914d1..d7b2b892 100644 --- a/.github/workflows/test-js-workflow.yml +++ b/.github/workflows/test-js-workflow.yml @@ -2,9 +2,7 @@ name: Test JavaScript Action (JS Action) on: push: - branches: [ main, iain-changes ] - pull_request: - branches: [ main, iain-changes ] + branches: [ ] jobs: test_js_workflow: diff --git a/SNAPSHOT_SAT_FEB_1_2025.php b/SNAPSHOT_SAT_FEB_1_2025.php deleted file mode 100644 index b8139336..00000000 --- a/SNAPSHOT_SAT_FEB_1_2025.php +++ /dev/null @@ -1,11 +0,0 @@ -Snapshot -Iain Moncrief -Sat -Feb 1 2025 -Sprint 2 -CI -Test -Change -Actions -GH -GitHub From 5b8e0f3d2aa443da6729d711b77ece949eb0c735 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 00:45:34 -0800 Subject: [PATCH 46/73] Remove js action (full) with folder. --- .github/actions/js-hello-action/README.md | 23 --- .github/actions/js-hello-action/action.yml | 13 -- .github/actions/js-hello-action/main.js | 15 -- .github/actions/js-hello-action/package.json | 13 -- .github/actions/js-hello-action/test.js | 1 - .github/actions/js-hello-action/yarn.lock | 177 ------------------- .github/workflows/test-js-workflow.yml | 43 ----- 7 files changed, 285 deletions(-) delete mode 100644 .github/actions/js-hello-action/README.md delete mode 100644 .github/actions/js-hello-action/action.yml delete mode 100644 .github/actions/js-hello-action/main.js delete mode 100644 .github/actions/js-hello-action/package.json delete mode 100644 .github/actions/js-hello-action/test.js delete mode 100644 .github/actions/js-hello-action/yarn.lock delete mode 100644 .github/workflows/test-js-workflow.yml diff --git a/.github/actions/js-hello-action/README.md b/.github/actions/js-hello-action/README.md deleted file mode 100644 index b7d48207..00000000 --- a/.github/actions/js-hello-action/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# Hello world javascript action - -This action prints "Hello World" or "Hello" + the name of a person to greet to the log. - -## Inputs - -### `who-to-greet` - -**Required** The name of the person to greet. Default `"World"`. - -## Outputs - -### `time` - -The time we greeted you. - -## Example usage - -```yaml -uses: actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b -with: - who-to-greet: 'Mona the Octocat' -``` diff --git a/.github/actions/js-hello-action/action.yml b/.github/actions/js-hello-action/action.yml deleted file mode 100644 index 596afac4..00000000 --- a/.github/actions/js-hello-action/action.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: 'JS: Hello World' -description: 'Greet someone and record the time' -inputs: - who-to-greet: # id of input - description: 'Who to greet' - required: true - default: 'World' -outputs: - time: # id of output - description: 'The time we greeted you' -runs: - using: 'node20' - main: './github/actions/js-hello-action/main.js' \ No newline at end of file diff --git a/.github/actions/js-hello-action/main.js b/.github/actions/js-hello-action/main.js deleted file mode 100644 index 3673d188..00000000 --- a/.github/actions/js-hello-action/main.js +++ /dev/null @@ -1,15 +0,0 @@ -const core = require('@actions/core'); -const github = require('@actions/github'); - -try { - // `who-to-greet` input defined in action metadata file - const nameToGreet = core.getInput('who-to-greet'); - console.log(`Hello ${nameToGreet}!`); - const time = (new Date()).toTimeString(); - core.setOutput("time", time); - // Get the JSON webhook payload for the event that triggered the workflow - const payload = JSON.stringify(github.context.payload, undefined, 2) - console.log(`The event payload: ${payload}`); -} catch (error) { - core.setFailed(error.message); -} \ No newline at end of file diff --git a/.github/actions/js-hello-action/package.json b/.github/actions/js-hello-action/package.json deleted file mode 100644 index 4c839f24..00000000 --- a/.github/actions/js-hello-action/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "js-hello-action", - "version": "1.0.0", - "main": "main.js", - "license": "MIT", - "scripts": { - "ci-test": "npm i && node test.js", - }, - "dependencies": { - "@actions/core": "^1.11.1", - "@actions/github": "^6.0.0" - } -} diff --git a/.github/actions/js-hello-action/test.js b/.github/actions/js-hello-action/test.js deleted file mode 100644 index 3032dea4..00000000 --- a/.github/actions/js-hello-action/test.js +++ /dev/null @@ -1 +0,0 @@ -console.log('Hello!'); \ No newline at end of file diff --git a/.github/actions/js-hello-action/yarn.lock b/.github/actions/js-hello-action/yarn.lock deleted file mode 100644 index e256b11e..00000000 --- a/.github/actions/js-hello-action/yarn.lock +++ /dev/null @@ -1,177 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@actions/core@^1.11.1": - version "1.11.1" - resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.11.1.tgz#ae683aac5112438021588030efb53b1adb86f172" - integrity sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A== - dependencies: - "@actions/exec" "^1.1.1" - "@actions/http-client" "^2.0.1" - -"@actions/exec@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@actions/exec/-/exec-1.1.1.tgz#2e43f28c54022537172819a7cf886c844221a611" - integrity sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w== - dependencies: - "@actions/io" "^1.0.1" - -"@actions/github@^6.0.0": - version "6.0.0" - resolved "https://registry.yarnpkg.com/@actions/github/-/github-6.0.0.tgz#65883433f9d81521b782a64cc1fd45eef2191ea7" - integrity sha512-alScpSVnYmjNEXboZjarjukQEzgCRmjMv6Xj47fsdnqGS73bjJNDpiiXmp8jr0UZLdUB6d9jW63IcmddUP+l0g== - dependencies: - "@actions/http-client" "^2.2.0" - "@octokit/core" "^5.0.1" - "@octokit/plugin-paginate-rest" "^9.0.0" - "@octokit/plugin-rest-endpoint-methods" "^10.0.0" - -"@actions/http-client@^2.0.1", "@actions/http-client@^2.2.0": - version "2.2.3" - resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.2.3.tgz#31fc0b25c0e665754ed39a9f19a8611fc6dab674" - integrity sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA== - dependencies: - tunnel "^0.0.6" - undici "^5.25.4" - -"@actions/io@^1.0.1": - version "1.1.3" - resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.1.3.tgz#4cdb6254da7962b07473ff5c335f3da485d94d71" - integrity sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q== - -"@fastify/busboy@^2.0.0": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@fastify/busboy/-/busboy-2.1.1.tgz#b9da6a878a371829a0502c9b6c1c143ef6663f4d" - integrity sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA== - -"@octokit/auth-token@^4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-4.0.0.tgz#40d203ea827b9f17f42a29c6afb93b7745ef80c7" - integrity sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA== - -"@octokit/core@^5.0.1": - version "5.2.0" - resolved "https://registry.yarnpkg.com/@octokit/core/-/core-5.2.0.tgz#ddbeaefc6b44a39834e1bb2e58a49a117672a7ea" - integrity sha512-1LFfa/qnMQvEOAdzlQymH0ulepxbxnCYAKJZfMci/5XJyIHWgEYnDmgnKakbTh7CH2tFQ5O60oYDvns4i9RAIg== - dependencies: - "@octokit/auth-token" "^4.0.0" - "@octokit/graphql" "^7.1.0" - "@octokit/request" "^8.3.1" - "@octokit/request-error" "^5.1.0" - "@octokit/types" "^13.0.0" - before-after-hook "^2.2.0" - universal-user-agent "^6.0.0" - -"@octokit/endpoint@^9.0.1": - version "9.0.5" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-9.0.5.tgz#e6c0ee684e307614c02fc6ac12274c50da465c44" - integrity sha512-ekqR4/+PCLkEBF6qgj8WqJfvDq65RH85OAgrtnVp1mSxaXF03u2xW/hUdweGS5654IlC0wkNYC18Z50tSYTAFw== - dependencies: - "@octokit/types" "^13.1.0" - universal-user-agent "^6.0.0" - -"@octokit/graphql@^7.1.0": - version "7.1.0" - resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-7.1.0.tgz#9bc1c5de92f026648131f04101cab949eeffe4e0" - integrity sha512-r+oZUH7aMFui1ypZnAvZmn0KSqAUgE1/tUXIWaqUCa1758ts/Jio84GZuzsvUkme98kv0WFY8//n0J1Z+vsIsQ== - dependencies: - "@octokit/request" "^8.3.0" - "@octokit/types" "^13.0.0" - universal-user-agent "^6.0.0" - -"@octokit/openapi-types@^20.0.0": - version "20.0.0" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-20.0.0.tgz#9ec2daa0090eeb865ee147636e0c00f73790c6e5" - integrity sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA== - -"@octokit/openapi-types@^23.0.1": - version "23.0.1" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-23.0.1.tgz#3721646ecd36b596ddb12650e0e89d3ebb2dd50e" - integrity sha512-izFjMJ1sir0jn0ldEKhZ7xegCTj/ObmEDlEfpFrx4k/JyZSMRHbO3/rBwgE7f3m2DHt+RrNGIVw4wSmwnm3t/g== - -"@octokit/plugin-paginate-rest@^9.0.0": - version "9.2.1" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.2.1.tgz#2e2a2f0f52c9a4b1da1a3aa17dabe3c459b9e401" - integrity sha512-wfGhE/TAkXZRLjksFXuDZdmGnJQHvtU/joFQdweXUgzo1XwvBCD4o4+75NtFfjfLK5IwLf9vHTfSiU3sLRYpRw== - dependencies: - "@octokit/types" "^12.6.0" - -"@octokit/plugin-rest-endpoint-methods@^10.0.0": - version "10.4.1" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.4.1.tgz#41ba478a558b9f554793075b2e20cd2ef973be17" - integrity sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg== - dependencies: - "@octokit/types" "^12.6.0" - -"@octokit/request-error@^5.1.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-5.1.0.tgz#ee4138538d08c81a60be3f320cd71063064a3b30" - integrity sha512-GETXfE05J0+7H2STzekpKObFe765O5dlAKUTLNGeH+x47z7JjXHfsHKo5z21D/o/IOZTUEI6nyWyR+bZVP/n5Q== - dependencies: - "@octokit/types" "^13.1.0" - deprecation "^2.0.0" - once "^1.4.0" - -"@octokit/request@^8.3.0", "@octokit/request@^8.3.1": - version "8.4.0" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-8.4.0.tgz#7f4b7b1daa3d1f48c0977ad8fffa2c18adef8974" - integrity sha512-9Bb014e+m2TgBeEJGEbdplMVWwPmL1FPtggHQRkV+WVsMggPtEkLKPlcVYm/o8xKLkpJ7B+6N8WfQMtDLX2Dpw== - dependencies: - "@octokit/endpoint" "^9.0.1" - "@octokit/request-error" "^5.1.0" - "@octokit/types" "^13.1.0" - universal-user-agent "^6.0.0" - -"@octokit/types@^12.6.0": - version "12.6.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-12.6.0.tgz#8100fb9eeedfe083aae66473bd97b15b62aedcb2" - integrity sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw== - dependencies: - "@octokit/openapi-types" "^20.0.0" - -"@octokit/types@^13.0.0", "@octokit/types@^13.1.0": - version "13.7.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-13.7.0.tgz#22d0e26a8c9f53599bfb907213d8ccde547f36aa" - integrity sha512-BXfRP+3P3IN6fd4uF3SniaHKOO4UXWBfkdR3vA8mIvaoO/wLjGN5qivUtW0QRitBHHMcfC41SLhNVYIZZE+wkA== - dependencies: - "@octokit/openapi-types" "^23.0.1" - -before-after-hook@^2.2.0: - version "2.2.3" - resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c" - integrity sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ== - -deprecation@^2.0.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919" - integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ== - -once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -tunnel@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c" - integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg== - -undici@^5.25.4: - version "5.28.5" - resolved "https://registry.yarnpkg.com/undici/-/undici-5.28.5.tgz#b2b94b6bf8f1d919bc5a6f31f2c01deb02e54d4b" - integrity sha512-zICwjrDrcrUE0pyyJc1I2QzBkLM8FINsgOrt6WjA+BgajVq9Nxu2PbFFXUrAggLfDXlZGZBVZYw7WNV5KiBiBA== - dependencies: - "@fastify/busboy" "^2.0.0" - -universal-user-agent@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.1.tgz#15f20f55da3c930c57bddbf1734c6654d5fd35aa" - integrity sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ== - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== diff --git a/.github/workflows/test-js-workflow.yml b/.github/workflows/test-js-workflow.yml deleted file mode 100644 index d7b2b892..00000000 --- a/.github/workflows/test-js-workflow.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Test JavaScript Action (JS Action) - -on: - push: - branches: [ ] - -jobs: - test_js_workflow: - name: Test JavaScript Workflow - runs-on: ubuntu-latest - steps: - # To use this repository's private action, - # you must check out the repository - - name: Checkout - id: checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - id: setup-node - uses: actions/setup-node@v4 - with: - node-version-file: .node-version - cache: npm - - - name: Hello world action step - uses: ./ # Uses an action in the root directory - id: hello - with: - who-to-greet: 'Mona the Octocat' - - - name: Install Dependencies - id: install - run: npm ci - - - name: Test - id: npm-ci-test - run: npm run ci-test - - - - # # Use the output from the `hello` step - # - name: Get the output time - # run: echo "The time was ${{ steps.hello.outputs.time }}" From 791578160d1c93a66143d47116a51dc7251c6382 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 00:48:14 -0800 Subject: [PATCH 47/73] Add big comment to actions/hello-action action. Look at docker/chapel-pytorch-test. --- .github/actions/hello-action/Dockerfile | 43 +++++++++++++++++++++---- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index f460d734..dad55f8a 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -5,19 +5,50 @@ FROM chapel/chapel # as chapel -RUN echo $(which chpl) +# Install pytorch +RUN pip3 install torch + + + + +# +# +# +# +# +# See docker/chapel-pytorch-test and examine it closely! +# +# +# +# +# + + + + + + + + + + + + + + + + + + + + -FROM pytorch/pytorch:latest -COPY --from=chapel /opt/chapel/bin/chpl /opt/chapel/bin/chpl -ENV PATH="/opt/chapel/bin/chpl:${PATH}" RUN echo $(which python3) RUN echo $(which chpl) -# ADD chapel/chapel /chapel - RUN echo $(ls -la) WORKDIR /ChAI From cd755f3accdc9ebf7bed962e19944f6c42bed954 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 00:50:37 -0800 Subject: [PATCH 48/73] Add small comment. --- .github/actions/hello-action/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index dad55f8a..dcb27d24 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -8,6 +8,8 @@ FROM chapel/chapel # Install pytorch RUN pip3 install torch +# PLEASE SEE {ChAI}/docker/chapel-pytorch-test/.! + From 054f330d0bbe50703180fbe974cb1c7d83b2702d Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 00:52:04 -0800 Subject: [PATCH 49/73] Remove iains-changes from CI et al. testing .yml s. --- .github/workflows/CI.yml | 2 +- .github/workflows/test-dockerfile.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5df949dd..5570c462 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [ main, iain-changes ] + branches: [ main ] pull_request: branches: [ main ] diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 3cc09ec9..e60c09c2 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -2,7 +2,7 @@ name: Test Docker Image Action (Hello Action) on: push: - branches: [ main, iain-changes ] + branches: [ main ] pull_request: branches: [ main ] From 10df62fc4a25c1f9b55c778494ad9bfaa54b2fd4 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 14:23:16 -0800 Subject: [PATCH 50/73] Add correspondence test to hello world action. --- .github/actions/hello-action/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index dcb27d24..de525ef4 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -66,6 +66,8 @@ COPY ../../../ ./ RUN echo $(ls -la) +RUN echo $(cd test/correspondence && python3 correspondence.py) + # Copies your code file from your action repository to the filesystem path `/` of the container # COPY entrypoint.sh /entrypoint.sh From 8b470b6275f00af7c9b13502c0ace66de065ce39 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 14:27:05 -0800 Subject: [PATCH 51/73] Move correspondence test invocation to entrypoint.sh. --- .github/actions/hello-action/Dockerfile | 2 -- .github/actions/hello-action/entrypoint.sh | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index de525ef4..dcb27d24 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -66,8 +66,6 @@ COPY ../../../ ./ RUN echo $(ls -la) -RUN echo $(cd test/correspondence && python3 correspondence.py) - # Copies your code file from your action repository to the filesystem path `/` of the container # COPY entrypoint.sh /entrypoint.sh diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 1dbea3fe..de15d536 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -23,4 +23,6 @@ echo $(which python3 || echo "No python3") echo $(which chpl || echo "No chpl") -echo $(cd / && ls) \ No newline at end of file +echo $(cd / && ls) + +echo $(cd /test/correspondence && python3 correspondence.py) \ No newline at end of file From 81ea8405f28c8625b974e8726c89da3c2f32a1ce Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 14:32:05 -0800 Subject: [PATCH 52/73] Change way to invoke tests. --- .github/actions/hello-action/entrypoint.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index de15d536..774be8e9 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -12,9 +12,17 @@ echo "chapel=$stdout" >> $GITHUB_OUTPUT + + +echo "Begin test attempt. " stdout=$(ls -la) echo "$stdout" -echo "Hello from entry." + +echo "Running tests." +echo $(cd test/correspondence && python3 correspondence.py) + +echo "End test attempt. " + echo $(pwd) @@ -25,4 +33,3 @@ echo $(which chpl || echo "No chpl") echo $(cd / && ls) -echo $(cd /test/correspondence && python3 correspondence.py) \ No newline at end of file From d81b6f27279d65d9767ee1d0fc4fdf6253b9bc23 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 14:37:32 -0800 Subject: [PATCH 53/73] Add numpy to testing dockerfile dependencies. --- .github/actions/hello-action/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index dcb27d24..a5ad27ed 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -6,7 +6,7 @@ FROM chapel/chapel # as chapel # Install pytorch -RUN pip3 install torch +RUN pip3 install torch numpy torch torchvision # PLEASE SEE {ChAI}/docker/chapel-pytorch-test/.! From c1dabb5f196951c2eafd36438cf656469b8eec41 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 14:49:23 -0800 Subject: [PATCH 54/73] Change entrypoint.sh. --- .github/actions/hello-action/Dockerfile | 2 +- .github/actions/hello-action/entrypoint.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index a5ad27ed..c471bf09 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -6,7 +6,7 @@ FROM chapel/chapel # as chapel # Install pytorch -RUN pip3 install torch numpy torch torchvision +RUN pip3 install torch numpy torch # PLEASE SEE {ChAI}/docker/chapel-pytorch-test/.! diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 774be8e9..0929d56e 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -19,6 +19,11 @@ stdout=$(ls -la) echo "$stdout" echo "Running tests." + +echo "Trying to compile test from entrypoint.sh. " +chpl test/correspondence/construction/ones/ones.chpl -M lib + +echo "Now running correspondence test. " echo $(cd test/correspondence && python3 correspondence.py) echo "End test attempt. " From 728e4a0b4102ad4d7f75cdff9d44f500391a900d Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sat, 1 Feb 2025 14:55:44 -0800 Subject: [PATCH 55/73] Change entrypoint.sh. --- .github/actions/hello-action/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index c471bf09..55e62abd 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -74,5 +74,6 @@ RUN chmod +x /entrypoint.sh RUN echo $(which chpl || echo "bad chapel. ") +RUN /entrypoint.sh # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file From 33d95fe61f3f9dbda5bcc1753592c633e48ffafb Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 15:24:45 -0800 Subject: [PATCH 56/73] Change entrypoint.sh. --- .github/actions/hello-action/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/hello-action/entrypoint.sh b/.github/actions/hello-action/entrypoint.sh index 0929d56e..f280536e 100644 --- a/.github/actions/hello-action/entrypoint.sh +++ b/.github/actions/hello-action/entrypoint.sh @@ -21,7 +21,8 @@ echo "$stdout" echo "Running tests." echo "Trying to compile test from entrypoint.sh. " -chpl test/correspondence/construction/ones/ones.chpl -M lib +chpl test/correspondence/construction/ones/ones.chpl -M lib -o test/correspondence/construction/ones/ones +chpl test/correspondence/construction/arange/arange.chpl -M lib -o test/correspondence/construction/arange/arange echo "Now running correspondence test. " echo $(cd test/correspondence && python3 correspondence.py) From bc3c5624530830605802c8f58a5295133a66fb2e Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 15:33:08 -0800 Subject: [PATCH 57/73] Change entrypoint.sh. --- .github/actions/hello-action/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 55e62abd..21abfc14 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -75,5 +75,9 @@ RUN chmod +x /entrypoint.sh RUN echo $(which chpl || echo "bad chapel. ") RUN /entrypoint.sh + +chpl test/correspondence/construction/ones/ones.chpl -M lib -o test/correspondence/construction/ones/ones +chpl test/correspondence/construction/arange/arange.chpl -M lib -o test/correspondence/construction/arange/arange + # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file From d5bf2c10e26ea6129274c77355239fa4e31fa32c Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 15:33:19 -0800 Subject: [PATCH 58/73] Change entrypoint.sh. --- .github/actions/hello-action/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 21abfc14..1c4f1e0e 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -76,8 +76,8 @@ RUN echo $(which chpl || echo "bad chapel. ") RUN /entrypoint.sh -chpl test/correspondence/construction/ones/ones.chpl -M lib -o test/correspondence/construction/ones/ones -chpl test/correspondence/construction/arange/arange.chpl -M lib -o test/correspondence/construction/arange/arange +RUN chpl test/correspondence/construction/ones/ones.chpl -M lib -o test/correspondence/construction/ones/ones +RUN chpl test/correspondence/construction/arange/arange.chpl -M lib -o test/correspondence/construction/arange/arange # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file From 3fe7d168f97ec9a22bb634fc9f1a18b5ecb308c5 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 15:41:59 -0800 Subject: [PATCH 59/73] Change entrypoint.sh. --- .github/actions/hello-action/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 1c4f1e0e..909c3cbc 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -59,9 +59,13 @@ RUN echo $(ls -la) COPY . . +RUN chpl test/correspondence/construction/ones/ones.chpl -M lib -o test/correspondence/construction/ones/ones +RUN chpl test/correspondence/construction/arange/arange.chpl -M lib -o test/correspondence/construction/arange/arange + + RUN echo $(ls -la) -COPY entrypoint.sh /entrypoint.sh +COPY entrypoint.sh ./entrypoint.sh COPY ../../../ ./ RUN echo $(ls -la) @@ -70,14 +74,12 @@ RUN echo $(ls -la) # Copies your code file from your action repository to the filesystem path `/` of the container # COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh +RUN chmod +x ./entrypoint.sh RUN echo $(which chpl || echo "bad chapel. ") -RUN /entrypoint.sh +RUN ./entrypoint.sh -RUN chpl test/correspondence/construction/ones/ones.chpl -M lib -o test/correspondence/construction/ones/ones -RUN chpl test/correspondence/construction/arange/arange.chpl -M lib -o test/correspondence/construction/arange/arange # Code file to execute when the docker container starts up (`entrypoint.sh`) ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file From 25ccf6e71ff7a28e5d5f2cdfa5e08b8ae5ffebc7 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:10:19 -0800 Subject: [PATCH 60/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 34 +++++++++++++------------ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 909c3cbc..39dc1227 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -5,6 +5,8 @@ FROM chapel/chapel # as chapel +RUN echo $(ls -la) + # Install pytorch RUN pip3 install torch numpy torch @@ -48,38 +50,38 @@ RUN pip3 install torch numpy torch -RUN echo $(which python3) -RUN echo $(which chpl) +# RUN echo $(which python3) +# RUN echo $(which chpl) -RUN echo $(ls -la) +# RUN echo $(ls -la) -WORKDIR /ChAI +# WORKDIR /ChAI -RUN echo $(ls -la) +# RUN echo $(ls -la) -COPY . . +# COPY . . -RUN chpl test/correspondence/construction/ones/ones.chpl -M lib -o test/correspondence/construction/ones/ones -RUN chpl test/correspondence/construction/arange/arange.chpl -M lib -o test/correspondence/construction/arange/arange +# RUN chpl test/correspondence/construction/ones/ones.chpl -M lib -o test/correspondence/construction/ones/ones +# RUN chpl test/correspondence/construction/arange/arange.chpl -M lib -o test/correspondence/construction/arange/arange -RUN echo $(ls -la) +# RUN echo $(ls -la) -COPY entrypoint.sh ./entrypoint.sh -COPY ../../../ ./ +# COPY entrypoint.sh ./entrypoint.sh +# COPY ../../../ ./ -RUN echo $(ls -la) +# RUN echo $(ls -la) # Copies your code file from your action repository to the filesystem path `/` of the container # COPY entrypoint.sh /entrypoint.sh -RUN chmod +x ./entrypoint.sh +# RUN chmod +x ./entrypoint.sh -RUN echo $(which chpl || echo "bad chapel. ") +# RUN echo $(which chpl || echo "bad chapel. ") -RUN ./entrypoint.sh +# RUN ./entrypoint.sh # Code file to execute when the docker container starts up (`entrypoint.sh`) -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +# ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file From 4ad265b147f694f1fe3ca7a3c4cac8c78cf172f2 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:12:29 -0800 Subject: [PATCH 61/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 39dc1227..95840a68 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -6,7 +6,7 @@ FROM chapel/chapel # as chapel RUN echo $(ls -la) - +RUN echo $(ls -la /) # Install pytorch RUN pip3 install torch numpy torch From b9e1c5fb48580a82e14097cd1e1450f67528651b Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:30:55 -0800 Subject: [PATCH 62/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 95840a68..a9036a47 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -5,10 +5,14 @@ FROM chapel/chapel # as chapel + +COPY . . + RUN echo $(ls -la) RUN echo $(ls -la /) + # Install pytorch -RUN pip3 install torch numpy torch +# RUN pip3 install torch numpy torch # PLEASE SEE {ChAI}/docker/chapel-pytorch-test/.! From 944e0475c16589f98d9c0dd649309f06ce2a449e Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:33:05 -0800 Subject: [PATCH 63/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index a9036a47..25c60235 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -6,7 +6,7 @@ FROM chapel/chapel # as chapel -COPY . . +COPY ../../../ . RUN echo $(ls -la) RUN echo $(ls -la /) From 646a2d668c2903bb5c289591c13478695bb62ae6 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:35:00 -0800 Subject: [PATCH 64/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 25c60235..6ac572d8 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -5,6 +5,7 @@ FROM chapel/chapel # as chapel +WORKDIR /ChAI COPY ../../../ . From 22cb35914ad35bb28b01fd61d6c186678be81c15 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:37:13 -0800 Subject: [PATCH 65/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 6ac572d8..9a623508 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -11,6 +11,7 @@ COPY ../../../ . RUN echo $(ls -la) RUN echo $(ls -la /) +RUN echo $(ls -la /ChAI) # Install pytorch # RUN pip3 install torch numpy torch From 6e2bbe3b66a67681172ed444b57208b58625d043 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:39:12 -0800 Subject: [PATCH 66/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 9a623508..9daacefc 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -7,7 +7,7 @@ FROM chapel/chapel WORKDIR /ChAI -COPY ../../../ . +COPY . ../../../ RUN echo $(ls -la) RUN echo $(ls -la /) From e979aeb8a5de0b60bf5b7c63fa1170890885e7a6 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:40:41 -0800 Subject: [PATCH 67/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 9daacefc..24c23b62 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -7,7 +7,7 @@ FROM chapel/chapel WORKDIR /ChAI -COPY . ../../../ +COPY . /ChAI/ RUN echo $(ls -la) RUN echo $(ls -la /) From 7c599494a1221c947a9be72b2cef1cd50346547a Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:41:46 -0800 Subject: [PATCH 68/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 24c23b62..76a46d23 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -7,7 +7,7 @@ FROM chapel/chapel WORKDIR /ChAI -COPY . /ChAI/ +COPY ../../. /ChAI/ RUN echo $(ls -la) RUN echo $(ls -la /) From b4b6e0f7bc47f01ca9f929b4b91b8e309801452e Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:46:46 -0800 Subject: [PATCH 69/73] Chang entrypoint.sh --- .github/workflows/test-dockerfile.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index e60c09c2..09efcaf0 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -24,10 +24,11 @@ jobs: who-to-greet: 'Mona the Octocat' # Use the output from the `hello` step + # echo "The time was ${{ steps.hello.outputs.time }}" + # (echo "The python3 path is ${{ steps.hello.outputs.python3 }}" || echo "No python3 found!") + # (echo "The chapel path is ${{ steps.hello.outputs.chapel }}" || echo "No chapel found!") + - name: Get the output time run: | - echo "The time was ${{ steps.hello.outputs.time }}" - (echo "The python3 path is ${{ steps.hello.outputs.python3 }}" || echo "No python3 found!") - (echo "The chapel path is ${{ steps.hello.outputs.chapel }}" || echo "No chapel found!") echo "All outputs: ${{ steps.hello.outputs }}" \ No newline at end of file From 98d74d8c5a2beb77e96addd36fae51a5c2dd39f5 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 16:48:25 -0800 Subject: [PATCH 70/73] Chang entrypoint.sh --- .github/workflows/test-dockerfile.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 09efcaf0..42178c5f 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -30,5 +30,4 @@ jobs: - name: Get the output time run: | - echo "All outputs: ${{ steps.hello.outputs }}" \ No newline at end of file From c572196e42f3fd926dd9356e9f868e5b5ba88dd5 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 19:08:02 -0800 Subject: [PATCH 71/73] Chang entrypoint.sh --- .github/actions/hello-action/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/hello-action/Dockerfile b/.github/actions/hello-action/Dockerfile index 76a46d23..9300896b 100644 --- a/.github/actions/hello-action/Dockerfile +++ b/.github/actions/hello-action/Dockerfile @@ -5,13 +5,13 @@ FROM chapel/chapel # as chapel -WORKDIR /ChAI +# WORKDIR /ChAI -COPY ../../. /ChAI/ +# COPY ../../. /ChAI/ -RUN echo $(ls -la) -RUN echo $(ls -la /) -RUN echo $(ls -la /ChAI) +# RUN echo $(ls -la) +# RUN echo $(ls -la /) +# RUN echo $(ls -la /ChAI) # Install pytorch # RUN pip3 install torch numpy torch From 084ddc2865b94a3aaf2c979050d1e4908b8037d5 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 19:09:29 -0800 Subject: [PATCH 72/73] Chang entrypoint.sh --- .github/workflows/test-dockerfile.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.yml index 42178c5f..a8cb2aa5 100644 --- a/.github/workflows/test-dockerfile.yml +++ b/.github/workflows/test-dockerfile.yml @@ -23,11 +23,11 @@ jobs: with: who-to-greet: 'Mona the Octocat' - # Use the output from the `hello` step - # echo "The time was ${{ steps.hello.outputs.time }}" - # (echo "The python3 path is ${{ steps.hello.outputs.python3 }}" || echo "No python3 found!") - # (echo "The chapel path is ${{ steps.hello.outputs.chapel }}" || echo "No chapel found!") + # # Use the output from the `hello` step + # # echo "The time was ${{ steps.hello.outputs.time }}" + # # (echo "The python3 path is ${{ steps.hello.outputs.python3 }}" || echo "No python3 found!") + # # (echo "The chapel path is ${{ steps.hello.outputs.chapel }}" || echo "No chapel found!") - - name: Get the output time - run: | - echo "All outputs: ${{ steps.hello.outputs }}" \ No newline at end of file + # - name: Get the output time + # run: | + # echo "All outputs: ${{ steps.hello.outputs }}" \ No newline at end of file From 76867a7d4e206302197aa5b0122560e4c67c51c7 Mon Sep 17 00:00:00 2001 From: Iain Moncrief Date: Sun, 2 Feb 2025 19:10:40 -0800 Subject: [PATCH 73/73] Chang entrypoint.sh --- .../workflows/{test-dockerfile.yml => test-dockerfile.__yml.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{test-dockerfile.yml => test-dockerfile.__yml.txt} (100%) diff --git a/.github/workflows/test-dockerfile.yml b/.github/workflows/test-dockerfile.__yml.txt similarity index 100% rename from .github/workflows/test-dockerfile.yml rename to .github/workflows/test-dockerfile.__yml.txt