Code Monkey home page Code Monkey logo

laminas-diagnostics's Introduction

laminas-diagnostics

Build Status type-coverage Psalm level

🇷🇺 Русским гражданам

Мы, участники Laminas, родились и живем в разных странах. У многих из нас есть друзья, родственники и коллеги как в России, так и в Украине. Некоторые из нас родились в России. Некоторые из нас живут в России. У некоторых бабушки и дедушки сражались с фашистами во Второй мировой войне. Здесь никто не поддерживает фашизм.

У одного из нас есть украинская родственница, которая спаслась из дома вместе с сыном. Поезд задержался из-за бомбежки на дороге впереди. У нас есть друзья, которые прячутся в бомбоубежищах. Мы с тревогой ждем весточки от них после воздушных налетов, которые беспорядочно наносят удары и попадают по больницам, школам, детским садам и домам. Мы не берем это из каких-либо СМИ. Мы наблюдаем это напрямую.

Вы доверяете нам достаточно, чтоб использовать наши программы, и мы просим вас довериться нам вновь. Мы нуждаемся в помощи. Выходите и протестуйте против этой бесполезной войны. Остановите кровопролитие. Скажите "Нет войне!"

🇺🇸 To Citizens of Russia

We at Laminas come from all over the world. Many of us have friends, family and colleagues in both Russia and Ukraine. Some of us were born in Russia. Some of us currently live in Russia. Some have grandparents who fought Nazis in World War II. Nobody here supports fascism.

One team member has a Ukrainian relative who fled her home with her son. The train was delayed due to bombing on the road ahead. We have friends who are hiding in bomb shelters. We anxiously follow up on them after the air raids, which indiscriminately fire at hospitals, schools, kindergartens and houses. We're not taking this from any media. These are our actual experiences.

You trust us enough to use our software. We ask that you trust us to say the truth on this. We need your help. Go out and protest this unnecessary war. Stop the bloodshed. Say "stop the war!"

Perform diagnostic tests within real-world PHP applications.

laminas-diagnostics

laminas-diagnostics's People

Contributors

0x46616c6b avatar andrew-demb avatar arueckauer avatar bram123 avatar cgrabenstein avatar frne avatar froschdesign avatar ghostwriter avatar gsteel avatar headd2k avatar heiglandreas avatar ionbazan avatar kbond avatar laminas-bot avatar lostfocus avatar lsmith77 avatar michalbundyra avatar mkoprek avatar ocramius avatar oleksandr-kh avatar paschdan avatar renovate[bot] avatar samsonasik avatar sbacelic avatar tarasmatskovych avatar thinkscape avatar till avatar vpx avatar weierophinney avatar xerkus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laminas-diagnostics's Issues

Check CpuPerformance message

Feature Request

Q A
New Feature yes
RFC yes/no
BC Break yes/no

Summary

Hi.

Is possible implement a message in the check Cpu Performance Informing the result performance in success or error case?

Thank you.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Use matchDepNames instead of matchPackageNames

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

composer
composer.json
  • php ~8.1.0 || ~8.2.0 || ~8.3.0
  • enlightn/security-checker ^1.10
  • doctrine/migrations ^2.0 || ^3.5.2
  • guzzlehttp/guzzle ^7.5.0
  • laminas/laminas-coding-standard ~2.5.0
  • laminas/laminas-loader ^2.9
  • mikey179/vfsstream ^1.6.11
  • php-amqplib/php-amqplib ^2.0 || ^3.4
  • phpunit/phpunit ^9.5.26
  • psalm/plugin-phpunit ^0.18.3
  • predis/predis ^2.0.3
  • symfony/yaml ^6.0.14 || ^7.0.0
  • vimeo/psalm ^4.29.0
github-actions
.github/workflows/continuous-integration.yml
  • laminas/laminas-ci-matrix-action 1.24.0@0db1a6827dab14246fdca116c20ac664dd7ca140
  • laminas/laminas-continuous-integration-action 1.38.0@ead082d804c798775ee65db0bae9cd3b3d863cdb
.github/workflows/docs-build.yml
.github/workflows/release-on-milestone-closed.yml

  • Check this box to trigger a request for Renovate to run again on this repository

PHP 8.0 support

Feature Request

Q A
New Feature yes

Summary

To be prepared for the december release of PHP 8.0, this repository has some additional TODOs to be tested against the new major version.

In order to make this repository compatible, one has to follow these steps:

  • Modify composer.json to provide support for PHP 8.0 by adding the constraint ~8.0.0
  • Modify composer.json to drop support for PHP less than 7.3
  • Modify composer.json to implement phpunit 9.3 which supports PHP 7.3+
  • Modify .travis.yml to ignore platform requirements when installing composer dependencies (simply add --ignore-platform-reqs to COMPOSER_ARGS env variable)
  • Modify .travis.yml to add PHP 8.0 to the matrix (NOTE: Do not allow failures as PHP 8.0 has a feature freeze since 2020-08-04!)
  • Modify source code in case there are incompatibilities with PHP 8.0

