Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for cache eviction policies that can maintain a maximum CI cache size, such as LRU #18294

Open
chrisjrn opened this issue Feb 17, 2023 · 1 comment

Comments

@chrisjrn
Copy link
Contributor

Survey submitter said:

A LRU cache pruning tool. The current CI setup recommends dumping the cache when it grows too large, which causes random spikes as dependencies need to get pulled in again on the next target. It would be great if this ran automatically, such as a "max size" config for the cache.

@huonw
Copy link
Contributor

huonw commented Feb 19, 2023

This may relate to #11167, which seems to have some background thoughts recorded.

cburroughs added a commit to cburroughs/pants that referenced this issue Sep 17, 2024
Highlighted Changelogs:
 * https://github.com/pex-tool/pex/releases/tag/v2.17.0
 * https://github.com/pex-tool/pex/releases/tag/v2.18.0
 * https://github.com/pex-tool/pex/releases/tag/v2.19.0

```
Lockfile diff: 3rdparty/python/user_reqs.lock [python-default]
==                    Upgraded dependencies                     ==

  idna                           3.8          -->   3.10
  pex                            2.16.2       -->   2.19.0
```

ref pantsbuild#18294 pantsbuild#11167
cburroughs added a commit to cburroughs/pants that referenced this issue Sep 18, 2024
cburroughs added a commit that referenced this issue Sep 19, 2024
cburroughs added a commit to cburroughs/pants that referenced this issue Dec 6, 2024
Highlighted Changelogs:
 * https://github.com/pex-tool/pex/releases/tag/v2.20.4
 * https://github.com/pex-tool/pex/releases/tag/v2.21.0
 * https://github.com/pex-tool/pex/releases/tag/v2.22.0
 * https://github.com/pex-tool/pex/releases/tag/v2.23.0
 * https://github.com/pex-tool/pex/releases/tag/v2.24.0
 * https://github.com/pex-tool/pex/releases/tag/v2.24.1
 * https://github.com/pex-tool/pex/releases/tag/v2.24.2
 * https://github.com/pex-tool/pex/releases/tag/v2.24.3

```
Lockfile diff: 3rdparty/python/user_reqs.lock [python-default]

==                    Upgraded dependencies                     ==

  cryptography                   43.0.3       -->   44.0.0
  deprecated                     1.2.14       -->   1.2.15
  pex                            2.20.3       -->   2.24.3
  pydantic                       1.10.18      -->   1.10.19
  pyjwt                          2.9.0        -->   2.10.1
  six                            1.16.0       -->   1.17.0
  tomli                          2.0.2        -->   2.2.1
  websockets                     13.1         -->   14.1
  wrapt                          1.16.0       -->   1.17.0
```

ref pantsbuild#11167 pantsbuild#18294 for the `pex3 cache` series of commands
cburroughs added a commit to cburroughs/pants that referenced this issue Dec 11, 2024
Highlighted Changelogs:
 * https://github.com/pex-tool/pex/releases/tag/v2.20.4
 * https://github.com/pex-tool/pex/releases/tag/v2.21.0
 * https://github.com/pex-tool/pex/releases/tag/v2.22.0
 * https://github.com/pex-tool/pex/releases/tag/v2.23.0
 * https://github.com/pex-tool/pex/releases/tag/v2.24.0
 * https://github.com/pex-tool/pex/releases/tag/v2.24.1
 * https://github.com/pex-tool/pex/releases/tag/v2.24.2
 * https://github.com/pex-tool/pex/releases/tag/v2.24.3

```
Lockfile diff: 3rdparty/python/user_reqs.lock [python-default]

==                    Upgraded dependencies                     ==

  cryptography                   43.0.3       -->   44.0.0
  deprecated                     1.2.14       -->   1.2.15
  pex                            2.20.3       -->   2.24.3
  pydantic                       1.10.18      -->   1.10.19
  pyjwt                          2.9.0        -->   2.10.1
  six                            1.16.0       -->   1.17.0
  tomli                          2.0.2        -->   2.2.1
  websockets                     13.1         -->   14.1
  wrapt                          1.16.0       -->   1.17.0
```

ref pantsbuild#11167 pantsbuild#18294 for the `pex3 cache` series of commands
cburroughs added a commit that referenced this issue Dec 12, 2024
Highlighted Changelogs:
 * https://github.com/pex-tool/pex/releases/tag/v2.20.4
 * https://github.com/pex-tool/pex/releases/tag/v2.21.0
 * https://github.com/pex-tool/pex/releases/tag/v2.22.0
 * https://github.com/pex-tool/pex/releases/tag/v2.23.0
 * https://github.com/pex-tool/pex/releases/tag/v2.24.0
 * https://github.com/pex-tool/pex/releases/tag/v2.24.1
 * https://github.com/pex-tool/pex/releases/tag/v2.24.2
 * https://github.com/pex-tool/pex/releases/tag/v2.24.3

```
Lockfile diff: 3rdparty/python/user_reqs.lock [python-default]

==                    Upgraded dependencies                     ==

  cryptography                   43.0.3       -->   44.0.0
  deprecated                     1.2.14       -->   1.2.15
  pex                            2.20.3       -->   2.24.3
  pydantic                       1.10.18      -->   1.10.19
  pyjwt                          2.9.0        -->   2.10.1
  six                            1.16.0       -->   1.17.0
  tomli                          2.0.2        -->   2.2.1
  websockets                     13.1         -->   14.1
  wrapt                          1.16.0       -->   1.17.0
```

ref #11167 #18294 for the `pex3 cache` series of commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants