Skip to content

Patch fetch cc test reporter tool as gist submodule #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
7866f7a
[UPDATE] back-ported tested improvements from multicast project to th…
reactive-firewall Nov 27, 2024
f40d336
[STYLE] fixed some typos (- WIP #79 -)
reactive-firewall Nov 27, 2024
6fc0189
[CI] Part 2 of many (- WIP PR #82 -)
reactive-firewall Dec 9, 2024
acf255f
[CI] Part 3 of many (- WIP PR #82 -)
reactive-firewall Dec 9, 2024
b52b272
[FIX] posible fix for #82
reactive-firewall Mar 20, 2025
42ff73c
[FIX] resolved a config regression (- WIP PR #82 -)
reactive-firewall Mar 20, 2025
b4b8cd1
[FIX] more fixes from review (- WIP PR #82 -)
reactive-firewall Mar 20, 2025
b704d72
[FIX] more fixes for circle-CI this time.
reactive-firewall Mar 20, 2025
5ae38a2
[FIX] fix for Circle CI edge case
reactive-firewall Mar 20, 2025
6a11f9a
[FIX] Regression fix for last commit
reactive-firewall Mar 20, 2025
a600f38
[FIX] fix for regression typo in config for CI.
reactive-firewall Mar 20, 2025
d3efa63
[DEBUG] added more debug code to tool (- WIP PR #82 -)
reactive-firewall Mar 20, 2025
2688da8
[DEBUG] fix regression from last commit (- WIP #82 -)
reactive-firewall Mar 20, 2025
97df053
[DEBUG] more debugging
reactive-firewall Mar 20, 2025
09731ab
[DEBUG] More clean up and tweaks. Does it work yet?
reactive-firewall Mar 20, 2025
f6188e5
[DEBUG] Even more fixes. Does it work now?
reactive-firewall Mar 20, 2025
286b079
[DEBUG] more tricks to fool deepsource hacks. does it work now?
reactive-firewall Mar 20, 2025
4febba3
[DEBUG] break a few eggs for the omlet
reactive-firewall Mar 20, 2025
58f427c
[DEBUG] More fixes. Does it work yet?
reactive-firewall Mar 20, 2025
90d9316
[DEBUG] WTF is going on with deepsource. it is still broken here.
reactive-firewall Mar 20, 2025
5040345
[DEBUG] Stable state. but it does not work yet!
reactive-firewall Mar 20, 2025
297e758
[DEBUG] Re-write tool to actually work (- WIP PR #82 -)
reactive-firewall Mar 21, 2025
84f0d10
[DEBUG] Some fixes for untar permissions (- WIP PR #82 -)
reactive-firewall Mar 21, 2025
c24e2ed
[PATCH] Apply changes from Review (- WIP PR #82 -)
reactive-firewall Mar 21, 2025
0708ad1
[STYLE] apply changes found in review (- WIP pr #82 -)
reactive-firewall Mar 21, 2025
61117e1
[STYLE] Apply changes from review (- WIP PR #82 -)
reactive-firewall Mar 22, 2025
4969152
[CONFIG] refactoring fetch-test-reporter into submodule (- WIP PR #82 -)
reactive-firewall Mar 25, 2025
c79061a
[CONFIG] Part two of refactor (- WIP #79 -)
reactive-firewall Mar 25, 2025
5d9dedd
[PATCH] Update Submodule (- WIP #79 -)
reactive-firewall Mar 25, 2025
c8f329f
[CONFIG] Fix for GHA checkout for submodules (- WIP #79 -)
reactive-firewall Mar 25, 2025
f84cbb7
[PATCH] Fix for cross-plaform import path support (- WIP #79 -)
reactive-firewall Mar 25, 2025
2e29e57
[PATCH] Fix to work around windows braindeath state (- WIP #79 -)
reactive-firewall Mar 25, 2025
e078879
[PATCH] apply changes from review (- WIP PR #82 -)
reactive-firewall Mar 25, 2025
608234f
[PATCH] Update submodule (- WIP #79 -)
reactive-firewall Mar 26, 2025
ee15b1e
[CONFIG] refactor circle-CI to handle submodules (- WIP #79 -)
reactive-firewall Mar 27, 2025
13d9451
[CONFIG] Regression fixes for CircleCI submodule support changes (- W…
reactive-firewall Mar 27, 2025
2680121
[CONFIG] More tweaks for CircleCI submodule support (- WIP #79 -)
reactive-firewall Mar 27, 2025
dc9c842
[CONFIG] Refactor to skip extra pull by CircleCI (- WIP #79 -)
reactive-firewall Mar 27, 2025
d4cef62
[PATCH] implemented PoC support for coveralls coverage reporter via s…
reactive-firewall Mar 27, 2025
c1541d5
[CONFIG] add submodule support to appveyor config (- WIP #79 -)
reactive-firewall Mar 28, 2025
6b59947
[CONFIG] Improve Appveyor setup and install config and fix git submod…
reactive-firewall Mar 28, 2025
8d5c97b
[CONFIG] Possible fix for regression (- WIP PR #82 -)
reactive-firewall Mar 28, 2025
01e170f
[CONFIG] Fix for old regression where COMMAND was not properly setup …
reactive-firewall Mar 28, 2025
66c99dd
[PATCH] Fixes for some regressions (- WIP #82 -)
reactive-firewall Mar 28, 2025
c08d48b
[PATCH] More cleanup and regression fixes (- WIP #82 -)
reactive-firewall Mar 28, 2025
192fc5d
[PATCH] Part 1 of many - possible fix for GHA cross-python testing (-…
reactive-firewall Mar 28, 2025
de98224
[PATCH] Part 2 of many - Possible fix for windows trouble in GHA (- W…
reactive-firewall Mar 28, 2025
d71e4fe
[PATCH] part 3 of many - possible improvement for windows GHA runners…
reactive-firewall Mar 29, 2025
bcba1a1
[PATCH] Small refactor to handle windows with non-functioning `comman…
reactive-firewall Mar 29, 2025
8b240f4
[PATCH] BROKEN just testing behavior
reactive-firewall Mar 29, 2025
1954399
[BROKEN] do not use
reactive-firewall Mar 29, 2025
d376b9e
[PATCH] Also Broken, just a test.
reactive-firewall Mar 29, 2025
9b2efdb
[PATCH] Possible fix for regressions (- WIP PR #82 -)
reactive-firewall Mar 29, 2025
abda4c3
[PATCH] Possible regression fix for coverage (- WIP PR #82 -)
reactive-firewall Mar 29, 2025
4c950d8
[PATCH] Another Possible fix for coverage (- WIP PR #82 -)
reactive-firewall Mar 29, 2025
46fc30b
[PATCH] Another Possible fix for coverage (- WIP PR #82 -)
reactive-firewall Mar 29, 2025
24035af
[PATCH] Coverage fixup for #82
reactive-firewall Mar 29, 2025
6f3ed58
Update Makefile (- WIP PR #82 -)
reactive-firewall Apr 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,26 @@ image:
- Visual Studio 2022
- Visual Studio 2019
clone_depth: 50
init:
install:
- cmd: >-
choco install make || VER>NUL
- cmd: >-
choco install git || VER>NUL
- cmd: >-
choco install python --pre || VER>NUL

choco upgrade python --pre || VER>NUL
- cmd: >-
python -m pip install flake8 || VER>NUL

python -m pip install coverage || VER>NUL
- cmd: >-
choco install codecov || VER>NUL
before_build:
- cmd: >-
choco install make || VER>NUL
git submodule sync || VER>NUL

choco install git || VER>NUL

choco install python --pre || VER>NUL

choco upgrade python --pre || VER>NUL

python -m pip install flake8 || VER>NUL

python -m pip install coverage || VER>NUL

choco install codecov || VER>NUL
git submodule update --init || VER>NUL

dir
build_script:
Expand Down
150 changes: 75 additions & 75 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,117 +1,130 @@
version: 2
---
version: 2.1
commands:
cleanup:
steps:
- run:
shell: /bin/bash
name: "Cleanup"
command: |
make clean
when: always
reposync:
steps:
- run:
shell: /bin/bash
name: "Fetch"
command: |
git fetch --all ;
when: always
- run:
shell: /bin/bash
name: "Sync Submodules"
command: |
git submodule sync ;
when: on_success
- run:
shell: /bin/bash
name: "Update Submodules"
command: |
git submodule update --init ;
when: on_success

parameters:
python-version:
type: string
default: "3.12"

jobs:
build:
docker:
- image: cimg/python:3.7
- image: cimg/python:3.8
- image: cimg/python:3.9
- image: cimg/python:3.10
- image: cimg/python:3.11
- image: cimg/python:3.12
- image: cimg/python:<< pipeline.parameters.python-version >>
resource_class: medium
environment:
CI: cicleci
DEBIAN_FRONTEND: noninteractive
LANG: en_US.UTF-8
LC_CTYPE: en_EN.UTF-8
LC_CTYPE: en_US.UTF-8
SHELL: /bin/bash
working_directory: ~/python-repo
steps:
- checkout
- run:
name: "fetch and pull"
command: |
git fetch && git pull --all || true
- reposync
- run:
shell: /bin/bash
name: "install depends attempt"
command: |
python3 -m pip install --user -r ./requirements.txt || true
python3 -m pip install --user -r ./requirements.txt || : ;
when: on_success
- run:
shell: /bin/bash
name: "install test extras attempt"
name: "install test depends attempt"
command: |
python3 -m pip install --user -r ./test-requirements.txt || true
python3 -m pip install --upgrade --user -r ./test-requirements.txt || : ;
when: on_success
- save_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~/python-repo

test:
docker:
- image: cimg/python:3.7
- image: cimg/python:3.8
- image: cimg/python:3.9
- image: cimg/python:3.10
- image: cimg/python:3.11
- image: cimg/python:3.12
- image: cimg/python:<< pipeline.parameters.python-version >>
parallelism: 2
resource_class: medium
environment:
CI: cicleci
DEBIAN_FRONTEND: noninteractive
LANG: en_US.UTF-8
LC_CTYPE: en_EN.UTF-8
LC_CTYPE: en_US.UTF-8
SHELL: /bin/bash
working_directory: ~/python-repo
steps:
- restore_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- run:
shell: /bin/bash
name: "clean up for test"
name: "Installing deps for test"
command: |
make clean
when: always
python3 -m pip install --upgrade --user -r ./test-requirements.txt || : ;
when: on_success
- cleanup
- run:
shell: /bin/bash
name: "Unit Tests"
command: |
make test
when: on_success
- run:
shell: /bin/bash
name: "clean up from test"
command: |
make clean
when: always
- run:
shell: /bin/bash
name: "clean up from FAIL"
command: |
make clean
when: on_fail
- cleanup

pytest:
docker:
- image: cimg/python:3.7
- image: cimg/python:3.8
- image: cimg/python:3.9
- image: cimg/python:3.10
- image: cimg/python:3.11
- image: cimg/python:3.12
- image: cimg/python:<< pipeline.parameters.python-version >>
parallelism: 2
resource_class: medium
environment:
CI: cicleci
DEBIAN_FRONTEND: noninteractive
LANG: en_US.UTF-8
LC_CTYPE: en_EN.UTF-8
LC_CTYPE: en_US.UTF-8
SHELL: /bin/bash
working_directory: ~/python-repo
steps:
- restore_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- run:
shell: /bin/bash
name: "setup up for pytest"
name: "set up depends"
command: |
python3 -m pip install --upgrade --user -r ./test-requirements.txt || true
python3 -m pip install --upgrade --user -r ./requirements.txt || : ;
when: on_success
- run:
shell: /bin/bash
name: "clean up for pytest"
name: "install test-reqs attempt"
command: |
make clean
when: always
python3 -m pip install --upgrade --user -r ./test-requirements.txt || : ;
when: on_success
- cleanup
- run:
shell: /bin/bash
name: "pytest Unit Tests"
Expand All @@ -124,55 +137,41 @@ jobs:
- store_artifacts:
path: test-reports
when: on_success
- run:
shell: /bin/bash
name: "clean up from pytest"
command: |
make clean
when: always
- run:
shell: /bin/bash
name: "clean up from FAIL"
command: |
make clean
when: on_fail
- cleanup

lint:
docker:
- image: cimg/python:3.11
- image: cimg/python:<< pipeline.parameters.python-version >>
resource_class: medium
environment:
CI: cicleci
DEBIAN_FRONTEND: noninteractive
LANG: en_US.UTF-8
SHELL: /bin/bash
LC_CTYPE: en_EN.UTF-8
LC_CTYPE: en_US.UTF-8
working_directory: ~/python-repo
steps:
- restore_cache:
key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: "install linters extras attempt"
name: "install reqs attempt"
command: |
python3 -m pip install --upgrade --user -r ./test-requirements.txt || true
python3 -m pip install --user -r ./requirements.txt || : ;
- run:
shell: /bin/bash
name: "clean up for test"
name: "install test-reqs attempt"
command: |
make clean
python3 -m pip install --user -r ./test-requirements.txt || : ;
- cleanup
- run:
shell: /bin/bash
name: "check code style and spelling"
command: |
make test-style || python3 -m flake8 --ignore=W191,W391,E117 --max-line-length=100 --verbose --count --config=.flake8.ini --max-complexity=10
- run:
shell: /bin/bash
name: "clean up when done"
command: |
make clean
make test-style || python3 -m flake8 --verbose --count --config=.flake8.ini
- cleanup

workflows:
version: 2
workflow:
test-matrix:
jobs:
- build
- test:
Expand All @@ -184,3 +183,4 @@ workflows:
- pytest:
requires:
- build
- test
6 changes: 5 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ coverage:
github_checks:
annotations: true
flags:
pythonrepo:
paths:
- "pythonrepo/"
tests:
paths:
- tests
- "tests/"
- "!pythonrepo/"
44 changes: 38 additions & 6 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,24 +1,56 @@
[run]
concurrency = multiprocessing
parallel = True
sigterm = True
# enable if you want to consider branches in coverage
# branch = True

[report]
include = pythonrepo*,tests*
include = pythonrepo/*
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
pass
except ImportError
except ModuleNotFoundError
except Exception
except BaseException:
except BaseException
except UnicodeDecodeError
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
raise ImportError
raise ModuleNotFoundError
except unittest.SkipTest
except IOError
except OSError

except ..Error
# Don't complain if non-runnable code isn't run:
if __name__ in '__main__':
if __name__ .. .__main__.:
if __name__ in u'__main__':
if __name__ in u"__main__":
os.abort()
exit

ignore_errors = True

partial_branches =
# Have to re-enable the standard pragma rules
pragma: no branch
skipcq: PYL-
finally:
@
except unittest.SkipTest
self.skipTest
self.fail
# Don't complain if non-runnable code isn't run:
if __name__ in u'__main__':
if __name__ in u"__main__":
if __name__ in '__main__':
if __sys_path__ not in sys.path:
# don't complain about sys.modules
sys.modules
not in sys.modules:
if context.__name__ is None:
if 'os' not in sys.modules:
if 'os.path' not in sys.modules:
if 'argparse' not in sys.modules:
17 changes: 9 additions & 8 deletions .flake8.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[flake8]
select = C,E,F,W,B,B950
select = C,D,E,F,W,B,B950
# Ignore specific warnings and errors according to CEP-8 style
extend-ignore =
W191, # Indentation contains tabs
W391, # Blank line at end of file
E117, # Over-indented
D208, # Docstring is over-indented
D203, # 1 blank line required before class docstring - CEP-7
D212, # Multi-line docstring summary should start at the first line - CEP-7
extend-ignore = E117,D203,D208,D212,W191,W391
# CEP-8 Custom Exceptions:
# W191, # Indentation contains tabs
# W391, # Blank line at end of file
# E117, # Over-indented
# D208, # Docstring is over-indented
# D203, # 1 blank line required before class docstring - CEP-7
# D212, # Multi-line docstring summary should start at the first line - CEP-7
# Ignore long lines as specified in CEP-8
max-line-length = 100
extend-exclude =
Expand Down
Loading
Loading