From caeab557fc4b569caaa17a4c0757f817203c2ea8 Mon Sep 17 00:00:00 2001 From: Igor Abdrakhimov Date: Fri, 27 Dec 2024 14:03:46 -0800 Subject: [PATCH] Disable Greengrass tests --- .github/workflows/ci.yml | 62 ---------------------------------------- 1 file changed, 62 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed420b850..c4fa6fd0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,8 +36,6 @@ env: CI_SECURE_TUNNEL: arn:aws:iam::180635532705:role/CI_SecureTunnel_Role CI_X509_ROLE: arn:aws:iam::180635532705:role/CI_X509_Role CI_MQTT5_ROLE: arn:aws:iam::180635532705:role/CI_MQTT5_Role - CI_GREENGRASS_ROLE: arn:aws:iam::180635532705:role/CI_Greengrass_Role - CI_GREENGRASS_INSTALLER_ROLE: arn:aws:iam::180635532705:role/CI_GreengrassInstaller_Role CI_JOBS_SERVICE_CLIENT_ROLE: arn:aws:iam::180635532705:role/CI_JobsServiceClient_Role CI_SHADOW_SERVICE_CLIENT_ROLE: arn:aws:iam::180635532705:role/CI_ShadowServiceClient_Role @@ -644,66 +642,6 @@ jobs: run: | python3 ${{ env.CI_UTILS_FOLDER }}/run_sample_ci.py --file ${{ env.CI_SAMPLES_CFG_FOLDER }}/ci_run_x509_connect_cfg.json - # Runs the Greengrass samples - linux-greengrass-tests: - runs-on: ubuntu-latest - permissions: - id-token: write # This is required for requesting the JWT - steps: - - name: Setup C++ - run: | - sudo apt-get -qq update -y - sudo apt-get -qq install -y build-essential - sudo apt install cmake - gcc --version - cmake --version - - name: Build ${{ env.PACKAGE_NAME }} + consumers - run: | - echo "Downloading source" - git clone --recursive https://github.com/aws/aws-iot-device-sdk-cpp-v2.git --branch ${{ env.HEAD_REF || github.ref_name }} - echo "Running builder" - python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" - python builder.pyz build -p ${{ env.PACKAGE_NAME }} --variant build_gg_samples_only - - name: Install Greengrass Development Kit - run: | - python3 -m pip install awsiotsdk - python3 -m pip install -U git+https://github.com/aws-greengrass/aws-greengrass-gdk-cli.git@v1.6.2 - - name: Configure AWS credentials (Greengrass) - uses: aws-actions/configure-aws-credentials@v2 - with: - role-to-assume: ${{ env.CI_GREENGRASS_INSTALLER_ROLE }} - aws-region: ${{ env.AWS_DEFAULT_REGION }} - - name: Build and run Greengrass basic discovery sample - working-directory: ./aws-iot-device-sdk-cpp-v2/tests/greengrass/basic_discovery - run: | - gdk component build - gdk test-e2e build - gdk test-e2e run - - name: Show logs - working-directory: ./aws-iot-device-sdk-cpp-v2/tests/greengrass/basic_discovery - # Print logs unconditionally to provide more details on Greengrass run even if the test failed. - if: always() - run: | - echo "=== greengrass.log" - cat testResults/gg*/greengrass.log - echo "=== software.amazon.awssdk.sdk-gg-test-discovery.log" - cat testResults/gg*/software.amazon.awssdk.sdk-gg-test-discovery.log - - name: Build and run Greengrass IPC sample - working-directory: ./aws-iot-device-sdk-cpp-v2/tests/greengrass/ipc - run: | - gdk component build - gdk test-e2e build - gdk test-e2e run - - name: Show logs - working-directory: ./aws-iot-device-sdk-cpp-v2/tests/greengrass/ipc - # Print logs unconditionally to provide more details on Greengrass run even if the test failed. - if: always() - run: | - echo "=== greengrass.log" - cat testResults/gg*/greengrass.log - echo "=== software.amazon.awssdk.sdk-gg-ipc.log" - cat testResults/gg*/software.amazon.awssdk.sdk-gg-ipc.log - # check that docs can still build check-docs: runs-on: ubuntu-20.04 # latest