[RFC]: Add a ResultData object as Result data

RFC

Q A
Proposed Version(s) 1.x.x
BC Break? Yes/No/Maybe

Goal

Provide a structured class to use when providing extra details about a executed check.

Background

I'm looking into using this package to generate an API health endpoint, for that we'd need more data besides the fact that a check was successful. In previous PRs I already added some data to some checks, but got a review point to see if we can make this more structured/typed.

The idea is to add a ResultData object so Checks can provide extra data in a set format.

Considerations

Big question is, are the current Check's data returns covered by BC?
DiskUsage::check()->getData is now always an int, even though it's typed to mixed|null.

If we were to have a class available, these checks couldn't just switch over. Otherwise users of this package, who currently assume it's an int, will suddenly get something else.

Proposal(s)

Add a new ResultData object into Laminas\Diagnostics\Result, or Laminas\Diagnostics\Result\Data.
Preferably not simply key + value, but:

  • key (uptime / responseTime / connections / utilization)
  • value
  • valueType (second, milisecond, percentage)

Quick proposal:

$data = new ResultData();
$data->addDetail(uptime, 500, seconds);

return new Success("Connected successfully", $data);

Appendix

I got this as review point in a previous PR: #57 (comment).
The PR was merged already (thanks for that), but I didn't want to 'forget about it'.

The dependency enlightn/security-checker should be in the require and not in the require dev of Compoer.

Bug Report

Q A
Version(s) master and 1.15.0

Summary

The dependency enlightn/security-checker should be in the require and not in the require-dev of Compoer.

Current behavior

After a composer update, I get this error:
Unable to find "Enlightn\SecurityChecker\AdvisoryAnalyzer" class. Please install "enlightn/security-checker" library to use this Check.

Could you plz set the enlightn/security-checker dependency in the require part of composer.
Thnaks

Reintroduce tests with external services

Bug Report

Q A
Version(s) 1.25.x

Summary

Currently the test-setup uses quite some time and resources to setup all the required external services like redis, memcached and mongo but then the tests actually using these services are skipped.

I tried to add the tests during enabling PHP8.3 testing but all tests failed - not only the 8.3 ones but all.

So this is something that should be done separately.

I managed to add the tests by adding this code into the qa-job in .github/workflows/continuous-integration.yml:

    env:
      TESTS_LAMINAS_DIAGNOSTICS_MEMCACHE_ENABLED: true
      TESTS_LAMINAS_DIAGNOSTICS_MEMCACHED_ENABLED: true
      TESTS_LAMINAS_DIAGNOSTICS_MONGO_ENABLED: true
      TESTS_LAMINAS_DIAGNOSTICS_RABBITMQ_ENABLED: true
      TESTS_LAMINAS_DIAGNOSTICS_REDIS_ENABLED: true

Current behavior

All tests are failing

How to reproduce

Add the yml excerpt to the described file and let the tests run

Expected behavior

All tests green

conflict with zenddiagnostics

Bug Report

Q A
Version(s) 1.6.0

Summary

I am running php 7.2.22 with composer 1.9.3.
I have a project that require the package https://packagist.org/packages/liip/monitor-bundle#2.11.2
That package requires zendframework/zenddiagnostics ^1.5.

Current behavior

Somehow laminas-diagnostics is installed in version 1.6.
Code in the monitor-bundle breaks because it can't load the ZendDiagnostics\Runner\Reporter\ReporterInterface.
When I run composer why laminas/laminas-diagnostics it points to the liip/monitor-bundle.

I fail to undestand how laminas gets installed while the composer.json for liip/monitor-bundle version 2.11.2 never mention it. It explicitly requires zendframework/zenddiagnostics ^1.5.

Any idea what's going on ?

I fixed the issue by forcing the oro/health-check-bundle to install the liip/monitor-bundle v2.12.1 which require laminas. But I still want to figure out why the install with the version 2.11.2 of the package fails ( it install laminas but still use some zendframework interfaces)

How to reproduce

Installing the package oro/health-check-bundle in version 3.1.5 should trigger the same issue.

Expected behavior

That package zendframework/zenddiagnostics should be installed.

Psalm integration

Feature Request

Q A
QA yes

Summary

As decided during the Technical-Steering-Committee Meeting on August 3rd, 2020, Laminas wants to implement vimeo/psalm in all packages.

Implementing psalm is quite easy.

Required

  • Create a .psalm.xml.dist in the project root
  • Copy and paste the contents from this psalm.xml.dist
  • Run $ composer require vimeo/psalm
  • Run $ vendor/bin/psalm --set-baseline=psalm-baseline.xml
  • Add a composer script static-analysis with the command psalm --shepherd --stats
  • Add a new line to script: in .travis.yml: - if [[ $TEST_COVERAGE == 'true' ]]; then composer static-analysis ; fi
  • Remove phpstan from the project (phpstan.neon.dist, .travis.yml entry, composer.json require-dev and scripts)
Optional
  • Fix as many psalm errors as possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.