Skip to content

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Jan 6, 2021

Found while debugging a customer setup. They had to flush their Redis.
Hence the info was no longer there. Since they also used S3 this meant
requesting the files over and over on template render. Which on S3 is
not cheap.

Now we just write it back if we can't get it from the cache in the first
place. So that the next run has it cached properly again.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

Found while debugging a customer setup. They had to flush their Redis.
Hence the info was no longer there. Since they also used S3 this meant
requesting the files over and over on template render. Which on S3 is
not cheap.

Now we just write it back if we can't get it from the cache in the first
place. So that the next run has it cached properly again.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer
Copy link
Member Author

rullzer commented Jan 6, 2021

/backport to stable20

@faily-bot
Copy link

faily-bot bot commented Jan 6, 2021

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 1019: failure

mariadb10.4-php7.4

Show full log
There was 1 failure:

1) Test\Files\Cache\Wrapper\CacheJailTest::testBogusPaths with data set #3 ('bogus//', 'bogus')
Failed asserting that 0 is greater than 0.

/drone/src/tests/lib/Files/Cache/CacheTest.php:629

@rullzer rullzer mentioned this pull request Jan 6, 2021
5 tasks
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Makes sense 👍

@rullzer rullzer merged commit 8fee2a9 into master Jan 7, 2021
@rullzer rullzer deleted the enh/make_sure_cache_is_set branch January 7, 2021 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants