Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JetBrains cache-redirector service for stable CI builds #2247

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

elizarov
Copy link
Contributor

On CI set CACHE_REDIRECTOR=true environment property.

On CI set CACHE_REDIRECTOR=true environment property.
val msg = "Repository $url in $containerName should be cached with cache-redirector"
val details = "Using non cached repository may lead to download failures in CI builds." +
" Check buildSrc/src/main/kotlin/CacheRedirector.kt for details."
logger.warn("WARNING - $msg\n$details")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nobody will see this warning until builds start to fail.
Maybe a better strategy is to fail-fast, so the maintainer (this script is going to be copy-pasted :)) will see the failure, file an issue and mute the problem only then.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not a test, so the only thing I can do is to hard-fail here, which is too much. I've tried doing it as a test (that's what kotlin project does), but that turned out to be quite complicated due to various technical issues, since I want to verify repositories in all projects and buildscript.

Copy link
Collaborator

@qwwdfsad qwwdfsad left a comment

Choose a reason for hiding this comment

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

Otherwise good

@elizarov elizarov merged commit 85b1a2b into develop Sep 14, 2020
@elizarov elizarov deleted the redirector branch September 14, 2020 14:48
recheej pushed a commit to recheej/kotlinx.coroutines that referenced this pull request Dec 28, 2020
…in#2247)

On CI set CACHE_REDIRECTOR=true environment property.
recheej pushed a commit to recheej/kotlinx.coroutines that referenced this pull request Dec 28, 2020
…in#2247)

On CI set CACHE_REDIRECTOR=true environment property.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants