Skip to content

Commit 9f01a61

Browse files
stovakjms-pantheon
andauthored
[CMS 933] Add Cache Hit ratios to metrics (#2399)
* [FEAT-898] Integrate site cache hit rate metrics (#2389) Co-authored-by: Jordan Schulz <[email protected]>
1 parent 2844ad3 commit 9f01a61

File tree

16 files changed

+284
-116
lines changed

16 files changed

+284
-116
lines changed

.bumpversion.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[bumpversion]
2+
current_version = 3.1.0
3+
commit = true
4+
tag = true
5+
6+
[bumpversion:file:config/constants.yml]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ reports/*
2121
/Formula
2222
*.deb
2323
Brewfile.lock.json
24+
/.phive

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org)
33

4-
## 3.0.10-dev
4+
## 3.1.0 - 2022-10-17
5+
6+
- Added new cache-hit/miss ratio in the cache commands
7+
- Fix deprecation notice in dependency on php 8.1
58

69
## 3.0.9 - 2022-10-06
710

CONTRIBUTING.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Setting Up
1111

1212
1. Clone this Git repository on your local machine.
1313
2. Install [Composer](https://getcomposer.org/) if you don't already have it.
14-
3. Run `composer install` to fetch all the dependencies.
15-
4. Run `./bin/terminus --help` to test that everything was installed properly.
14+
3. Install [Box](https://github.com/box-project/box) if not already installed.
15+
4. Run `composer install` to fetch all the dependencies.
16+
5. Run `./bin/terminus --help` to test that everything was installed properly.
1617

1718
Submitting Patches
1819
------------------
@@ -45,14 +46,30 @@ The PHP code beautifier can automatically fix a number of style issues. Run it v
4546
composer cbf
4647
```
4748

49+
Building the PHAR
50+
-------------------------
51+
52+
Terminus is built into a PHAR package using [Box](https://github.com/box-project/box), which must
53+
be installed first.
54+
55+
From the root directory, build the package with:
56+
57+
`composer build`
58+
59+
This `terminus.phar` file is required to be built prior to running tests. Running the build will
60+
first clear out dev dependencies that were added via `composer install` and those will need to be
61+
reinstalled before continuing development.
62+
4863
Running and Writing Tests
4964
-------------------------
5065

5166
Terminus uses functional tests implemented using [PHPUnit](http://phpunit.de/)
5267

53-
The tests can be run via:
68+
A `.env` file is required which can be based on `.env.dist` and must contain a site name for testing
69+
which has a paid plan enabled for multidev, specify an environment to use for the tests, a user
70+
account that owns that site, a machine token (TERMINUS_TOKEN) for that user, and an organization.
5471

55-
`composer test:functional`
72+
A PHAR file must also be built before running tests.
5673

5774
### Functional Tests
5875

@@ -65,6 +82,9 @@ The Terminus 3.x functional tests can be run via:
6582
composer test:functional
6683
```
6784

85+
This will take some time to complete and will produce a report at the end with any failed or
86+
skipped tests. To run a specific test, find the test's group in the comments above the test and
87+
use the command specified in `composer.json` under `test:functional` with `--group=<the-group>`
6888

6989
Versioning
7090
----------

bin/terminus

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (!getenv('TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP') && version_compare(PHP_VERSI
3232

3333
// This variable is automatically managed via updateDependenciesversion() in /RoboFile.php,
3434
// which is run after every call to composer update.
35-
$terminusPluginsDependenciesVersion = '801b936d59';
35+
$terminusPluginsDependenciesVersion = '7422d8f8f1';
3636

3737
// Cannot use $_SERVER superglobal since that's empty during phpunit testing
3838
// getenv('HOME') isn't set on Windows and generates a Notice.

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@
149149
"@code:fix",
150150
"@code:lint",
151151
"composer validate --strict"
152+
],
153+
"version-bump": [
154+
"bumpversion --no-commit --no-tag minor"
152155
]
153156
},
154157
"config": {

0 commit comments

Comments
 (0)