Skip to content

Commit 24e26d1

Browse files
committed
Debugging CI/CD failure
1 parent ca75546 commit 24e26d1

3 files changed

Lines changed: 46 additions & 5 deletions

File tree

.github/workflows/tests.yml

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,50 @@ jobs:
4040
- name: Pyflakes lint
4141
shell: bash
4242
run: |
43-
set +e
44-
python -m pip install pyflakes
45-
python -c 'import subprocess, sys; files = subprocess.check_output(["git", "ls-files", "*.py"]).decode().splitlines(); files = [f for f in files if not f.startswith("thirdparty/")]; p = subprocess.Popen([sys.executable, "-m", "pyflakes"] + files, stdout=subprocess.PIPE, stderr=subprocess.STDOUT); out, _ = p.communicate(); lines = [l for l in out.decode().splitlines() if " redefines " not in l]; sys.exit(1) if lines else None; print("pyflakes: clean")'
43+
python - <<'PY'
44+
from __future__ import print_function
45+
46+
import subprocess
47+
import sys
48+
49+
subprocess.check_call([
50+
sys.executable, "-m", "pip", "install", "pyflakes"
51+
])
52+
53+
files = subprocess.check_output(
54+
["git", "ls-files", "*.py"]
55+
).decode("utf-8").splitlines()
56+
57+
files = [
58+
f for f in files
59+
if not f.startswith("thirdparty/")
60+
]
61+
62+
proc = subprocess.Popen(
63+
[sys.executable, "-m", "pyflakes"] + files,
64+
stdout=subprocess.PIPE,
65+
stderr=subprocess.STDOUT,
66+
)
67+
out, _ = proc.communicate()
68+
69+
text = out.decode("utf-8", "replace")
70+
lines = [
71+
line for line in text.splitlines()
72+
if " redefines " not in line
73+
]
74+
75+
if lines:
76+
print("\n".join(lines))
77+
sys.exit(1)
78+
79+
if proc.returncode not in (0, 1):
80+
if text:
81+
print(text)
82+
print("pyflakes failed unexpectedly with status %s" % proc.returncode)
83+
sys.exit(proc.returncode or 1)
84+
85+
print("pyflakes: clean")
86+
PY
4687
4788
- name: Basic import test
4889
run: python -c "import sqlmap; import sqlmapapi"

data/txt/sha256sums.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ e033b20a0f7821797a10f4bf4235723f38c7db551c611fbb713faa621b123c4a lib/core/optio
189189
9bf174058f15d14e24e94f9aaf42df045119d3617c6c54bd2f3af79b462f331d lib/core/replication.py
190190
0b8c38a01bb01f843d94a6c5f2075ee47520d0c4aa799cecea9c3e2c5a4a23a6 lib/core/revision.py
191191
888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
192-
b7fd9d9f7857bf73ffc87c607c9f4c6585b50b0793775b9757b72df8eef3e28c lib/core/settings.py
192+
968c2fced6e80aba7dd586c22252d332cc249d58e9290abb51d5bb8f4abb193a lib/core/settings.py
193193
c7804223319e18eb0b8e2cbf0a8b6896d1cefb7b0b1a2e9f1cf826a8a3b56750 lib/core/shell.py
194194
a2e98a94b231432736d6b304fc75525c8b5fdb4768c418387c5b4c1a610dad64 lib/core/subprocessng.py
195195
19f1e3c5e3ba703d28d510cd7a9ab8284d5fbe9df5ce7e77c86e5931571364b7 lib/core/target.py

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.6.180"
23+
VERSION = "1.10.6.181"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)