From b9d163f47c6b6010dfb6f64180bcf7637232cb35 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 5 Apr 2024 14:23:06 -0500 Subject: [PATCH 01/46] ci: added dependabot.yml, updated codeowners began workflow update Signed-off-by: Roger Barker --- .github/CODEOWNERS | 39 ++++++++++++++++++++--- .github/dependabot.yml | 7 ++++ .github/workflows/charts.yml | 21 ++++++++---- .github/workflows/proxy-tests.yml | 9 +++++- .github/workflows/release-integration.yml | 7 ++++ .github/workflows/release-production.yml | 9 +++++- .gitignore | 3 ++ 7 files changed, 81 insertions(+), 14 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index e6d7d1c..da55f3f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,21 +2,50 @@ ##### Global Protection Rule ###### ################################### # NOTE: This rule is overriden by the more specific rules below. This is the catch-all rule for all files not covered by the more specific rules below -* @hashgraph/hedera-smart-contracts +* @hashgraph/hedera-smart-contracts @hashgraph/release-engineering @hashgraph/release-engineering-managers ############################# ##### Auth-Layer-Proxy ###### ############################# -/auth-layer-proxy/ @AlfredoG87 @Nana-EC @hashgraph/hedera-smart-contracts -/charts/auth-layer-proxy/ @AlfredoG87 @Nana-EC @beeradb @hashgraph/hedera-smart-contracts +/auth-layer-proxy/ @AlfredoG87 @Nana-EC @hashgraph/hedera-smart-contracts @hashgraph/release-engineering @hashgraph/release-engineering-managers +/charts/auth-layer-proxy/ @AlfredoG87 @Nana-EC @beeradb @hashgraph/hedera-smart-contracts @hashgraph/release-engineering @hashgraph/release-engineering-managers ############################### ##### Charts ###### ############################### -/charts/ @AlfredoG87 @Nana-EC @beeradb @hashgraph/hedera-smart-contracts +/charts/ @AlfredoG87 @Nana-EC @beeradb @hashgraph/hedera-smart-contracts @hashgraph/release-engineering @hashgraph/release-engineering-managers ############################### ##### Subgraphs ###### ############################### -/subgraphs/ @AlfredoG87 @Nana-EC @hashgraph/hedera-smart-contracts +/subgraphs/ @AlfredoG87 @Nana-EC @hashgraph/hedera-smart-contracts @hashgraph/release-engineering @hashgraph/release-engineering-managers +######################### +##### Core Files ###### +######################### + +# NOTE: Must be placed last to ensure enforcement over all other rules + +# Protection Rules for Github Configuration Files and Actions Workflows +/.github/ @hashgraph/release-engineering @hashgraph/release-engineering-managers @0xivanov @MrValioBg + +# Legacy Maven project files +**/pom.xml @hashgraph/release-engineering @hashgraph/release-engineering-managers + +# Codacy Tool Configurations +/config/ @hashgraph/release-engineering @hashgraph/release-engineering-managers +.remarkrc @hashgraph/release-engineering @hashgraph/release-engineering-managers + +# Self-protection for root CODEOWNERS files (this file should not exist and should definitely require approval) +/CODEOWNERS @hashgraph/release-engineering @hashgraph/release-engineering-managers + +# Protect the repository root files +/README.md @hashgraph/release-engineering @hashgraph/release-engineering-managers +**/LICENSE @hashgraph/release-engineering @hashgraph/release-engineering-managers + +# CodeCov configuration +**/codecov.yml @hashgraph/release-engineering @hashgraph/release-engineering-managers + +# Git Ignore definitions +**/.gitignore @hashgraph/release-engineering @hashgraph/release-engineering-managers +**/.gitignore.* @hashgraph/release-engineering @hashgraph/release-engineering-managers \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1733eec --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 5 diff --git a/.github/workflows/charts.yml b/.github/workflows/charts.yml index 1ab8131..88a2ca5 100644 --- a/.github/workflows/charts.yml +++ b/.github/workflows/charts.yml @@ -5,17 +5,24 @@ on: branches: [ main, release/**] push: branches: [ main, release/*] - tags: [ v* ] + tags: [ v*, v*.*.* ] + +defaults: + run: + shell: bash + +permissions: + contents: read jobs: lint: - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install ct - uses: helm/chart-testing-action@v2.6.1 + uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 - name: Run lint run: ct lint --config .github/ct.yaml --all @@ -24,7 +31,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 0 @@ -36,10 +43,10 @@ jobs: timeout-minutes: 3 - name: Set up Docker Qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 - name: Install ct - uses: helm/chart-testing-action@v2.6.1 + uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 - name: Install chart run: ct install --helm-extra-args="--timeout 10m" --charts charts/hedera-the-graph --config .github/ct.yaml diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index d27c9db..6cae134 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -5,7 +5,14 @@ on: branches: [ main, release/**] push: branches: [ main, release/*] - tags: [ v* ] + tags: [ v*, v*.*.* ] + +defaults: + run: + shell: bash + +permissions: + contents: read jobs: proxy-tests: diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index 8012c29..b600bfc 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -5,6 +5,13 @@ on: branches: [ main ] workflow_dispatch: +defaults: + run: + shell: bash + +permissions: + contents: read + env: OWNER: hashgraph REGISTRY: ghcr.io diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index e783c81..208b336 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -2,7 +2,14 @@ name: Release Production Environment on: push: - tags: [ v* ] + tags: [ v*, v*.*.* ] + +defaults: + run: + shell: bash + +permissions: + contents: read env: OWNER: hashgraph diff --git a/.gitignore b/.gitignore index 84f9dfa..f4dc476 100644 --- a/.gitignore +++ b/.gitignore @@ -145,3 +145,6 @@ auth-layer-proxy/tests/coverage.txt auth-layer-proxy/tests/luacov.report.out auth-layer-proxy/tests/luacov.report.out.index auth-layer-proxy/tests/luacov.stats.out + +### Ignore all Jetbrains IDE files +.idea/ \ No newline at end of file From 08a704ac5715fc401d4b48d0bcf4ecf005edbf3e Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 5 Apr 2024 14:32:39 -0500 Subject: [PATCH 02/46] ci: updated the actions to pin to commits Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 6cae134..6eb8132 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -19,15 +19,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install Lua - uses: leafo/gh-actions-lua@v8 + uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 with: luaVersion: '5.3' - name: Install LuaRocks - uses: leafo/gh-actions-luarocks@v4 + uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 - name: Install lunatest run: luarocks install lunatest From 46b2131e1999006a004ab788ff7e0b53e939b4a8 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 5 Apr 2024 15:11:56 -0500 Subject: [PATCH 03/46] ci: Updated the workflows Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- .github/workflows/release-integration.yml | 12 ++++++------ .github/workflows/release-production.yml | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 6eb8132..650b5b6 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -16,7 +16,7 @@ permissions: jobs: proxy-tests: - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index b600bfc..b466637 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -18,29 +18,29 @@ env: jobs: publish: - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3.2.0 with: driver-opts: network=host - name: Build and push images - uses: docker/build-push-action@v2 + uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 with: context: ./auth-layer-proxy file: ./auth-layer-proxy/Dockerfile diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index 208b336..f5ce734 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -18,32 +18,32 @@ env: jobs: docker-image-publish: - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Get tag run: echo "TAG=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@2b51285047da1547ffb1b2203d8be4c0af6b1f20 # v3.2.0 with: driver-opts: network=host - name: Build and push auth-layer-proxy image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 with: context: ./auth-layer-proxy file: ./auth-layer-proxy/Dockerfile From 1ae1b1063151c0d688e498d0573ce1780025c93f Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 5 Apr 2024 15:31:44 -0500 Subject: [PATCH 04/46] Updated runners for the actions. Signed-off-by: Roger Barker --- .github/workflows/charts.yml | 3 ++- .github/workflows/proxy-tests.yml | 3 ++- .github/workflows/release-integration.yml | 3 ++- .github/workflows/release-production.yml | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/charts.yml b/.github/workflows/charts.yml index 88a2ca5..17dfa00 100644 --- a/.github/workflows/charts.yml +++ b/.github/workflows/charts.yml @@ -16,7 +16,8 @@ permissions: jobs: lint: - runs-on: [self-hosted, ubuntu-latest] + runs-on: ubuntu-latest + # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 650b5b6..31bdb2a 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -16,7 +16,8 @@ permissions: jobs: proxy-tests: - runs-on: [self-hosted, ubuntu-latest] + runs-on: ubuntu-latest + # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner steps: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index b466637..ea4550a 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -18,7 +18,8 @@ env: jobs: publish: - runs-on: [self-hosted, ubuntu-latest] + runs-on: ubuntu-latest + # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner steps: - name: Checkout repository diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index f5ce734..63a91e4 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -18,7 +18,8 @@ env: jobs: docker-image-publish: - runs-on: [self-hosted, ubuntu-latest] + runs-on: ubuntu-latest + # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner steps: - name: Checkout repository From a14b2a5c226ddc15c6cc94aea1a541fd8f03b9b3 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 18 Apr 2024 10:49:53 -0500 Subject: [PATCH 05/46] Added the hardened runner step Signed-off-by: Roger Barker --- .github/CODEOWNERS | 2 +- .github/workflows/charts.yml | 5 +++++ .github/workflows/proxy-tests.yml | 5 +++++ .github/workflows/release-integration.yml | 5 +++++ .github/workflows/release-production.yml | 5 +++++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index da55f3f..73de27c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -27,7 +27,7 @@ # NOTE: Must be placed last to ensure enforcement over all other rules # Protection Rules for Github Configuration Files and Actions Workflows -/.github/ @hashgraph/release-engineering @hashgraph/release-engineering-managers @0xivanov @MrValioBg +/.github/ @hashgraph/release-engineering @hashgraph/release-engineering-managers # Legacy Maven project files **/pom.xml @hashgraph/release-engineering @hashgraph/release-engineering-managers diff --git a/.github/workflows/charts.yml b/.github/workflows/charts.yml index 17dfa00..c014363 100644 --- a/.github/workflows/charts.yml +++ b/.github/workflows/charts.yml @@ -19,6 +19,11 @@ jobs: runs-on: ubuntu-latest # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 31bdb2a..009e6f2 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -19,6 +19,11 @@ jobs: runs-on: ubuntu-latest # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index ea4550a..8cbac72 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -22,6 +22,11 @@ jobs: # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index 63a91e4..ab356b6 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -22,6 +22,11 @@ jobs: # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 From e48ddb9376c3581da76a790376383d73d09e9ad4 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Wed, 24 Apr 2024 13:33:30 -0500 Subject: [PATCH 06/46] Updated everything to for best practices/security. Signed-off-by: Roger Barker --- .../workflows/auth-layer-chart-install.yml | 29 ++++++++++++++++--- .github/workflows/charts-lint.yml | 27 +++++++++++++++-- .../hedera-the-graph-chart-install.yml | 26 +++++++++++++++-- .github/workflows/proxy-tests.yml | 6 ++-- .github/workflows/release-integration.yml | 6 ++-- .github/workflows/release-production.yml | 6 ++-- 6 files changed, 81 insertions(+), 19 deletions(-) diff --git a/.github/workflows/auth-layer-chart-install.yml b/.github/workflows/auth-layer-chart-install.yml index 68c052c..ef6177c 100644 --- a/.github/workflows/auth-layer-chart-install.yml +++ b/.github/workflows/auth-layer-chart-install.yml @@ -7,15 +7,36 @@ on: branches: [ main, release/*] tags: [ v* ] +defaults: + run: + shell: bash + +permissions: + contents: read + jobs: install: - runs-on: ubuntu-latest + name: Install + runs-on: [ self-hosted, Linux, medium, ephemeral ] steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + + - name: Setup Python + uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 + with: + python-version: "3.10" + - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 with: fetch-depth: 0 + - name: Install Helm + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + - name: Install k3d run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash @@ -24,10 +45,10 @@ jobs: timeout-minutes: 3 - name: Set up Docker Qemu - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3.0.0 - name: Install ct - uses: helm/chart-testing-action@v2.6.1 + uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 - name: Install chart run: ct install --helm-extra-args="--timeout 10m" --helm-extra-set-args="--set=global.auth.clientSecret=abcd1234" --charts charts/hedera-the-graph-auth-layer --config .github/ct.yaml diff --git a/.github/workflows/charts-lint.yml b/.github/workflows/charts-lint.yml index 0a9db13..9139bd4 100644 --- a/.github/workflows/charts-lint.yml +++ b/.github/workflows/charts-lint.yml @@ -7,15 +7,36 @@ on: branches: [ main, release/*] tags: [ v* ] +defaults: + run: + shell: bash + +permissions: + contents: read + jobs: lint: - runs-on: ubuntu-latest + name: Lint + runs-on: [ self-hosted, Linux, medium, ephemeral ] steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + + - name: Setup Python + uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 + with: + python-version: "3.10" + - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 + + - name: Install Helm + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 - name: Install ct - uses: helm/chart-testing-action@v2.6.1 + uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 - name: Run lint run: ct lint --config .github/ct.yaml --all diff --git a/.github/workflows/hedera-the-graph-chart-install.yml b/.github/workflows/hedera-the-graph-chart-install.yml index ec3f0cb..e81380e 100644 --- a/.github/workflows/hedera-the-graph-chart-install.yml +++ b/.github/workflows/hedera-the-graph-chart-install.yml @@ -7,16 +7,36 @@ on: branches: [ main, release/*] tags: [ v* ] +defaults: + run: + shell: bash + +permissions: + contents: read + jobs: install: - runs-on: ubuntu-latest - # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner + name: Install + runs-on: [self-hosted, Linux, medium, ephemeral] steps: + - name: Harden Runner + uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 + with: + egress-policy: audit + + - name: Setup Python + uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 + with: + python-version: "3.10" + - name: Checkout - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 with: fetch-depth: 0 + - name: Install Helm + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + - name: Install k3d run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 009e6f2..4b3295d 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -16,8 +16,8 @@ permissions: jobs: proxy-tests: - runs-on: ubuntu-latest - # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner + name: Proxy Tests + runs-on: [self-hosted, Linux, medium, ephemeral] steps: - name: Harden Runner uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 @@ -25,7 +25,7 @@ jobs: egress-policy: audit - name: Checkout repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Install Lua uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 diff --git a/.github/workflows/release-integration.yml b/.github/workflows/release-integration.yml index 2119cdb..d7671f5 100644 --- a/.github/workflows/release-integration.yml +++ b/.github/workflows/release-integration.yml @@ -18,8 +18,8 @@ env: jobs: publish: - runs-on: ubuntu-latest - # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner + name: Publish + runs-on: [self-hosted, Linux, medium, ephemeral] steps: - name: Harden Runner @@ -28,7 +28,7 @@ jobs: egress-policy: audit - name: Checkout repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Login to GitHub Container Registry uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 diff --git a/.github/workflows/release-production.yml b/.github/workflows/release-production.yml index d9aae0c..fbcdacb 100644 --- a/.github/workflows/release-production.yml +++ b/.github/workflows/release-production.yml @@ -18,8 +18,8 @@ env: jobs: docker-image-publish: - runs-on: ubuntu-latest - # runs-on: [self-hosted, Linux, medium, ephemeral] # this will be enabled once we configure a self-hosted runner + name: Publish Docker Image + runs-on: [self-hosted, Linux, medium, ephemeral] steps: - name: Harden Runner @@ -28,7 +28,7 @@ jobs: egress-policy: audit - name: Checkout repository - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Get tag run: echo "TAG=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV From 89411122079e846c9c37309336e82254883ec98d Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Wed, 24 Apr 2024 23:48:56 -0500 Subject: [PATCH 07/46] Added workflow-dispatch triggers on the non-release workflows Signed-off-by: Roger Barker --- .github/workflows/auth-layer-chart-install.yml | 1 + .github/workflows/charts-lint.yml | 1 + .github/workflows/hedera-the-graph-chart-install.yml | 1 + .github/workflows/proxy-tests.yml | 1 + 4 files changed, 4 insertions(+) diff --git a/.github/workflows/auth-layer-chart-install.yml b/.github/workflows/auth-layer-chart-install.yml index ef6177c..329baa4 100644 --- a/.github/workflows/auth-layer-chart-install.yml +++ b/.github/workflows/auth-layer-chart-install.yml @@ -1,6 +1,7 @@ name: Auth-Layer Charts on: + workflow_dispatch: # Enabled for testing pull_request: branches: [ main, release/**] push: diff --git a/.github/workflows/charts-lint.yml b/.github/workflows/charts-lint.yml index 9139bd4..73a1954 100644 --- a/.github/workflows/charts-lint.yml +++ b/.github/workflows/charts-lint.yml @@ -1,6 +1,7 @@ name: Charts Lint on: + workflow_dispatch: # Enabled for testing pull_request: branches: [ main, release/**] push: diff --git a/.github/workflows/hedera-the-graph-chart-install.yml b/.github/workflows/hedera-the-graph-chart-install.yml index e81380e..45a8cbe 100644 --- a/.github/workflows/hedera-the-graph-chart-install.yml +++ b/.github/workflows/hedera-the-graph-chart-install.yml @@ -1,6 +1,7 @@ name: Charts on: + workflow_dispatch: # Enabled for testing pull_request: branches: [ main, release/**] push: diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 4b3295d..3798a2e 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -1,6 +1,7 @@ name: Auth Layer Proxy Tests on: + workflow_dispatch: # Enabled for testing pull_request: branches: [ main, release/**] push: From 04ac6df9b6e78ff7af459617817282286f3e57e3 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 10:22:56 -0500 Subject: [PATCH 08/46] updated dependabot Signed-off-by: Roger Barker --- .github/dependabot.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1733eec..1c258d6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,16 @@ version: 2 updates: - package-ecosystem: github-actions - directory: "/" + directory: / schedule: interval: daily - open-pull-requests-limit: 5 + + - package-ecosystem: docker + directory: /auth-layer-proxy + schedule: + interval: daily + + - package-ecosystem: npm + directory: /subgraphs/saucerswap/v2 + schedule: + interval: daily \ No newline at end of file From 6f63b78fc79332d1420309f9151d6aeed9f7c1b8 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:13:55 -0500 Subject: [PATCH 09/46] Updated the install for k3d. Signed-off-by: Roger Barker --- .github/dependabot.yml | 2 +- .github/workflows/hedera-the-graph-chart-install.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1c258d6..65b98a7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,4 +13,4 @@ updates: - package-ecosystem: npm directory: /subgraphs/saucerswap/v2 schedule: - interval: daily \ No newline at end of file + interval: daily diff --git a/.github/workflows/hedera-the-graph-chart-install.yml b/.github/workflows/hedera-the-graph-chart-install.yml index 45a8cbe..6288f1a 100644 --- a/.github/workflows/hedera-the-graph-chart-install.yml +++ b/.github/workflows/hedera-the-graph-chart-install.yml @@ -39,7 +39,8 @@ jobs: uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 - name: Install k3d - run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash + run: sudo brew install k3d + # run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash - name: Create k3d cluster run: k3d cluster create hedera-graph-node --agents 1 --timeout 5m --registry-create registry:0.0.0.0:5001 --image rancher/k3s:v1.25.9-k3s1 From 5ebcaf286e9d923fadb9dcf1c031def2d72d52d4 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:19:50 -0500 Subject: [PATCH 10/46] reverted to using curl instead of brew Signed-off-by: Roger Barker --- .github/workflows/hedera-the-graph-chart-install.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/hedera-the-graph-chart-install.yml b/.github/workflows/hedera-the-graph-chart-install.yml index 6288f1a..45a8cbe 100644 --- a/.github/workflows/hedera-the-graph-chart-install.yml +++ b/.github/workflows/hedera-the-graph-chart-install.yml @@ -39,8 +39,7 @@ jobs: uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 - name: Install k3d - run: sudo brew install k3d - # run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash + run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash - name: Create k3d cluster run: k3d cluster create hedera-graph-node --agents 1 --timeout 5m --registry-create registry:0.0.0.0:5001 --image rancher/k3s:v1.25.9-k3s1 From 203fcfb2ac30ab21055d05d8436b8ef56bbd7f9f Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:22:28 -0500 Subject: [PATCH 11/46] Include kubectl Signed-off-by: Roger Barker --- .github/workflows/auth-layer-chart-install.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/auth-layer-chart-install.yml b/.github/workflows/auth-layer-chart-install.yml index 329baa4..5260888 100644 --- a/.github/workflows/auth-layer-chart-install.yml +++ b/.github/workflows/auth-layer-chart-install.yml @@ -38,6 +38,9 @@ jobs: - name: Install Helm uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + - name: Install kubectl + uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4.0.0 + - name: Install k3d run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash From 2ae60397d8936353371a392d453e6b83d8af82a8 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:27:16 -0500 Subject: [PATCH 12/46] Updated htg chart install file to bring in kubectl Signed-off-by: Roger Barker --- .github/workflows/hedera-the-graph-chart-install.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/hedera-the-graph-chart-install.yml b/.github/workflows/hedera-the-graph-chart-install.yml index 45a8cbe..19d702a 100644 --- a/.github/workflows/hedera-the-graph-chart-install.yml +++ b/.github/workflows/hedera-the-graph-chart-install.yml @@ -38,6 +38,9 @@ jobs: - name: Install Helm uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 + - name: Install kubectl + uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4.0.0 + - name: Install k3d run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash From fbb7c43b3f2c4a6fdaf43a2e36a273c0ef328643 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:49:01 -0500 Subject: [PATCH 13/46] Playing with the lua install. Removed unnecessary workflow_dispatch: triggers Signed-off-by: Roger Barker --- .github/workflows/auth-layer-chart-install.yml | 3 +-- .github/workflows/charts-lint.yml | 1 - .github/workflows/hedera-the-graph-chart-install.yml | 1 - .github/workflows/proxy-tests.yml | 7 ++++--- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/auth-layer-chart-install.yml b/.github/workflows/auth-layer-chart-install.yml index 5260888..9abb806 100644 --- a/.github/workflows/auth-layer-chart-install.yml +++ b/.github/workflows/auth-layer-chart-install.yml @@ -1,7 +1,6 @@ name: Auth-Layer Charts on: - workflow_dispatch: # Enabled for testing pull_request: branches: [ main, release/**] push: @@ -40,7 +39,7 @@ jobs: - name: Install kubectl uses: azure/setup-kubectl@3e0aec4d80787158d308d7b364cb1b702e7feb7f # v4.0.0 - + - name: Install k3d run: curl --retry 3 -fsL https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash diff --git a/.github/workflows/charts-lint.yml b/.github/workflows/charts-lint.yml index 73a1954..9139bd4 100644 --- a/.github/workflows/charts-lint.yml +++ b/.github/workflows/charts-lint.yml @@ -1,7 +1,6 @@ name: Charts Lint on: - workflow_dispatch: # Enabled for testing pull_request: branches: [ main, release/**] push: diff --git a/.github/workflows/hedera-the-graph-chart-install.yml b/.github/workflows/hedera-the-graph-chart-install.yml index 19d702a..aa00660 100644 --- a/.github/workflows/hedera-the-graph-chart-install.yml +++ b/.github/workflows/hedera-the-graph-chart-install.yml @@ -1,7 +1,6 @@ name: Charts on: - workflow_dispatch: # Enabled for testing pull_request: branches: [ main, release/**] push: diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 3798a2e..4d97ae4 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -1,7 +1,6 @@ name: Auth Layer Proxy Tests on: - workflow_dispatch: # Enabled for testing pull_request: branches: [ main, release/**] push: @@ -30,8 +29,10 @@ jobs: - name: Install Lua uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 - with: - luaVersion: '5.3' + # temorarily moving to latest to see if this command is having an issue with luaVersion: '5.3' + + #with: + # luaVersion: '5.3' - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 From e770dd9e82bfadbcd5bdc618220cb76aa94d3727 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:50:44 -0500 Subject: [PATCH 14/46] Playing with the lua install further Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 4d97ae4..95521de 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -29,10 +29,9 @@ jobs: - name: Install Lua uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 - # temorarily moving to latest to see if this command is having an issue with luaVersion: '5.3' - - #with: - # luaVersion: '5.3' + with: + luaVersion: '5.3' + buildCache: true - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 From 19822cd3388a70d9deaa0e3e90905e26d45566c3 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:55:44 -0500 Subject: [PATCH 15/46] Manually calling sudo apt-get install on liblua Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 95521de..b2cd25e 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -28,10 +28,11 @@ jobs: uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Install Lua - uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 - with: - luaVersion: '5.3' - buildCache: true + run: sudo apt-get install liblua5.3-dev + #uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 + #with: + # luaVersion: '5.3' + # buildCache: true - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 From cb051506372cff21bd6eddfb677b331416636b5e Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:56:48 -0500 Subject: [PATCH 16/46] manually installing lua 5.3 round 2 Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index b2cd25e..3b15e13 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -28,7 +28,7 @@ jobs: uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Install Lua - run: sudo apt-get install liblua5.3-dev + run: sudo apt-get install liblua5.3 #uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 #with: # luaVersion: '5.3' From d305f796d2ac9d58536c8b2d20a161fcba8a79d3 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 15:59:05 -0500 Subject: [PATCH 17/46] round three lua install Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 3b15e13..d904c42 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -28,7 +28,7 @@ jobs: uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Install Lua - run: sudo apt-get install liblua5.3 + run: sudo apt-get install lua5.3 #uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 #with: # luaVersion: '5.3' From 8d193524c0d268b0658ab492ea16c7efe4433e12 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:02:35 -0500 Subject: [PATCH 18/46] Reverted to lua action Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index d904c42..4b3295d 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -28,11 +28,9 @@ jobs: uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Install Lua - run: sudo apt-get install lua5.3 - #uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 - #with: - # luaVersion: '5.3' - # buildCache: true + uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 + with: + luaVersion: '5.3' - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 From 7e345d174eccf63478ddd3c1e8f8fd298040716e Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:09:57 -0500 Subject: [PATCH 19/46] Selected the explicit latest of lua 5.3 (5.3.6) Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 4b3295d..0cda7c7 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -30,7 +30,7 @@ jobs: - name: Install Lua uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 with: - luaVersion: '5.3' + luaVersion: '5.3.6' # explicit latest. - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 From 4e4a4d10a26a71f119f24a774f16a41bf88d9543 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:11:57 -0500 Subject: [PATCH 20/46] manually prepping the lua install Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 0cda7c7..dbd328f 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -27,6 +27,8 @@ jobs: - name: Checkout repository uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 + - name: Prepare Lua Install + run: sudo apt-get install libreadline-dev libncurses-dev -y - name: Install Lua uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 with: From a84ae0774c122430a10468abca4aa00c71a6ed2a Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:14:25 -0500 Subject: [PATCH 21/46] Updating apt-get first Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index dbd328f..04a1250 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -28,7 +28,10 @@ jobs: uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - name: Prepare Lua Install - run: sudo apt-get install libreadline-dev libncurses-dev -y + run: | + sudo apt-get update + sudo apt-get install libreadline-dev libncurses-dev -y + - name: Install Lua uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 with: From 996195940b8b59e60e6c039f4b8049c55b12e357 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:18:01 -0500 Subject: [PATCH 22/46] Playing with lua still :| Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 04a1250..45c3447 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -30,12 +30,13 @@ jobs: - name: Prepare Lua Install run: | sudo apt-get update - sudo apt-get install libreadline-dev libncurses-dev -y - + sudo apt-get install -q libreadline-dev libncurses-dev -y + - name: Install Lua uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 with: luaVersion: '5.3.6' # explicit latest. + buildCache: true - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 From 4578c27178103e05a127311a8339dad541f71edf Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:25:20 -0500 Subject: [PATCH 23/46] found issue with leafo/gh-actions-lua on self-hosted runner. See issue https://github.com/leafo/gh-actions-lua/issues/33. Attempting manual install of lua Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 45c3447..3012d64 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -27,16 +27,19 @@ jobs: - name: Checkout repository uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - - name: Prepare Lua Install + - name: Lua Install run: | sudo apt-get update sudo apt-get install -q libreadline-dev libncurses-dev -y + sudo apt-get install lua5.3 -y - - name: Install Lua - uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 - with: - luaVersion: '5.3.6' # explicit latest. - buildCache: true + # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners + # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 + #- name: Install Lua + # uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 + # with: + # luaVersion: '5.3' + # buildCache: true - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 From c635bc6307b9d61679b14b99a23af29d8a3cc65e Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:39:04 -0500 Subject: [PATCH 24/46] Added explicitly lua path for luarocks Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 3012d64..3ba10ab 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -33,16 +33,20 @@ jobs: sudo apt-get install -q libreadline-dev libncurses-dev -y sudo apt-get install lua5.3 -y + ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 + #- name: Install Lua # uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 # with: # luaVersion: '5.3' - # buildCache: true + ############## - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 + with: + withLuaPath: "/usr/bin/lua5.3" - name: Install lunatest run: luarocks install lunatest From 901807c0029670c4f0f56557588404d35ac473ea Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:41:26 -0500 Subject: [PATCH 25/46] Updated lua path Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 3ba10ab..0b86bf1 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -46,7 +46,7 @@ jobs: - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 with: - withLuaPath: "/usr/bin/lua5.3" + withLuaPath: "/usr/bin/lua" - name: Install lunatest run: luarocks install lunatest From 7067addead07d07eb5c85f4ccf6a2fd78bad2bd8 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:43:30 -0500 Subject: [PATCH 26/46] added luac to manual install props Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 0b86bf1..d9d7673 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -31,7 +31,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -q libreadline-dev libncurses-dev -y - sudo apt-get install lua5.3 -y + sudo apt-get install lua5.3 luac5.3 -y ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners From dd843d36cc07f52b12c3347a809b3f3ce18d1b07 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:49:56 -0500 Subject: [PATCH 27/46] Updated lua install paths Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index d9d7673..2195e98 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -30,8 +30,9 @@ jobs: - name: Lua Install run: | sudo apt-get update - sudo apt-get install -q libreadline-dev libncurses-dev -y - sudo apt-get install lua5.3 luac5.3 -y + sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y + sudo update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/lua5.3 + sudo update-alternatives --install /usr/bin/luac lua-compiler /usr/bin/luac5.3 ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners From ebcb4374743d6ebc3dd17092dd8d3c3b8cc487c6 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:52:39 -0500 Subject: [PATCH 28/46] added priority on sudo update-alternatives calls Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 2195e98..b30925e 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -31,8 +31,8 @@ jobs: run: | sudo apt-get update sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y - sudo update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/lua5.3 - sudo update-alternatives --install /usr/bin/luac lua-compiler /usr/bin/luac5.3 + sudo update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/lua5.3 130 + sudo update-alternatives --install /usr/bin/luac lua-compiler /usr/bin/luac5.3 130 ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners From a4ef98406bce967bcc3d6a014a31e17dd93df1d9 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:55:20 -0500 Subject: [PATCH 29/46] Removed lua alternative location Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index b30925e..319801a 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -31,8 +31,6 @@ jobs: run: | sudo apt-get update sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y - sudo update-alternatives --install /usr/bin/lua lua-interpreter /usr/bin/lua5.3 130 - sudo update-alternatives --install /usr/bin/luac lua-compiler /usr/bin/luac5.3 130 ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners @@ -47,7 +45,7 @@ jobs: - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 with: - withLuaPath: "/usr/bin/lua" + withLuaPath: "/usr/bin/lua5.3" - name: Install lunatest run: luarocks install lunatest From 2e1c66888c7957d31255a65df3301a3950fe443c Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:57:38 -0500 Subject: [PATCH 30/46] Debug info added Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 319801a..aaa749b 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -31,7 +31,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y - + which lua ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 From de601be311c73dbd16f5b61c310ae059911c5844 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:58:59 -0500 Subject: [PATCH 31/46] Using the path specified on which lua with lua -v Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index aaa749b..735d6d2 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -45,7 +45,7 @@ jobs: - name: Install LuaRocks uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 with: - withLuaPath: "/usr/bin/lua5.3" + withLuaPath: "/usr/bin/lua" - name: Install lunatest run: luarocks install lunatest From d180ffe31a97639cec6b9703b11bc262c437fc93 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 16:59:50 -0500 Subject: [PATCH 32/46] More debug Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 735d6d2..de9ccfe 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -32,6 +32,7 @@ jobs: sudo apt-get update sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y which lua + lua -v ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 From 9ed5144a31d34d91c6a7d72e1b30209c882b9c76 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 17:02:28 -0500 Subject: [PATCH 33/46] manually going after luarocks Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index de9ccfe..ea22929 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -33,6 +33,7 @@ jobs: sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y which lua lua -v + sudo apt-get install luarocks-3.8.0 -y ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 @@ -41,12 +42,13 @@ jobs: # uses: leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e # v10.0.0 # with: # luaVersion: '5.3' - ############## - - name: Install LuaRocks - uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 - with: - withLuaPath: "/usr/bin/lua" + + #- name: Install LuaRocks + # uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 + # with: + # withLuaPath: "/usr/bin/lua" + ############## - name: Install lunatest run: luarocks install lunatest From 72cf3dd0670d1edd9a8f53bde3558f9bed169714 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 17:04:19 -0500 Subject: [PATCH 34/46] luarocks install attempt #2 Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index ea22929..c55bd8a 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -33,7 +33,7 @@ jobs: sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y which lua lua -v - sudo apt-get install luarocks-3.8.0 -y + sudo apt-get install luarocks -y ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 From 94accd23c6bf5775de5da3962e2a31982f090852 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 17:08:41 -0500 Subject: [PATCH 35/46] Verifiying luarocks info Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index c55bd8a..61d9c88 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -31,9 +31,11 @@ jobs: run: | sudo apt-get update sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y - which lua - lua -v sudo apt-get install luarocks -y + which lua + lua -v + which luarocks + luarocks --version ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 From a6ac5c1f2c09a2eef932165bdcac316d1482ac87 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 17:11:16 -0500 Subject: [PATCH 36/46] Updated path to luarocks Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 61d9c88..ff0736d 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -53,19 +53,19 @@ jobs: ############## - name: Install lunatest - run: luarocks install lunatest + run: /usr/bin/luarocks install lunatest - name: Install luacov - run: luarocks install luacov + run: /usr/bin/luarocks install luacov - name: Install luacov-console - run: luarocks install luacov-console + run: /usr/bin/luarocks install luacov-console - name: Install cjson - run: luarocks install lua-cjson + run: /usr/bin/luarocks install lua-cjson - name: Install luasocket - run: luarocks install luasocket + run: /usr/bin/luarocks install luasocket - name: Run tests run: lua test.lua From 992c5bb9157469c7b94aec7cd90a15d2d469feca Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 17:14:17 -0500 Subject: [PATCH 37/46] run luarocks as sudoer Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index ff0736d..e986e12 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -53,19 +53,19 @@ jobs: ############## - name: Install lunatest - run: /usr/bin/luarocks install lunatest + run: sudo luarocks install lunatest - name: Install luacov - run: /usr/bin/luarocks install luacov + run: sudo luarocks install luacov - name: Install luacov-console - run: /usr/bin/luarocks install luacov-console + run: sudo luarocks install luacov-console - name: Install cjson - run: /usr/bin/luarocks install lua-cjson + run: sudo luarocks install lua-cjson - name: Install luasocket - run: /usr/bin/luarocks install luasocket + run: sudo luarocks install luasocket - name: Run tests run: lua test.lua From f0bb493918331cc25cf9d7a7cda4cb2a5e208b3d Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 17:17:01 -0500 Subject: [PATCH 38/46] Revisited how i'm pulling in lua Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index e986e12..8fec6d4 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -30,12 +30,8 @@ jobs: - name: Lua Install run: | sudo apt-get update - sudo apt-get install -q build-essential libreadline-dev libncurses-dev lua5.3 -y - sudo apt-get install luarocks -y - which lua - lua -v - which luarocks - luarocks --version + sudo apt-get install -q build-essential libreadline-dev libncurses-dev liblua5.3-dev luarocks -y + ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 @@ -53,19 +49,19 @@ jobs: ############## - name: Install lunatest - run: sudo luarocks install lunatest + run: luarocks install lunatest - name: Install luacov - run: sudo luarocks install luacov + run: luarocks install luacov - name: Install luacov-console - run: sudo luarocks install luacov-console + run: luarocks install luacov-console - name: Install cjson - run: sudo luarocks install lua-cjson + run: luarocks install lua-cjson - name: Install luasocket - run: sudo luarocks install luasocket + run: luarocks install luasocket - name: Run tests run: lua test.lua From 0f363cad44df1e5f430f6e9d76e4fea59a50b230 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 19:56:49 -0500 Subject: [PATCH 39/46] Installing lua from source and luarocks Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 8fec6d4..85abfa8 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -27,11 +27,6 @@ jobs: - name: Checkout repository uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 - - name: Lua Install - run: | - sudo apt-get update - sudo apt-get install -q build-essential libreadline-dev libncurses-dev liblua5.3-dev luarocks -y - ############# # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 @@ -48,20 +43,36 @@ jobs: # withLuaPath: "/usr/bin/lua" ############## + - name: Lua Install + run: | + sudo apt-get update + sudo apt-get install build-essential libreadline-dev + mkdir lua_build && cd lua_build + curl -R -O http://www.lua.org/ftp/lua-5.3.6.tar.gz + tar xzf lua-5.3.6.tar.gz && cd lua-5.3.6 + make linux test + sudo make install + + - name: Luarocks Install + run: | + curl https://luarocks.org/releases/luarocks-3.8.0.tar.gz + tar xzfp luarocks-3.8.0.tar.gz && cd luarocks-3.8.0 + ./configure && make && sudo make install + - name: Install lunatest - run: luarocks install lunatest + run: sudo luarocks install lunatest - name: Install luacov - run: luarocks install luacov + run: sudo luarocks install luacov - name: Install luacov-console - run: luarocks install luacov-console + run: sudo luarocks install luacov-console - name: Install cjson - run: luarocks install lua-cjson + run: sudo luarocks install lua-cjson - name: Install luasocket - run: luarocks install luasocket + run: sudo luarocks install luasocket - name: Run tests run: lua test.lua From f5a7fe37601ab66a88f246494afbbdf29d3f08e3 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 19:59:27 -0500 Subject: [PATCH 40/46] Forgot to add the -y flag on the apt-get install Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 85abfa8..440f23c 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -46,7 +46,7 @@ jobs: - name: Lua Install run: | sudo apt-get update - sudo apt-get install build-essential libreadline-dev + sudo apt-get install build-essential libreadline-dev -y mkdir lua_build && cd lua_build curl -R -O http://www.lua.org/ftp/lua-5.3.6.tar.gz tar xzf lua-5.3.6.tar.gz && cd lua-5.3.6 From fbd8d144d6b7ec45cd94e6edbcb6a28e6b2a823d Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 20:02:12 -0500 Subject: [PATCH 41/46] back to pulling lua from apt-get Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 440f23c..2fe262d 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -46,12 +46,7 @@ jobs: - name: Lua Install run: | sudo apt-get update - sudo apt-get install build-essential libreadline-dev -y - mkdir lua_build && cd lua_build - curl -R -O http://www.lua.org/ftp/lua-5.3.6.tar.gz - tar xzf lua-5.3.6.tar.gz && cd lua-5.3.6 - make linux test - sudo make install + sudo apt-get install build-essential libreadline-dev lua5.3 -y - name: Luarocks Install run: | From 04364385fa7d651b97c86648062f3a4982699ecb Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 20:05:02 -0500 Subject: [PATCH 42/46] switched protocol from curl to wget Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 2fe262d..a39eadb 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -50,8 +50,8 @@ jobs: - name: Luarocks Install run: | - curl https://luarocks.org/releases/luarocks-3.8.0.tar.gz - tar xzfp luarocks-3.8.0.tar.gz && cd luarocks-3.8.0 + wget https://luarocks.org/releases/luarocks-3.8.0.tar.gz + tar xzfp luarocks-3.8.0.tar.gz; cd luarocks-3.8.0 ./configure && make && sudo make install - name: Install lunatest From 0416aa5528a4f4287f26bd84a9dd9f1fbe8ff4a6 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 20:07:03 -0500 Subject: [PATCH 43/46] Playing with lua continues. Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index a39eadb..d73d25e 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -50,6 +50,7 @@ jobs: - name: Luarocks Install run: | + sudo apt-get update && sudo apt-get install wget wget https://luarocks.org/releases/luarocks-3.8.0.tar.gz tar xzfp luarocks-3.8.0.tar.gz; cd luarocks-3.8.0 ./configure && make && sudo make install From b246169a12f36d5f0a38a7e4004949d8b75820d6 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 20:10:05 -0500 Subject: [PATCH 44/46] adding liblua5.3-dev Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index d73d25e..36117d9 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -46,11 +46,11 @@ jobs: - name: Lua Install run: | sudo apt-get update - sudo apt-get install build-essential libreadline-dev lua5.3 -y + sudo apt-get install build-essential libreadline-dev lua5.3 liblua5.3-dev -y - name: Luarocks Install run: | - sudo apt-get update && sudo apt-get install wget + sudo apt-get update && sudo apt-get install wget -y wget https://luarocks.org/releases/luarocks-3.8.0.tar.gz tar xzfp luarocks-3.8.0.tar.gz; cd luarocks-3.8.0 ./configure && make && sudo make install From 80acc94e7f1b8fb27ea66ed219cf7f0565171c15 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 26 Apr 2024 20:26:07 -0500 Subject: [PATCH 45/46] Added a little bit of code cleanup Signed-off-by: Roger Barker --- .github/workflows/proxy-tests.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/proxy-tests.yml b/.github/workflows/proxy-tests.yml index 36117d9..e2d03c8 100644 --- a/.github/workflows/proxy-tests.yml +++ b/.github/workflows/proxy-tests.yml @@ -28,7 +28,7 @@ jobs: uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3 ############# - # Note: leado/gh-actions-lua doesn't seem to work with self-hosted runners + # Note: leafo/gh-actions-lua doesn't seem to work with self-hosted runners # See issue #33 https://github.com/leafo/gh-actions-lua/issues/33 #- name: Install Lua @@ -36,11 +36,8 @@ jobs: # with: # luaVersion: '5.3' - #- name: Install LuaRocks # uses: leafo/gh-actions-luarocks@e65774a6386cb4f24e293dca7fc4ff89165b64c5 # v4.3.0 - # with: - # withLuaPath: "/usr/bin/lua" ############## - name: Lua Install From 6c9b9c5042de312287bfb6c214f9da70c216563a Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Mon, 29 Apr 2024 11:20:26 -0500 Subject: [PATCH 46/46] Updates made per PR Signed-off-by: Roger Barker --- .github/CODEOWNERS | 3 --- .github/dependabot.yml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 73de27c..08f6421 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -29,9 +29,6 @@ # Protection Rules for Github Configuration Files and Actions Workflows /.github/ @hashgraph/release-engineering @hashgraph/release-engineering-managers -# Legacy Maven project files -**/pom.xml @hashgraph/release-engineering @hashgraph/release-engineering-managers - # Codacy Tool Configurations /config/ @hashgraph/release-engineering @hashgraph/release-engineering-managers .remarkrc @hashgraph/release-engineering @hashgraph/release-engineering-managers diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 65b98a7..f32cb12 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,6 +11,6 @@ updates: interval: daily - package-ecosystem: npm - directory: /subgraphs/saucerswap/v2 + directory: /subgraphs/ schedule: interval: daily