Commit Graph

23 Commits

Author SHA1 Message Date
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
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
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
Tony Murray
6bd0bb1f66 Speed up tests by reducing snmp timeout (#13725) 2022-01-28 12:07:05 -06: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
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
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
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