galtimur's picture
Upload 78 files
11c83cb verified
raw
history blame
No virus
9.64 kB
{"language": "Python", "id": 35, "repo_owner": "aws", "repo_name": "serverless-application-model", "head_branch": "layer-version-fix", "workflow_name": "Tests", "workflow_filename": "build.yml", "workflow_path": ".github/workflows/build.yml", "contributor": "aws", "sha_fail": "76777e3ab9a15fe11ef4219804cf9c09c04fcf13", "sha_success": "1b6c3f8087a787c8c2bcb0dc201f11a2c4694428", "workflow": "name: Tests\n\non:\n push:\n branches:\n - develop\n - \"feat-*\"\n pull_request:\n workflow_dispatch:\n merge_group:\n types: [checks_requested]\n\njobs:\n build:\n name: ${{ matrix.os }} / ${{ matrix.python }}\n runs-on: ${{ matrix.os }}\n strategy:\n fail-fast: false\n matrix:\n os:\n - ubuntu-latest\n python:\n - \"3.7\"\n - \"3.8\"\n - \"3.9\"\n - \"3.10\"\n - \"3.11\"\n steps:\n - uses: actions/checkout@v3\n - uses: actions/setup-python@v4\n with:\n python-version: ${{ matrix.python }}\n - run: make init\n - run: make pr\n", "logs": [{"step_name": "ubuntu-latest 3.7/5_Run make pr.txt", "log": "##[group]Run make pr\n\u001b[36;1mmake pr\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.7.17/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib\n##[endgroup]\n# Checking latest schema was generated (run `make schema` if this fails)\nmkdir -p .tmp\npython -m samtranslator.internal.schema_source.schema --sam-schema .tmp/sam.schema.json --cfn-schema schema_source/cloudformation.schema.json --unified-schema .tmp/schema.json\ndiff -u schema_source/sam.schema.json .tmp/sam.schema.json\ndiff -u samtranslator/schema/schema.json .tmp/schema.json\nblack --check setup.py samtranslator tests integration bin schema_source\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/actions.py\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/traverse.py\n\nOh no! \ud83d\udca5 \ud83d\udc94 \ud83d\udca5\n2 files would be reformatted, 363 files would be left unchanged.\nmake: *** [Makefile:40: format-check] Error 1\n##[error]Process completed with exit code 2.\n"}, {"step_name": "ubuntu-latest 3.8/5_Run make pr.txt", "log": "##[group]Run make pr\n\u001b[36;1mmake pr\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\n# Checking latest schema was generated (run `make schema` if this fails)\nmkdir -p .tmp\npython -m samtranslator.internal.schema_source.schema --sam-schema .tmp/sam.schema.json --cfn-schema schema_source/cloudformation.schema.json --unified-schema .tmp/schema.json\ndiff -u schema_source/sam.schema.json .tmp/sam.schema.json\ndiff -u samtranslator/schema/schema.json .tmp/schema.json\nblack --check setup.py samtranslator tests integration bin schema_source\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/actions.py\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/traverse.py\n\nOh no! \ud83d\udca5 \ud83d\udc94 \ud83d\udca5\n2 files would be reformatted, 363 files would be left unchanged.\nmake: *** [Makefile:40: format-check] Error 1\n##[error]Process completed with exit code 2.\n"}, {"step_name": "ubuntu-latest 3.9/5_Run make pr.txt", "log": "##[group]Run make pr\n\u001b[36;1mmake pr\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib\n##[endgroup]\n# Checking latest schema was generated (run `make schema` if this fails)\nmkdir -p .tmp\npython -m samtranslator.internal.schema_source.schema --sam-schema .tmp/sam.schema.json --cfn-schema schema_source/cloudformation.schema.json --unified-schema .tmp/schema.json\ndiff -u schema_source/sam.schema.json .tmp/sam.schema.json\ndiff -u samtranslator/schema/schema.json .tmp/schema.json\nblack --check setup.py samtranslator tests integration bin schema_source\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/actions.py\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/traverse.py\n\nOh no! \ud83d\udca5 \ud83d\udc94 \ud83d\udca5\n2 files would be reformatted, 363 files would be left unchanged.\nmake: *** [Makefile:40: format-check] Error 1\n##[error]Process completed with exit code 2.\n"}, {"step_name": "ubuntu-latest 3.10/5_Run make pr.txt", "log": "##[group]Run make pr\n\u001b[36;1mmake pr\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib\n##[endgroup]\n# Checking latest schema was generated (run `make schema` if this fails)\nmkdir -p .tmp\npython -m samtranslator.internal.schema_source.schema --sam-schema .tmp/sam.schema.json --cfn-schema schema_source/cloudformation.schema.json --unified-schema .tmp/schema.json\ndiff -u schema_source/sam.schema.json .tmp/sam.schema.json\ndiff -u samtranslator/schema/schema.json .tmp/schema.json\nblack --check setup.py samtranslator tests integration bin schema_source\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/actions.py\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/traverse.py\n\nOh no! \ud83d\udca5 \ud83d\udc94 \ud83d\udca5\n2 files would be reformatted, 363 files would be left unchanged.\nmake: *** [Makefile:40: format-check] Error 1\n##[error]Process completed with exit code 2.\n"}, {"step_name": "ubuntu-latest 3.11/5_Run make pr.txt", "log": "##[group]Run make pr\n\u001b[36;1mmake pr\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.11.6/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.6/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.6/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.6/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.6/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.6/x64/lib\n##[endgroup]\n# Checking latest schema was generated (run `make schema` if this fails)\nmkdir -p .tmp\npython -m samtranslator.internal.schema_source.schema --sam-schema .tmp/sam.schema.json --cfn-schema schema_source/cloudformation.schema.json --unified-schema .tmp/schema.json\ndiff -u schema_source/sam.schema.json .tmp/sam.schema.json\ndiff -u samtranslator/schema/schema.json .tmp/schema.json\nblack --check setup.py samtranslator tests integration bin schema_source\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/actions.py\nwould reformat /home/runner/work/serverless-application-model/serverless-application-model/samtranslator/utils/traverse.py\n\nOh no! \ud83d\udca5 \ud83d\udc94 \ud83d\udca5\n2 files would be reformatted, 363 files would be left unchanged.\nmake: *** [Makefile:40: format-check] Error 1\n##[error]Process completed with exit code 2.\n"}], "diff": "diff --git a/samtranslator/utils/actions.py b/samtranslator/utils/actions.py\nindex 10c1fd7b..921914a0 100644\n--- a/samtranslator/utils/actions.py\n+++ b/samtranslator/utils/actions.py\n@@ -15,7 +15,7 @@ class Action(ABC):\n \n class ResolveDependsOn(Action):\n DependsOn = \"DependsOn\"\n- \n+\n def __init__(self, resolution_data: Dict[str, str]):\n \"\"\"\n Initializes ResolveDependsOn. Where data necessary to resolve execute can be provided.\ndiff --git a/samtranslator/utils/traverse.py b/samtranslator/utils/traverse.py\nindex 3ab9e1c5..ea5ec5e7 100644\n--- a/samtranslator/utils/traverse.py\n+++ b/samtranslator/utils/traverse.py\n@@ -19,7 +19,7 @@ def traverse(\n \n :param input_value: Any primitive type (dict, array, string etc) whose value might contain a changed value\n :param actions: Method that will be called to actually resolve the function.\n- :return: Modified `input` with values resolved \n+ :return: Modified `input` with values resolved\n \"\"\"\n \n for action in actions:\n", "difficulty": 0, "changed_files": ["samtranslator/utils/actions.py", "samtranslator/utils/traverse.py"], "commit_link": "https://github.com/aws/serverless-application-model/tree/76777e3ab9a15fe11ef4219804cf9c09c04fcf13"}