Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Allow dropping travis cache #48

Merged
merged 4 commits into from
Dec 2, 2020
Merged

Allow dropping travis cache #48

merged 4 commits into from
Dec 2, 2020

Conversation

raboof
Copy link
Contributor

@raboof raboof commented Nov 30, 2020

to hopefully fix #46

@raboof raboof mentioned this pull request Nov 30, 2020
- rm -rf $HOME/.m2
- rm -rf $HOME/.ivy2/cache
- rm -rf $HOME/.sbt/boot
- rm -rf $HOME/.sbt/launchers
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- rm -rf $HOME/.sbt/launchers

This is currently not cached. 😅

@ignasi35
Copy link
Contributor

I've added RUN_DROP_TRAVIS_CACHES_STAGE=true as a public (non secret) ENV VAR available for all branches in the setting on the TravisCI web UI. Then relaunched the (still) failing job.

@ignasi35 ignasi35 closed this Nov 30, 2020
@ignasi35 ignasi35 reopened this Nov 30, 2020
@ignasi35
Copy link
Contributor

I think the build plan for this PR is already committed and we won't get a different build with a clean cache unless we send another commit on the PR.

@raboof
Copy link
Contributor Author

raboof commented Dec 1, 2020

the drop cache uploads a cache:

PR.48/cache--linux-xenial-9632d10a9809d17a5eeb2d7d9cdc036bd97602605eaaebbae154a320ab036321--jdk-default--scala-2.13.1.tgz

... but the failing job fetches another cache:

PR.48/cache--linux-xenial-4a082dd6108cb29866e89deb0edda918357050dffe53206091ab55b2442c3e90--jdk-default--scala-2.13.1.tgz

what's going on here? :/

@ignasi35
Copy link
Contributor

ignasi35 commented Dec 1, 2020

what's going on here? :/

travis gonna travis.

I'm tempted to merge this, get a clean cache on master and rebase open PRs so they rebuild on a clean cache.

@raboof
Copy link
Contributor Author

raboof commented Dec 2, 2020

what's going on here? :/

travis gonna travis.

I'm tempted to merge this, get a clean cache on master and rebase open PRs so they rebuild on a clean cache.

can't hurt I guess

@raboof raboof merged commit 4a8b6f0 into akka:master Dec 2, 2020
@raboof
Copy link
Contributor Author

raboof commented Dec 2, 2020

can't hurt I guess

it didn't hurt, but didn't help either: also on master the jdk11 check job doesn't pick up the cache emptied by the drop-travis-caches stage...

@raboof
Copy link
Contributor Author

raboof commented Dec 2, 2020

Ah, https://docs.travis-ci.com/user/caching/:

If a branch does not have its own cache, Travis CI fetches the cache of the repository’s default branch

and:

There is one cache per branch and language version/ compiler version/ JDK version/ Gemfile location/ etc

... so we need to create a separate drop-travis-caches for jdk11 and merge that to master. will do. #49

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed: could not retrieve Scala 2.12.12: missing scala.tools.nsc.Global
3 participants