Commit Graph

90 Commits

Author SHA1 Message Date
Jellyfrog
58ccccce29
use the already installed chromedriver (#16341) 2024-09-02 09:36:41 -05:00
Tony Murray
1cceafb887
Improve Snmpsim usage to ease testing (#15471)
* Snmpsim use python venv
Patch to enable listening while minimizing output
Update lnms dev:simulate, tests, and ./scripts/save-test-data.php
removed old option to start snmpsim from older scripts, use lnms dev:simulate

* Apply fixes from StyleCI

* various fixes

* Remove patch official package is updated

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-07-17 16:05:07 -05:00
Tony Murray
10669226fc
Fix snmpsim in CI (#16213) 2024-07-17 10:50:19 -05:00
Tony Murray
c2dbfc4381
Always run tests (#16024) 2024-05-08 19:34:52 -05:00
Walkablenormal
abd44aa655
Bump Github Actions to Node.JS 20. (#15873)
* Bump dessant/label-actions to v4.

* Bump Cache and Checkout to v4.

* Bump crazy-max/ghaction-github-status to v4.
2024-03-03 21:28:35 +01:00
Tony Murray
e0444bffcf
Deprecate poller.php (#15370)
* Deprecate poller.php

* Apply fixes from StyleCI

* Remove references to poller.php
Leave wrapper...

* fix python style

* update wraper to call lnms device:poll

* Quiet output too

* make pb happy

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-04 16:32:02 -05:00
Tony Murray
d66c09623f
Only dump snmp logs on failure (#15200)
saves 3 minutes
2023-08-05 13:09:00 +02:00
Jellyfrog
1a6fe2bff7
Update composer dependencies (#15167) 2023-07-26 22:24:37 +02:00
Jellyfrog
2b3575a5e9
Laravel 10.x Shift (#14995)
* Apply code style

* Remove explicit call to register policies

* Shift core files

* Shift config files

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.

* Bump Laravel dependencies

* Add type hints for Laravel 10

* Shift cleanup

* wip

* wip

* sync translation

* Sync back config

* Public Path Binding

* QueryException

* monolog

* db::raw

* monolog

* db::raw

* fix larastan collections

* fix phpstan bug looping forever

* larastan errors

* larastan: fix column type

* styleci

* initialize array

* fixes

* fixes

---------

Co-authored-by: Shift <shift@laravelshift.com>
2023-05-24 22:21:54 +02:00
Tony Murray
808da1fa77
Remove set-output from github actions (#15036) 2023-05-11 11:53:45 +02:00
Tony Murray
22f947c066
Test PHP 8.2 and MariaDB 10.11 (#15007) 2023-04-26 10:14:24 +02:00
Tony Murray
106d4c4a4a
Fix sqlite test (#14642)
* Fix sqlite test

* Add sqlite database to ci

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2022-11-17 10:57:40 +01:00
Tony Murray
a00ad931ab
Github tests log improvement (#14559)
* Github tests log improvement
Don't fail when dumping non-existent log file

* Update test.yml
2022-11-02 17:09:18 +01:00
Tony Murray
334150ec17
Disable super-linter PHP lint (#14518)
* Disable super-linter PHP lint
It does not support PHP 8.1 yet.

* remove variable completely
2022-10-25 14:00:55 -05:00
Jellyfrog
9d00b0c12c
Run CI on ubuntu 22.04 (#14379)
* Run CI on ubuntu 20.04

* wip

* wip

* wip

* Update all test data

* remove slashes

* wip

* wip

* wip

* wip

* wip

* wip

* iwp

* wip

* wip

* wip

* wip

* wip

* wip

* wip

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-10-10 16:44:11 +02:00
Tony Murray
883071dcfc
Test supported PHP versions only (#14389)
* Test supported PHP versions only
Lower mariadb and mysql to their minimum supported versions for unit tests

* Cannot test PHP 8.2 yet, dependencies need to be updated first.
2022-09-27 14:28:28 -05:00
Alex
b1d25a96e4
GitHub Workflows security hardening (#14388)
* build: harden lint.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden doc.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

* build: harden test.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>

Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-27 17:25:39 +02:00
Jellyfrog
152497a098
PHPStan: Enable more checks (#14318)
* PHPStan: Enable more checks

* Fixes

* Fixes

* Deprecation fixes
2022-09-09 07:08:06 -05:00
Jellyfrog
36e9c5e0b9
PHPStan: Remove PHP version constraint (#14314) 2022-09-06 23:43:51 +02:00
Tony Murray
98da97c816
Test PHP 8.1 (#14109)
* Test PHP 8.1
Would love to remove the PHP7 versions, but we need to update our minimum version first.

* Try mariadb 10.8

* Reduce the number of open connections during testing.
2022-07-20 15:27:57 +02:00
Jellyfrog
38a2d38e6e
Update github actions (#14033) 2022-06-13 19:33:31 +02:00
Jellyfrog
8f474dd4d4
Rework documentation (#13709)
* Rework documentation

* Slightly adjust theme

* wip

* fixes

* Remove unneeded header

* Re-added Acknowledgement.md file

* Added Acknowledgement.md to mkdocs.yml

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-02-08 23:02:28 +00:00
Tony Murray
6bd0bb1f66
Speed up tests by reducing snmp timeout (#13725) 2022-01-28 12:07:05 -06:00
Tony Murray
3aed776a70
Update PULL_REQUEST_TEMPLATE.md 2021-10-28 11:15:58 -05:00
Tony Murray
e6807382db
Update PULL_REQUEST_TEMPLATE.md 2021-10-28 11:15:29 -05:00
Jellyfrog
c075194d84
Use PHPStan level 6 (#13308) 2021-10-28 07:54:29 -05:00
Jellyfrog
81a7cdfcb2
Update label-actions.yml 2021-10-18 15:44:34 +02:00
Jellyfrog
b0d49debe7
Update label-actions.yml 2021-10-18 15:30:08 +02:00
Jellyfrog
90936c569e
Use the new Label Actions (#13374) 2021-10-18 15:13:28 +02:00
Jellyfrog
be3d3d171d
Lint: Disallow usage of deprecated functions (#13267) 2021-09-23 21:27:14 +02:00
Jellyfrog
3f9d16a096
Run PHPStan with higher level for new files (#13108) 2021-08-06 16:40:04 +02:00
Jellyfrog
7f278cdd14
Add issue forms (#13092) 2021-08-02 16:06:01 +02:00
Jellyfrog
2b98e92fa1
Bump super-linter (#13073)
* Bump super-linter

* Update lint.yml

* Update lint.yml

* Update lint.yml

* Update lint.yml
2021-07-27 12:51:03 +02:00
Jellyfrog
e873768845
Bump larastan (#13071)
* Bump larastan

* Use php7.4 for lint test
2021-07-26 09:00:34 -05:00
Jellyfrog
ae04b7d6db
Point device/feature requests to community site (#12797)
* Point device/feature requests to community site

* Update bug_report.md
2021-04-27 07:40:32 -05:00
Jellyfrog
165c4fd53c
Enable PHPStan linter (#12678)
* Enable PHPStan linter

* Add PHPStan baseline

* Switch to Level 5

* Fix StringBlade errors with a stub file
2021-04-21 07:41:34 -05:00
Tony Murray
1695f86af8
Always skip style check for dev:check ci (#12654)
* Always skip style check for dev:check ci

* fix names and mysql 8 was barely being tested

* fix sql mode test

* safer vendor check

* flubbed the regex

* ...

* Mysql 8 fixes

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-03-28 23:55:41 +02:00
Jellyfrog
9946fe8b15
Format python code with Black (#12663) 2021-03-28 11:02:33 -05:00
Jellyfrog
f06e81b357
Switch to utf8mb4 (#12580)
* Switch to utf8mb4

This allows emojis to function correctly

* Update URLs
2021-03-28 16:23:08 +02:00
Tony Murray
896386d2c7
Add lint Github Action (#12655)
* Add lint ghaction

* test full codebase for fun

* run only desired linters

* Set to regular values

* oops, remove bash exec

* Run on master too

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-03-27 19:18:49 +01:00
Tony Murray
61316ce2cc
PHP 8 fixes (#12528)
* port related errors

* more fixes

* fix storage count

* add tests for php8

* style

* only need not empty

* aix fixes....

* storage WIP

* fix aix discovering hrstorage
fix db test adding .gitkeep
fix os modules when discovery only

* fix aos processors wrong oid

* fix mempool number casting

* fix aos7 cpu

* use + 0 cast instead of floatval()

* more verbose error on invalid json

* remove invalid data in json

* actually fix the json

* correct json error fix

* cast_number() function
fix aruba-instant and aos6 bugs exposed by new function, probably more...

* fix a-f
fix inadequate sort for component data

* fix global port poll time

* fix mempools precent 0, route count, ntp const

* fix schleifenbauer liberal current usage

* further number casting refinement

* vrp

* fix tests

* fix arbos

* warn cleanups adjust to :: change

* fix ciena-sds

* fix drac

* fix dell-rpdu anddlink

* fix and improve arubaos
better error when getting an array in Processor

* fix atenpdu, add missing arubaos files

* aruba-instant to yaml
apparently I didn't need to do this, the diff just looks really odd
It did add ranged sub-index replacements

* docker app, was completely wrong... fixed

* fix sentry4 divide by 0...

* fixed root issue, remove check

* nicer cidr in ipv6 code

* remove bogus enuxus battery bank skip_values

* Fix InfluxDB tests

* remove extra import

* fix other style issues.

* influx "style" fixes
2021-03-12 18:10:14 -06:00
Tony Murray
f5a0959181
Revert "Switch to utf8mb4 (#12501)" (#12578)
This reverts commit 8e2e67d0ee.
2021-03-01 14:59:06 -06:00
Jellyfrog
8e2e67d0ee
Switch to utf8mb4 (#12501)
* Switch to utf8mb4

This allows emojis to function correctly

* Update URLs
2021-03-01 08:02:26 -06:00
Jellyfrog
34885b0a76
Test both MariaDB and MySQL (#12547) 2021-02-22 15:20:51 +01:00
Jellyfrog
b68793b70d
Add cache busting support to gh action (#12473) 2021-01-28 17:11:14 +01:00
Jellyfrog
956494a95b
Switch GH pages to own repo (#12472) 2021-01-28 02:19:56 +01:00
Jellyfrog
32ed73b93e
Speedup tests (#12470)
Moving the up check to later saves unnecessary waiting time
2021-01-27 21:46:45 +01:00
Jellyfrog
8d99a89814
Remove deprecated composer argument (#12468) 2021-01-27 10:17:21 +01:00
CrazyMax
4126dddf73
GitHub Actions dev:check ci (#12392)
* Refactor test for GitHub Actions

* Checkout pull request HEAD commit instead of merge commit

* Fetch changed files from API instead of git

* HEAD commit

* Origin

* Fix env

* force full unit checks on gh actions change

* Fix DB conn

* Update test.yml

* Also set port in PDO connection

* Exit with correct exit code

* Update CiHelper.php

* Update test.yml

* Update CiHelper.php

* Update Proc.php

* Cleanups

Remove extra unit test run on php 7.4
Add names that will hopefully show in github.
Remove redundant DB env variables.

* Fix

Shorter names
and DB_TEST env is required

* Change command for information purposes

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-01-03 00:54:01 -06:00
CrazyMax
a0062aa633
Remove hardcoded URLs to doc (#12364)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-11-27 23:34:58 +01:00