File tree Expand file tree Collapse file tree 3 files changed +23
-37
lines changed
Expand file tree Collapse file tree 3 files changed +23
-37
lines changed Original file line number Diff line number Diff line change 1- # TODO: Uncomment this
2- # # This workflow prevents TODOs in code
3- # name: Check TODOs in code
1+ # This workflow prevents TODOs in code
2+ name : Check TODOs in code
43
5- # on:
6- # pull_request:
7- # push:
8- # branches:
9- # - main
4+ on :
5+ pull_request :
6+ push :
7+ branches :
8+ - main
109
11- # jobs:
12- # findTodos:
13- # runs-on: macos-13
14- # steps:
15- # - uses: actions/checkout@v3
10+ jobs :
11+ findTodos :
12+ runs-on : macos-13
13+ steps :
14+ - uses : actions/checkout@v3
1615
17- # - name: Check TODOs in code
18- # shell: bash
19- # # TODOs may be committed as long as the same line contains a link to a Github Issue or refers to a CrypTool SIM.
20- # run: |
21- # ALL_TODO_COUNT=$( { grep -r "TODO" . --exclude-dir=./releases --exclude-dir=./TestVectors/runtimes --exclude-dir=./submodules --exclude-dir=./.git --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
22- # GOOD_TODO_COUNT=$( { grep -r "TODO.*\(github.com\/.*issues.*\/[1-9][0-9]*\|CrypTool-[1-9][0-9]*\)" . --exclude-dir=./releases --exclude-dir=./submodules --exclude-dir=./.git --exclude-dir=./TestVectors/runtimes --exclude=./.github/workflows/ci_todos.yml || true; } | wc -l)
23- # if [ "$ALL_TODO_COUNT" != "$GOOD_TODO_COUNT" ]; then
24- # exit 1;
25- # fi
16+ - name : Check TODOs in code
17+ shell : bash
18+ # TODOs may be committed as long as the same line contains a link to a Github Issue or refers to a CrypTool SIM.
19+ run : |
20+ ALL_TODO_COUNT=$( { grep -r "TODO" . --exclude-dir=./releases --exclude-dir=./TestVectors/runtimes --exclude-dir=./submodules --exclude-dir=./.git --exclude=./.github/workflows/ci_todos.yml | grep -v "context\.TODO()" || true; } | wc -l)
21+ GOOD_TODO_COUNT=$( { grep -r "TODO.*\(github.com\/.*issues.*\/[1-9][0-9]*\|CrypTool-[1-9][0-9]*\)" . --exclude-dir=./releases --exclude-dir=./submodules --exclude-dir=./.git --exclude-dir=./TestVectors/runtimes --exclude=./.github/workflows/ci_todos.yml | grep -v "context\.TODO()" || true; } | wc -l)
22+ if [ "$ALL_TODO_COUNT" != "$GOOD_TODO_COUNT" ]; then
23+ exit 1;
24+ fi
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ SERVICE_DEPS_DynamoDbEncryptionTransforms := \
102102 DynamoDbEncryption/dafny/DynamoDbItemEncryptor
103103
104104# Go
105- # TODO: Define the name later
105+ # TODO-Go-ORR : Define the name later https://sim.amazon.com/issues/CrypTool-5444
106106# This will probably get changes to */releases/go/* but I will bring this to the team later.
107107GO_MODULE_NAME ="github.com/aws/aws-database-encryption-sdk-dynamodb"
108108
Original file line number Diff line number Diff line change @@ -148,19 +148,6 @@ _sed_types_file_add_extern:
148148
149149_polymorph_go : purge_polymorph_code
150150
151- # Smithy-dafny generated shim needs a long term fix.
152- # TODO: Remove this commands once smithy-dafny is fixed
153- # This commands does not work on windows
154- # https://taskei.amazon.dev/tasks/CrypTool-5283
155- purge_polymorph_code :
156- find .. -name " shim.go" | xargs sed -i $(SED_PARAMETER ) ' s/(_static \*CompanionStruct_Default___)//g'
157- rm -rf runtimes/go/ImplementationFromDafny-go/awscryptographydbencryptionsdkdynamodbsmithygenerated \
158- runtimes/go/ImplementationFromDafny-go/awscryptographydbencryptionsdkdynamodbsmithygeneratedtypes \
159- runtimes/go/ImplementationFromDafny-go/WrappedAwsCryptographyDbEncryptionSdkDynamoDbService \
160- runtimes/go/TestsFromDafny-go/awscryptographydbencryptionsdkdynamodbsmithygenerated \
161- runtimes/go/TestsFromDafny-go/awscryptographydbencryptionsdkdynamodbsmithygeneratedtypes \
162- runtimes/go/TestsFromDafny-go/WrappedAwsCryptographyDbEncryptionSdkDynamoDbService
163-
164151# Go
165152GO_MODULE_NAME ="github.com/aws/aws-database-encryption-sdk-dynamodb/testvectors"
166153
@@ -213,7 +200,7 @@ _sed_index_file_remove_extern:
213200_polymorph_go : purge_polymorph_code
214201
215202# Smithy-dafny generated shim needs a long term fix.
216- # TODO: Remove this commands once smithy-dafny is fixed
203+ # TODO: Remove this commands once smithy-dafny is fixed https://sim.amazon.com/issues/CrypTool-5445
217204# This commands does not work on windows
218205# https://taskei.amazon.dev/tasks/CrypTool-5283
219206purge_polymorph_code :
You can’t perform that action at this time.
0 commit comments