Skip to content

Releases: wunderio/drupal-ping

2.2.2: Fix: Filesystem Cleanup

27 Apr 08:01
Compare
Choose a tag to compare

Fix

  • Filesystem cleanup check results in a warning (not an error anymore) if leftover files were discovered and cleaned up.

Improvement

  • README

2.2.1: Fix

20 Apr 10:17
Compare
Choose a tag to compare

Improvements

  • Fix missing drupal/drupal require from composer.json
  • Development environment improvement

Add Filesystem cleanup checker

19 Apr 18:50
Compare
Choose a tag to compare

New features

  • Add Public filesystem Cleanup checker. Clean up leftover files by 'Create a file in public filesystem checker'. Sometimes when a (network-based) filesystem crashes or has other problems, temporary test files start to accumulate. This checker cleans them up, and reports errors.
  • Add Psalm code scanner to keep the pinger in good shape.

Refactor, tests

19 Apr 14:08
Compare
Choose a tag to compare

Improvements

  • Add PhpUnit tests with max coverage.
  • Apply code scanners: PHP syntax checking, phpcs (standards, PHP compatibility), phpstan
  • Refactor Lando testing env
  • More sophisticated debug code generation
  • Strict type checking
  • Turn code into classes for better testing and architecture
  • Fix handful of small bugs (revealed by tests)
  • Commandline php _ping.php defaults to debug mode, and reveals the debug token.
  • No functional changes.

Refactor, debugging, elasticsearch

30 Mar 12:43
2350c2a
Compare
Choose a tag to compare

Breaking changes

  • composer.json needs a different syntax - see README.

New features

  • Debugging option - allows seeing time profile and statuses of individual checks
  • Service exposure protection
  • Time profiling
  • Improved logging, Lando is supported now
  • Logs slow checks
  • Memcache cluster support, connection check by low-level PHP functions (faster)
  • Elasticsearch support, by curl(), cluster support, advanced configurability
  • Filesystem check is now split in two: create and delete
  • Individual check status tracking
  • For _ping.php developers there is now Lando testing env. See README.

Example of debug output

https://example.com/_ping.php?debug=hash

Look up the hash value in README.

INTERNAL ERROR 500

db                   error      result_count=0 expected=1 Master database invalid results.
memcache             disabled   
redis                disabled   
elasticsearch        disabled   
fs-scheme-create     success    
fs-scheme-delete     success    
custom-ping          disabled   

    19.865 ms - bootstrap
    10.680 ms - check_fs_scheme_create
     1.149 ms - check_fs_scheme_delete
     1.045 ms - check_custom_ping
     0.831 ms - check_db
     0.013 ms - check_memcache
     0.012 ms - check_redis
     0.010 ms - check_elasticsearch
    33.794 ms - total

Example of log output

All ping log entries are prefixed by ping:.

There are 3 types of records:

  • slow
  • warning
  • error
Mar 29 19:21:17 hostname php: ping: slow: check_db: duration=1003.642356 ms
Mar 30 15:54:59 hostname php: ping: error: unset: bootstrap(): SQLSTATE[HY000] [2002] No such file or directory
Mar 30 15:54:59 hostname php: ping: error: db: check_db(): SQLSTATE[HY000] [2002] No such file or directory
Mar 30 15:54:59 hostname php: ping: error: fs-scheme-create: check_fs_scheme_create(): \Drupal::$container is not initialized yet.
Mar 30 16:00:00 hostname php: ping: warning: memcache: host=localhost port= 11211 response='END' - Unexpected response

1.0.2: Merge pull request #12 from wunderio/feature/support-drupal-9

11 Sep 10:41
1ba81d3
Compare
Choose a tag to compare

1.0.1: Merge pull request #3 from wunderio/feature/memcachedSupport

23 Jan 11:39
Compare
Choose a tag to compare