Skip to content

[Merged by Bors] - refactor(Cache): use module name as key instead of unresolved file path#21834

Closed
joneugster wants to merge 84 commits intomasterfrom
eugster/cache_use_mod_instead_of_path
Closed

[Merged by Bors] - refactor(Cache): use module name as key instead of unresolved file path#21834
joneugster wants to merge 84 commits intomasterfrom
eugster/cache_use_mod_instead_of_path

Conversation

@joneugster
Copy link
Copy Markdown
Contributor

@joneugster joneugster commented Feb 13, 2025

Change internal keys of cache from unresolved paths like Mathlib/Init.lean to modules Mathlib.Init and keep track of the relevant source files. This helps increasing the support for cache in downstream projects depending on mathlib.

This PR is a pure internal refactor which does not alter any behaviour of cache.


Tracking PR: #21238

Open in Gitpod

@joneugster joneugster changed the base branch from master to eugster/cache_parse_args February 13, 2025 16:43
@joneugster joneugster added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) t-meta Tactics, attributes or user commands CI Modifies the continuous integration setup or other automation labels Feb 13, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 13, 2025

PR summary 4ed602f84f

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ HashMemo.filterByRootModules
+ isFromMathlib
- HashMemo.filterByFilePaths
- isPathFromMathlib
- toPaths

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@mathlib-bors mathlib-bors bot deleted the branch master March 31, 2025 00:25
@mathlib-bors mathlib-bors bot closed this Mar 31, 2025
@mathlib-bors mathlib-bors bot changed the base branch from eugster/cache_parse_args to master March 31, 2025 00:25
@joneugster joneugster reopened this Apr 1, 2025
@joneugster joneugster removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 1, 2025
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

@joneugster joneugster added the WIP Work in progress label Apr 1, 2025
@joneugster joneugster removed the WIP Work in progress label Apr 1, 2025
Copy link
Copy Markdown
Contributor Author

@joneugster joneugster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments to facilitate reviews:

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Apr 3, 2025

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Apr 3, 2025
mathlib-bors bot pushed a commit that referenced this pull request Apr 3, 2025
…th (#21834)

Change internal keys of `cache` from unresolved paths like `Mathlib/Init.lean` to modules `Mathlib.Init` and keep track of the relevant source files. This helps increasing the support for `cache` in downstream projects depending on mathlib.

This PR is a pure internal refactor which does not alter any behaviour of `cache`.



Co-authored-by: Eric Wieser <[email protected]>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 3, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor(Cache): use module name as key instead of unresolved file path [Merged by Bors] - refactor(Cache): use module name as key instead of unresolved file path Apr 3, 2025
@mathlib-bors mathlib-bors bot closed this Apr 3, 2025
@mathlib-bors mathlib-bors bot deleted the eugster/cache_use_mod_instead_of_path branch April 3, 2025 02:04
tannerduve pushed a commit that referenced this pull request May 13, 2025
…th (#21834)

Change internal keys of `cache` from unresolved paths like `Mathlib/Init.lean` to modules `Mathlib.Init` and keep track of the relevant source files. This helps increasing the support for `cache` in downstream projects depending on mathlib.

This PR is a pure internal refactor which does not alter any behaviour of `cache`.



Co-authored-by: Eric Wieser <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Modifies the continuous integration setup or other automation ready-to-merge This PR has been sent to bors. t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants