Jobs began to say "Build cache is not configured for the build environment"

I am using the free Appveyor CI layer to test Windows builds of a FOSS project. Using cache of various directories used to help significantly, with one nit that a failed build (e.g. due to hitting the 1hr timeout) tends to lose the cache even if APPVEYOR_SAVE_CACHE_ON_ERROR: true is set.

Now I am trying to get it re-initialized, however even with shortened runs (without tests etc.) the job succeeds overall, but states that "Build cache is not configured for the build environment" both when starting the job (where it should unpack existing data) and when ending it.

For example, see a recent https://ci.appveyor.com/project/nut-travis/nut/builds/52524804?full... with such fault both on start (sort of expected even if annoying) and at the end of job (unexpected, this part of the appveyor.yml recipe did not change):

Build started
git clone -q --branch=master https://github.com/networkupstools/nut.git C:\projects\nut
git checkout -qf 4ea6a4e65332dce410e9ec7c21f3fb0cedf34880
Build cache is not configured for the build environment.
Running Install scripts
...
...
...
Discovering tests...OK
Collecting artifacts...
Found artifact 'config.log' matching 'config.log' path
Found artifact 'config.nut_report_feature.log' matching 'config.nut_report_feature.log' path
Uploading artifacts...
[1/2] config.log (1,710,584 bytes)...100%
[2/2] config.nut_report_feature.log (5,813 bytes)...100%
Build cache is not configured for the build environment.
Build success

An earlier successful build https://ci.appveyor.com/project/nut-travis/nut/builds/52497342?full... (ran a week ago) did have the caches:

...
git checkout -qf FETCH_HEAD
Restoring build cache
Cache 'C:\msys64\home\appveyor.ccache' - Restored
Cache 'C:\msys64\var\cache\pacman\pkg' - Restored
Cache 'C:\msys64\home\appveyor\nut-win-deps' - Restored
Running Install scripts
...
...
...
Collecting artifacts...
Found artifact 'config.log' matching 'config.log' path
Found artifact 'config.nut_report_feature.log' matching 'config.nut_report_feature.log' path
Found artifact 'NUT-for-Windows-x86_64-SNAPSHOT-2.8.3.3423-master.7z' matching 'NUT-for-Windows*.7z' path
Uploading artifacts...
[1/3] config.log (1,714,455 bytes)...100%
[2/3] config.nut_report_feature.log (5,872 bytes)...100%
[3/3] NUT-for-Windows-x86_64-SNAPSHOT-2.8.3.3423-master.7z (61,496,073 bytes)...100%
Updating build cache...
Cache 'C:\msys64\home\appveyor.ccache' - Updated
Cache entry not found: C:\msys64\home\appveyor\ccache
Cache entry not found: C:\Users\appveyor\AppData\Local\ccache
Cache entry not found: C:\Users\appveyor\AppData\Local.ccache
Cache 'C:\msys64\var\cache\pacman\pkg' - Up to date
Cache 'C:\msys64\home\appveyor\nut-win-deps' - Up to date
Build success

Here's the last build which worked, starting out with a cache and dying on timeout while zipping another: https://ci.appveyor.com/project/nut-travis/nut/builds/52500648?full...

This mis-behaves similarly in my private account as well, e.g. at https://ci.appveyor.com/project/jimklimov/nut/builds/52524805 (today) vs. https://ci.appveyor.com/project/jimklimov/nut/builds/52455730?fullL... (2 weeks ago).

  1. Earlier experiments today involved direct pushes to the master branch of upstream or personal repo; for kicks trying a PR build, in case it would behave differently: https://ci.appveyor.com/project/nut-travis/nut/builds/52526491?full...

  2. There were issues with cache on hosting provider side. They are now must be fixed.
    We are going to re-enable cache tomorrow. Hope that helps. Sorry for the inconvenience.

  3. Ah, great to know as I was banging my head on the wall about whether I corrupted the YAML syntax while reducing its build scope.

    https://status.appveyor.com/ does not mention any reported incidents, and all services claim to be green though...

  4. May I kindly ask to be made aware (here, or via https://status.appveyor.com/) when this caching feature would be re-enabled, so I can avoid trying to re-run those jobs every few hours until their logs do not start with the "Build cache is not configured for the build environment" message. This approach wastes both your resources and mine :)

  5. Cache has been re-enabled.

  6. Thanks, super - checked that it works again, at least tries to save the caches after a build. Will see if subsequent PR iterations benefit from that :)

  7. They do, issue solved :)

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions