ConnectionFailureRepositoryBlacklisterTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Replace black/white list terms with more descriptive language

There are always better words to choose from than connotated

language which can be either offensive or associating one

people's color with something bad.

This commit is also a first step in acting, following our

company's statement:

As a distributed company that calls many countries home, we have

been shocked and saddened by the death of George Floyd and the police

response to the protests.

People of color are being murdered and brutalized by police with few

consequences. Gradle stands in solidarity with protesters demanding

accountability.

We urge governments worldwide, including the US federal, state, and

local governments to act swiftly and meaningfully to address the root

cause of these protests and take immediate measures to stop unlawful

killings by police.

Gradle folks across the company have donated thousands of dollars to

organizations working to address racism and systemic injustices in the

world and Gradle will be evaluating within our own organization how to

do more.

If you would like to do something, please consider:

- Donating money to Amnesty International, Black Visions Collective,

NAACP LDF, or National Bail Fund.

- Volunteering time with organizations in your local community that

fight for equality and justice

- Writing to your government representatives

    • -97
    • +0
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 20 more files in changeset.
Replace black/white list terms with more descriptive language

There are always better words to choose from than connotated

language which can be either offensive or associating one

people's color with something bad.

This commit is also a first step in acting, following our

company's statement:

As a distributed company that calls many countries home, we have

been shocked and saddened by the death of George Floyd and the police

response to the protests.

People of color are being murdered and brutalized by police with few

consequences. Gradle stands in solidarity with protesters demanding

accountability.

We urge governments worldwide, including the US federal, state, and

local governments to act swiftly and meaningfully to address the root

cause of these protests and take immediate measures to stop unlawful

killings by police.

Gradle folks across the company have donated thousands of dollars to

organizations working to address racism and systemic injustices in the

world and Gradle will be evaluating within our own organization how to

do more.

If you would like to do something, please consider:

- Donating money to Amnesty International, Black Visions Collective,

NAACP LDF, or National Bail Fund.

- Volunteering time with organizations in your local community that

fight for equality and justice

- Writing to your government representatives

    • -97
    • +0
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 20 more files in changeset.
Replace black/white list terms with more descriptive language

There are always better words to choose from than connotated

language which can be either offensive or associating one

people's color with something bad.

This commit is also a first step in acting, following our

company's statement:

As a distributed company that calls many countries home, we have

been shocked and saddened by the death of George Floyd and the police

response to the protests.

People of color are being murdered and brutalized by police with few

consequences. Gradle stands in solidarity with protesters demanding

accountability.

We urge governments worldwide, including the US federal, state, and

local governments to act swiftly and meaningfully to address the root

cause of these protests and take immediate measures to stop unlawful

killings by police.

Gradle folks across the company have donated thousands of dollars to

organizations working to address racism and systemic injustices in the

world and Gradle will be evaluating within our own organization how to

do more.

If you would like to do something, please consider:

- Donating money to Amnesty International, Black Visions Collective,

NAACP LDF, or National Bail Fund.

- Volunteering time with organizations in your local community that

fight for equality and justice

- Writing to your government representatives

    • -97
    • +0
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 20 more files in changeset.
Gradle should fail resolution from subsequent repositories on critical errors (#3412)

    • -9
    • +20
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 15 more files in changeset.
Only blacklist a repository on connection timeout failures

    • -4
    • +4
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 1 more file in changeset.
Add blacklister to repository management (#3047)

Fix https://github.com/gradle/gradle/issues/2853

Previous versions of Gradle would fall through to the next repository

if resolution in one repository failed. This may cause potentially

indeterministic resolution result. This PR changes this behaviour

and will explicitly rethrow exceptions which occur in dependency

resolution instead of quietly continue to the next repository.

What's more, this PR introduces a RepositoryBlacklister. Exceptions

thrown during dependency resolution are categoried as follows:

1. Caused by HTTP error status code (other than 2xx/3xx/404)

These exceptions would be considered as "recoverable" since

the server seems still to be able to respond.

2. Caused by other IOException/UncheckedIOException

These exceptions would be considered as "unrecoverable"

and the repository would be blacklisted in the build.

    • -0
    • +86
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 19 more files in changeset.
Handle range of HTTP error codes the same way as timeouts

    • -1
    • +1
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 2 more files in changeset.
Do not check other repositories if presence of module cannot be determined

    • -0
    • +90
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 19 more files in changeset.
Try to get CI green

    • -1
    • +1
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 2 more files in changeset.
Add tests that cover broken server behavior

    • -0
    • +90
    ./ConnectionFailureRepositoryBlacklisterTest.groovy
  1. … 6 more files in changeset.