You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Marton Elek (Jira)" <ji...@apache.org> on 2020/09/02 14:06:00 UTC

[jira] [Updated] (HDDS-4165) GitHub Actions cache does not work outside of workspace

     [ https://issues.apache.org/jira/browse/HDDS-4165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marton Elek updated HDDS-4165:
------------------------------
    Fix Version/s: 1.1.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> GitHub Actions cache does not work outside of workspace
> -------------------------------------------------------
>
>                 Key: HDDS-4165
>                 URL: https://issues.apache.org/jira/browse/HDDS-4165
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: build
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.1.0
>
>
> Ozone source is checked out for _acceptance_ and _kubernetes_ checks to {{/mnt}}, outside of {{GITHUB_WORKSPACE}}, and only after _Cache_ steps.  Therefore no files are found for which hash would be computed to be included in cache keys.
> {code:title=https://github.com/apache/hadoop-ozone/blob/44acf78aec6c3a4e1c5fea3a43971144c6da9a4c/.github/workflows/post-commit.yml#L167-L171}
>       - name: Cache for maven dependencies
>         uses: actions/cache@v2
>         with:
>           path: ~/.m2/repository
>           key: maven-repo-${{ hashFiles('**/pom.xml') }}
> {code}
> Cache key is always {{maven-repo-}}:
> {code:title=https://github.com/apache/hadoop-ozone/runs/1042358389#step:2:10}
> Cache restored from key: maven-repo-
> {code}
> The same old cache is used for all builds, even if dependencies are changed in {{pom.xml}}, gradually resulting in more and more downloads during builds:
> {code:title=https://github.com/apache/hadoop-ozone/runs/1036271227#step:9:680}
> [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/info/picocli/picocli/4.4.0/picocli-4.4.0.jar (389 kB at 2.4 MB/s)
> [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/ratis/ratis-server/1.0.0/ratis-server-1.0.0.jar (380 kB at 2.4 MB/s)
> [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-api/2.13.3/log4j-api-2.13.3.jar (292 kB at 1.9 MB/s)
> [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/ratis/ratis-proto/1.0.0/ratis-proto-1.0.0.jar (1.2 MB at 6.6 MB/s)
> [INFO] Downloaded from central: https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.13.3/log4j-core-2.13.3.jar (1.7 MB at 8.5 MB/s)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org