From c53abbf703f1bab968b3ade71b4406d2c606edfa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 Jun 2022 18:00:43 +0000 Subject: [PATCH 01/11] Bump python-dateutil from 2.8.1 to 2.8.2 Bumps [python-dateutil](https://github.com/dateutil/dateutil) from 2.8.1 to 2.8.2. - [Release notes](https://github.com/dateutil/dateutil/releases) - [Changelog](https://github.com/dateutil/dateutil/blob/master/NEWS) - [Commits](https://github.com/dateutil/dateutil/compare/2.8.1...2.8.2) --- updated-dependencies: - dependency-name: python-dateutil dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a1f88fd..c429af3f 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ def find_version(*file_paths): "docker==5.0.3", "PyInstaller==5.1", "texttable==1.6.4", - "python-dateutil==2.8.1", + "python-dateutil==2.8.2", "Jinja2==3.1.2", "psutil==5.9.1", "python-dotenv==0.20.0", From d14b09a34fec5958b6b375b53b0c456649dc2c53 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 18 Jun 2022 18:00:45 +0000 Subject: [PATCH 02/11] Bump pyyaml from 5.4.1 to 6.0 Bumps [pyyaml](https://github.com/yaml/pyyaml) from 5.4.1 to 6.0. - [Release notes](https://github.com/yaml/pyyaml/releases) - [Changelog](https://github.com/yaml/pyyaml/blob/master/CHANGES) - [Commits](https://github.com/yaml/pyyaml/compare/5.4.1...6.0) --- updated-dependencies: - dependency-name: pyyaml dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a1f88fd..b8b0e54e 100644 --- a/setup.py +++ b/setup.py @@ -61,7 +61,7 @@ def find_version(*file_paths): "terminaltables==3.1.10", "requests==2.28.0", "GitPython==3.1.27", - "PyYAML==5.4.1", + "PyYAML==6.0", "packaging==21.3", "python-debian==0.1.39", "python-iptables==1.0.0", From b802c990f6fdc0e8f0758a546732682d06a5cbbf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 Jul 2022 18:00:45 +0000 Subject: [PATCH 03/11] Bump requests from 2.28.0 to 2.28.1 Bumps [requests](https://github.com/psf/requests) from 2.28.0 to 2.28.1. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.28.0...v2.28.1) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a1f88fd..c8a4b8fb 100644 --- a/setup.py +++ b/setup.py @@ -59,7 +59,7 @@ def find_version(*file_paths): "psutil==5.9.1", "python-dotenv==0.20.0", "terminaltables==3.1.10", - "requests==2.28.0", + "requests==2.28.1", "GitPython==3.1.27", "PyYAML==5.4.1", "packaging==21.3", From 8b15ecf3afb07c0632396a03a6788cd5f8bf7d64 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 6 Aug 2022 18:00:34 +0000 Subject: [PATCH 04/11] Bump flake8 from 4.0.1 to 5.0.4 Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 5.0.4. - [Release notes](https://github.com/pycqa/flake8/releases) - [Commits](https://github.com/pycqa/flake8/compare/4.0.1...5.0.4) --- updated-dependencies: - dependency-name: flake8 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a1f88fd..1b5dc0e3 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ def find_version(*file_paths): extras_require = { 'linter': [ - "flake8==4.0.1", + "flake8==5.0.4", "isort>=4.2.15,<5.10.2", ], 'dev': [ From 07955dd369cd26366d9bb12618690bc146b93e1a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 13 Aug 2022 18:00:30 +0000 Subject: [PATCH 05/11] Bump freezegun from 1.2.1 to 1.2.2 Bumps [freezegun](https://github.com/spulec/freezegun) from 1.2.1 to 1.2.2. - [Release notes](https://github.com/spulec/freezegun/releases) - [Changelog](https://github.com/spulec/freezegun/blob/master/CHANGELOG) - [Commits](https://github.com/spulec/freezegun/commits) --- updated-dependencies: - dependency-name: freezegun dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a1f88fd..5dfe9259 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ def find_version(*file_paths): "pytest-cov==3.0.0", "twine==4.0.1", "mock==4.0.3", - "freezegun==1.2.1" + "freezegun==1.2.2" ] } From f009c6ba70540e8ec5b081467d3f4d6b465bcfd9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 3 Sep 2022 18:00:37 +0000 Subject: [PATCH 06/11] Bump python-dotenv from 0.20.0 to 0.21.0 Bumps [python-dotenv](https://github.com/theskumar/python-dotenv) from 0.20.0 to 0.21.0. - [Release notes](https://github.com/theskumar/python-dotenv/releases) - [Changelog](https://github.com/theskumar/python-dotenv/blob/main/CHANGELOG.md) - [Commits](https://github.com/theskumar/python-dotenv/compare/v0.20.0...v0.21.0) --- updated-dependencies: - dependency-name: python-dotenv dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a1f88fd..24a255e8 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ def find_version(*file_paths): "python-dateutil==2.8.1", "Jinja2==3.1.2", "psutil==5.9.1", - "python-dotenv==0.20.0", + "python-dotenv==0.21.0", "terminaltables==3.1.10", "requests==2.28.0", "GitPython==3.1.27", From ed1f9848abbf779129336e7da81aab6f13de7129 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 15 Oct 2022 18:00:55 +0000 Subject: [PATCH 07/11] Bump python-debian from 0.1.39 to 0.1.48 Bumps [python-debian](https://salsa.debian.org/python-debian-team/python-debian) from 0.1.39 to 0.1.48. --- updated-dependencies: - dependency-name: python-debian dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a1f88fd..89b62f65 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ def find_version(*file_paths): "GitPython==3.1.27", "PyYAML==5.4.1", "packaging==21.3", - "python-debian==0.1.39", + "python-debian==0.1.48", "python-iptables==1.0.0", "MarkupSafe==2.0.1", ], From a31c7a40206a51498fb5f5c2b9248b38d984a940 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 5 Nov 2022 18:00:39 +0000 Subject: [PATCH 08/11] Bump docker from 5.0.3 to 6.0.1 Bumps [docker](https://github.com/docker/docker-py) from 5.0.3 to 6.0.1. - [Release notes](https://github.com/docker/docker-py/releases) - [Commits](https://github.com/docker/docker-py/compare/5.0.3...6.0.1) --- updated-dependencies: - dependency-name: docker dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3a1f88fd..ab04e26c 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ def find_version(*file_paths): url='https://github.com/skalenetwork/node-cli', install_requires=[ "click==8.1.3", - "docker==5.0.3", + "docker==6.0.1", "PyInstaller==5.1", "texttable==1.6.4", "python-dateutil==2.8.1", From 53815c4eb3bfe4d411f724f64d5db8f02e99dea7 Mon Sep 17 00:00:00 2001 From: Dmytro Nazarenko Date: Mon, 21 Nov 2022 23:00:09 +0200 Subject: [PATCH 09/11] Create issue_check.yml --- .github/workflows/issue_check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/issue_check.yml diff --git a/.github/workflows/issue_check.yml b/.github/workflows/issue_check.yml new file mode 100644 index 00000000..ee5ec6b2 --- /dev/null +++ b/.github/workflows/issue_check.yml @@ -0,0 +1,19 @@ +name: Get linked issues +on: + pull_request: + types: [ edited, synchronize, opened, reopened ] + +jobs: + check-linked-issues: + name: Check if pull request has linked issues + runs-on: ubuntu-latest + steps: + - name: Get issues + id: get-issues + uses: mondeja/pr-linked-issues-action@v2 + env: + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + - name: PR has not linked issues + if: join(steps.get-issues.outputs.issues) == '' + run: + exit 1 From 9dfb93aac1f7aee61963a33af858c1e8c29f6c60 Mon Sep 17 00:00:00 2001 From: badrogger Date: Tue, 22 Nov 2022 13:07:31 +0000 Subject: [PATCH 10/11] Add debug info to network test --- tests/core_checks_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core_checks_test.py b/tests/core_checks_test.py index e58c9da9..426c5a1d 100644 --- a/tests/core_checks_test.py +++ b/tests/core_checks_test.py @@ -110,7 +110,7 @@ def test_checks_swap(server_req): def test_checks_network(server_req): checker = MachineChecker(server_req, 'test-disk') r = checker.network() - assert r.status == 'ok' + assert r.status == 'ok', r.info assert r.name == 'network' From c01a63b1088e67537ff815484a2ca1405df2645f Mon Sep 17 00:00:00 2001 From: badrogger Date: Tue, 22 Nov 2022 13:20:41 +0000 Subject: [PATCH 11/11] Add custom network check timeout for tests --- node_cli/core/checks.py | 9 +++++++-- tests/core_checks_test.py | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/node_cli/core/checks.py b/node_cli/core/checks.py index 8ccd1d64..fd4a8d0f 100644 --- a/node_cli/core/checks.py +++ b/node_cli/core/checks.py @@ -208,9 +208,14 @@ def check(self) -> ResultList: class MachineChecker(BaseChecker): - def __init__(self, requirements: Dict, disk_device: str) -> None: + def __init__( + self, + requirements: Dict, + disk_device: str, + network_timeout: Optional[int] = None) -> None: self.requirements = requirements self.disk_device = disk_device + self.network_timeout = network_timeout or NETWORK_CHECK_TIMEOUT @preinstall def cpu_total(self) -> CheckResult: @@ -281,7 +286,7 @@ def disk(self) -> CheckResult: def network(self) -> CheckResult: name = 'network' try: - socket.setdefaulttimeout(NETWORK_CHECK_TIMEOUT) + socket.setdefaulttimeout(self.network_timeout) socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect( (CLOUDFLARE_DNS_HOST, CLOUDFLARE_DNS_HOST_PORT)) return self._ok(name=name) diff --git a/tests/core_checks_test.py b/tests/core_checks_test.py index 426c5a1d..0d422234 100644 --- a/tests/core_checks_test.py +++ b/tests/core_checks_test.py @@ -108,7 +108,7 @@ def test_checks_swap(server_req): def test_checks_network(server_req): - checker = MachineChecker(server_req, 'test-disk') + checker = MachineChecker(server_req, 'test-disk', network_timeout=10) r = checker.network() assert r.status == 'ok', r.info assert r.name == 'network' @@ -135,7 +135,7 @@ def test_checks_disk(server_req): def test_checks_machine_check(server_req): - checker = MachineChecker(server_req, 'test-disk') + checker = MachineChecker(server_req, 'test-disk', network_timeout=10) result = checker.check() assert not all([r.status == 'ok' for r in result])