Skip to content

Commit

Permalink
[starter eel] AT-1851 Only project cache directory (for now) could be…
Browse files Browse the repository at this point in the history
… stored on remote machine

GitOrigin-RevId: 2ac0299ff9db9ee4cd245d0ecd1495ee24748306
  • Loading branch information
Nikita-Kudrin authored and intellij-monorepo-bot committed Feb 7, 2025
1 parent 17ccb7a commit da65f36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,9 @@ abstract class GlobalPaths(val checkoutDir: Path) {
(testHomePath / "cache").createDirectories()
}

/**
* Cache directory on local or remote machine/target/environment (depends on the configuration of the test)
*/
open val cacheDirectory = localCacheDirectory

fun getCacheDirectoryFor(entity: String): Path = (cacheDirectory / entity).createDirectories()
open fun getCacheDirectoryFor(entity: String): Path = (localCacheDirectory / entity).createDirectories()

val cacheDirForProjects: Path get() = getCacheDirectoryFor("projects")
open val cacheDirForProjects: Path get() = getCacheDirectoryFor("projects")

companion object {
val instance: GlobalPaths
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ object FileSystem {
appendLine(Files.getFileStore(paths.testHomePath).getDiskInfo())
appendLine()
appendLine(paths.testHomePath.getDirectoryTreePresentableSizes(3))
if (paths.cacheDirectory != paths.testHomePath / "cache") {
appendLine("Agent persistent cache directory disk usage ${paths.cacheDirectory}")
appendLine(paths.cacheDirectory.getDirectoryTreePresentableSizes(2))
if (paths.localCacheDirectory != paths.testHomePath / "cache") {
appendLine("Agent persistent cache directory disk usage ${paths.localCacheDirectory}")
appendLine(paths.localCacheDirectory.getDirectoryTreePresentableSizes(2))
}
appendLine()
appendLine("Directories' size from ${paths.devServerDirectory}")
Expand Down

0 comments on commit da65f36

Please sign in to comment.