From 656f2145ae7fc268a54da5098bbed0179cab5aff Mon Sep 17 00:00:00 2001 From: pavan-nambi Date: Tue, 3 Jan 2023 21:02:49 +0530 Subject: [PATCH 1/7] chore(CI):removing solc-select install all lines --- .github/workflows/IR.yml | 1 - .github/workflows/ci.yml | 1 - .github/workflows/detectors.yml | 1 - .github/workflows/features.yml | 1 - 4 files changed, 4 deletions(-) diff --git a/.github/workflows/IR.yml b/.github/workflows/IR.yml index 434cef75b..b1d11478f 100644 --- a/.github/workflows/IR.yml +++ b/.github/workflows/IR.yml @@ -34,7 +34,6 @@ jobs: - name: Install dependencies run: | pip install ".[dev]" - solc-select install all solc-select use 0.8.11 - name: Test with pytest diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ae5326a8..7338d248c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,6 @@ jobs: - name: Install dependencies run: | pip install ".[dev]" - solc-select install all solc-select use 0.5.1 pip install typing_extensions==4.1.1 pip install importlib_metadata==4.8.3 diff --git a/.github/workflows/detectors.yml b/.github/workflows/detectors.yml index 8f3b45d15..c85e8d26b 100644 --- a/.github/workflows/detectors.yml +++ b/.github/workflows/detectors.yml @@ -35,7 +35,6 @@ jobs: run: | pip install ".[dev]" - solc-select install all solc-select use 0.7.3 - name: Test with pytest run: | diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml index 49db14793..14150388a 100644 --- a/.github/workflows/features.yml +++ b/.github/workflows/features.yml @@ -35,7 +35,6 @@ jobs: run: | pip install ".[dev]" - solc-select install all solc-select use 0.8.0 cd tests/test_node_modules/ From 3e67fff11768e6c39f8f82cc65ef1c0f883723ff Mon Sep 17 00:00:00 2001 From: pavan-nambi Date: Tue, 3 Jan 2023 21:21:03 +0530 Subject: [PATCH 2/7] update(#1546) --- .github/workflows/IR.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/detectors.yml | 2 +- .github/workflows/features.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/IR.yml b/.github/workflows/IR.yml index b1d11478f..29e6ba2a0 100644 --- a/.github/workflows/IR.yml +++ b/.github/workflows/IR.yml @@ -34,7 +34,7 @@ jobs: - name: Install dependencies run: | pip install ".[dev]" - solc-select use 0.8.11 + solc-select use 0.8.11--always-install - name: Test with pytest run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7338d248c..ff038574a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: - name: Install dependencies run: | pip install ".[dev]" - solc-select use 0.5.1 + solc-select use 0.5.1--always-install pip install typing_extensions==4.1.1 pip install importlib_metadata==4.8.3 diff --git a/.github/workflows/detectors.yml b/.github/workflows/detectors.yml index c85e8d26b..ff568a046 100644 --- a/.github/workflows/detectors.yml +++ b/.github/workflows/detectors.yml @@ -35,7 +35,7 @@ jobs: run: | pip install ".[dev]" - solc-select use 0.7.3 + solc-select use 0.7.3--always-install - name: Test with pytest run: | pytest tests/test_detectors.py diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml index 14150388a..dada1e141 100644 --- a/.github/workflows/features.yml +++ b/.github/workflows/features.yml @@ -35,7 +35,7 @@ jobs: run: | pip install ".[dev]" - solc-select use 0.8.0 + solc-select use 0.8.0--always-install cd tests/test_node_modules/ npm install hardhat From 41806075a6d258fdfedae91f8263bf27c6231aa7 Mon Sep 17 00:00:00 2001 From: pavan-nambi Date: Tue, 3 Jan 2023 21:42:30 +0530 Subject: [PATCH 3/7] update2(#1546) --- .github/workflows/IR.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/detectors.yml | 2 +- .github/workflows/features.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/IR.yml b/.github/workflows/IR.yml index 29e6ba2a0..c5187da65 100644 --- a/.github/workflows/IR.yml +++ b/.github/workflows/IR.yml @@ -34,7 +34,7 @@ jobs: - name: Install dependencies run: | pip install ".[dev]" - solc-select use 0.8.11--always-install + solc-select use 0.8.11 --always-install - name: Test with pytest run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff038574a..3378cd420 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: - name: Install dependencies run: | pip install ".[dev]" - solc-select use 0.5.1--always-install + solc-select use 0.5.1 --always-install pip install typing_extensions==4.1.1 pip install importlib_metadata==4.8.3 diff --git a/.github/workflows/detectors.yml b/.github/workflows/detectors.yml index ff568a046..15aa8a5dd 100644 --- a/.github/workflows/detectors.yml +++ b/.github/workflows/detectors.yml @@ -35,7 +35,7 @@ jobs: run: | pip install ".[dev]" - solc-select use 0.7.3--always-install + solc-select use 0.7.3 --always-install - name: Test with pytest run: | pytest tests/test_detectors.py diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml index dada1e141..5007fd7bf 100644 --- a/.github/workflows/features.yml +++ b/.github/workflows/features.yml @@ -35,7 +35,7 @@ jobs: run: | pip install ".[dev]" - solc-select use 0.8.0--always-install + solc-select use 0.8.0 --always-install cd tests/test_node_modules/ npm install hardhat From 23d77e23fd0b7d89504d0b6ff291a0b50f370101 Mon Sep 17 00:00:00 2001 From: pavan-nambi Date: Wed, 4 Jan 2023 19:07:55 +0530 Subject: [PATCH 4/7] refractor(ver-in-path_filterin) --- scripts/ci_test_path_filtering.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci_test_path_filtering.sh b/scripts/ci_test_path_filtering.sh index fb2a18842..838ecfa1d 100644 --- a/scripts/ci_test_path_filtering.sh +++ b/scripts/ci_test_path_filtering.sh @@ -2,7 +2,7 @@ ### Test path filtering across POSIX and Windows -solc-select use 0.8.0 +solc-select use 0.5.0 slither "tests/test_path_filtering/test_path_filtering.sol" --config "tests/test_path_filtering/slither.config.json" > "output.txt" 2>&1 if ! grep -q "0 result(s) found" "output.txt" From 8388597e77708e200ba3916db6feb668ad823212 Mon Sep 17 00:00:00 2001 From: pavan-nambi Date: Wed, 4 Jan 2023 19:30:26 +0530 Subject: [PATCH 5/7] Revert "refractor(ver-in-path_filterin)" This reverts commit 23d77e23fd0b7d89504d0b6ff291a0b50f370101. --- scripts/ci_test_path_filtering.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ci_test_path_filtering.sh b/scripts/ci_test_path_filtering.sh index 838ecfa1d..fb2a18842 100644 --- a/scripts/ci_test_path_filtering.sh +++ b/scripts/ci_test_path_filtering.sh @@ -2,7 +2,7 @@ ### Test path filtering across POSIX and Windows -solc-select use 0.5.0 +solc-select use 0.8.0 slither "tests/test_path_filtering/test_path_filtering.sol" --config "tests/test_path_filtering/slither.config.json" > "output.txt" 2>&1 if ! grep -q "0 result(s) found" "output.txt" From 9015e739c2e60b5c4df8889b7fb13970ff77e2c1 Mon Sep 17 00:00:00 2001 From: pavan-nambi Date: Wed, 4 Jan 2023 20:05:16 +0530 Subject: [PATCH 6/7] update(adding-more-installations) --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3378cd420..73cba44b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,8 @@ jobs: - name: Install dependencies run: | pip install ".[dev]" + solc-select use 0.4.25 --always-install + solc-select use 0.8.0 --always-install solc-select use 0.5.1 --always-install pip install typing_extensions==4.1.1 pip install importlib_metadata==4.8.3 From d1b875d85e7e3660bd5fcc2d90ed68c6f1c8f479 Mon Sep 17 00:00:00 2001 From: pavan-nambi Date: Fri, 6 Jan 2023 02:25:17 +0530 Subject: [PATCH 7/7] update --- .github/workflows/IR.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/IR.yml b/.github/workflows/IR.yml index c5187da65..891de2bfb 100644 --- a/.github/workflows/IR.yml +++ b/.github/workflows/IR.yml @@ -34,8 +34,14 @@ jobs: - name: Install dependencies run: | pip install ".[dev]" + solc-select install 0.5.0 solc-select use 0.8.11 --always-install + - name: Install old solc + if: matrix.os == 'ubuntu-latest' + run: solc-select install 0.4.0 + + - name: Test with pytest run: | - pytest tests/test_ssa_generation.py + pytest tests/test_ssa_generation.py \ No newline at end of file