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

jenkinsfiles: remove unused environment variables #15125

Merged
merged 1 commit into from
Mar 3, 2021

Conversation

aanm
Copy link
Member

@aanm aanm commented Feb 26, 2021

As we are no longer building images in ginkgo, we can remove these
environment variables.

Signed-off-by: André Martins andre@cilium.io

@aanm aanm added the release-note/misc This PR makes changes that have no direct user impact. label Feb 26, 2021
@aanm aanm requested a review from a team as a code owner February 26, 2021 12:01
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Feb 26, 2021
@aanm aanm requested a review from brb February 26, 2021 12:01
@aanm aanm added release-note/ci This PR makes changes to the CI. and removed release-note/misc This PR makes changes that have no direct user impact. labels Feb 26, 2021
@aanm aanm requested review from nebril and removed request for brb February 26, 2021 12:01
@aanm aanm unassigned brb Feb 26, 2021
@aanm
Copy link
Member Author

aanm commented Feb 26, 2021

test-me-please

@aanm
Copy link
Member Author

aanm commented Mar 1, 2021

hit #15141

Copy link
Member

@nebril nebril left a comment

Choose a reason for hiding this comment

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

Thanks for taking a stab at this! There are some issues with this change, let me know if any of my comments is unclear.

@@ -83,6 +71,7 @@ pipeline {
}
if (env.RACE?.trim()) {
Copy link
Member

Choose a reason for hiding this comment

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

s/env.RACE?.trim()/env.run_with_race_detection?.trim() , RACE was set at line 23

@@ -100,6 +88,7 @@ pipeline {
}
if (env.RACE?.trim()) {
Copy link
Member

Choose a reason for hiding this comment

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

same as gke jenkinsfile

@@ -83,6 +71,7 @@ pipeline {
}
if (env.RACE?.trim()) {
env.DOCKER_TAG = env.DOCKER_TAG + "-race"
env.RACE = "true"
Copy link
Member

@nebril nebril Mar 1, 2021

Choose a reason for hiding this comment

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

This doesn't do anything, let's get rid of RACE env var in all jenkinsfiles aside from runtime.

@@ -100,6 +88,7 @@ pipeline {
}
if (env.RACE?.trim()) {
env.DOCKER_TAG = env.DOCKER_TAG + "-race"
env.RACE = "true"
Copy link
Member

Choose a reason for hiding this comment

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

same as gke jenkinsfile

@@ -28,14 +28,6 @@ pipeline {
returnStdout: true,
script: 'if [ "${run_with_race_detection}" = "" ]; then echo -n ""; else echo -n "1"; fi'
)}"""
LOCKDEBUG="""${sh(
Copy link
Member

Choose a reason for hiding this comment

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

I think we want these env vars to be set, as they are passed to runtime VM which causes them to be passed to make targets run inside the vm which build the binaries.

returnStdout: true,
script: 'if [ "${run_with_race_detection}" = "" ]; then echo -n ""; else echo -n "1"; fi'
)}"""
BASE_IMAGE="""${sh(
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@@ -87,6 +75,7 @@ pipeline {
env.DOCKER_TAG = env.ghprbActualCommit
} else {
env.DOCKER_TAG = env.GIT_COMMIT
env.RACE = "true"
Copy link
Member

Choose a reason for hiding this comment

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

This is a no-op, we need a second if in this block:

if (env.run_with_race_detection?.trim()) {
  env.DOCKER_TAG = env.DOCKER_TAG + "-race"
}

As we are no longer building images in ginkgo, we can remove these
environment variables.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm force-pushed the pr/remove-unused-fields-in-jenkins branch from 64d88d1 to 9ace2ea Compare March 1, 2021 12:20
@aanm aanm requested a review from nebril March 1, 2021 12:20
@aanm
Copy link
Member Author

aanm commented Mar 1, 2021

test-me-please

@aanm
Copy link
Member Author

aanm commented Mar 3, 2021

merging since this is only modifying jenkinsfiles.

@aanm aanm merged commit 92a2d0c into cilium:master Mar 3, 2021
1.10.0 automation moved this from In progress to Done Mar 3, 2021
@aanm aanm deleted the pr/remove-unused-fields-in-jenkins branch March 3, 2021 09:33
nbusseneau added a commit to nbusseneau/cilium that referenced this pull request May 7, 2021
PR cilium#15125 broke race detector pipelines due to the `RACE` environment
variable not being present, when it is required for
`SkipRaceDetectorEnabled` to work properly.

A quick inspection leads me to believe `LOCKDEBUG` also is required for
package `lock`. I am less convinced about `BASE_IMAGE` being required,
but I'm adding it back anyway in a sort of spiritual revert until we
figure it out.

Fixes cilium#15214: the Kafka tests were actually already disabled for race
detector pipelines, as per cilium#13757. They were only running the pipelines
due to cilium#15125 re-enabling them incidentally.

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
jrajahalme pushed a commit that referenced this pull request May 11, 2021
PR #15125 broke race detector pipelines due to the `RACE` environment
variable not being present, when it is required for
`SkipRaceDetectorEnabled` to work properly.

A quick inspection leads me to believe `LOCKDEBUG` also is required for
package `lock`. I am less convinced about `BASE_IMAGE` being required,
but I'm adding it back anyway in a sort of spiritual revert until we
figure it out.

Fixes #15214: the Kafka tests were actually already disabled for race
detector pipelines, as per #13757. They were only running the pipelines
due to #15125 re-enabling them incidentally.

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
glibsm pushed a commit to glibsm/cilium that referenced this pull request May 12, 2021
[ upstream commit f578ba5 ]

PR cilium#15125 broke race detector pipelines due to the `RACE` environment
variable not being present, when it is required for
`SkipRaceDetectorEnabled` to work properly.

A quick inspection leads me to believe `LOCKDEBUG` also is required for
package `lock`. I am less convinced about `BASE_IMAGE` being required,
but I'm adding it back anyway in a sort of spiritual revert until we
figure it out.

Fixes cilium#15214: the Kafka tests were actually already disabled for race
detector pipelines, as per cilium#13757. They were only running the pipelines
due to cilium#15125 re-enabling them incidentally.

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
Signed-off-by: Glib Smaga <code@gsmaga.com>
aanm pushed a commit that referenced this pull request May 13, 2021
[ upstream commit f578ba5 ]

PR #15125 broke race detector pipelines due to the `RACE` environment
variable not being present, when it is required for
`SkipRaceDetectorEnabled` to work properly.

A quick inspection leads me to believe `LOCKDEBUG` also is required for
package `lock`. I am less convinced about `BASE_IMAGE` being required,
but I'm adding it back anyway in a sort of spiritual revert until we
figure it out.

Fixes #15214: the Kafka tests were actually already disabled for race
detector pipelines, as per #13757. They were only running the pipelines
due to #15125 re-enabling them incidentally.

Signed-off-by: Nicolas Busseneau <nicolas@isovalent.com>
Signed-off-by: Glib Smaga <code@gsmaga.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/ci This PR makes changes to the CI.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants