Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

tests: Add upstream terraform trigger#1444

Merged
mxinden merged 1 commit intocoreos:masterfrom
mxinden:upstream-terraform-trigger
Aug 9, 2017
Merged

tests: Add upstream terraform trigger#1444
mxinden merged 1 commit intocoreos:masterfrom
mxinden:upstream-terraform-trigger

Conversation

@mxinden
Copy link
Contributor

@mxinden mxinden commented Jul 20, 2017

We are currently using a custom terraform version for our default CI
pipeline (See #1247).
As end users of Tectonic installer use upstream terraform we need to
test with upstream terraform as well. We are building and publishing the
Tectonic builder image both with CoreOS Terraform as well as upstream
Terraform. This is done via docker --build-arg TERRAFORM_URL. CoreOS
Terraform is used for normal PR and branch tests, upstream Terraform is
used once per day on master.

  • Add --build-arg TERRAFORM_URL to Tectonic builder Docker file
  • Update documentation in tectonic-builder/README.md
  • Add upstream-terraform-trigger.groovy pipeline job

With this commit v1.36 and v1.36-upstream-terraform of the Tectonic
builder images are pushed to quay.io/coreos/tectonic-builder. There
are no functional changes, but changes to the build order in the Dockerfile.

You can find the Jenkins job here.

@mxinden mxinden force-pushed the upstream-terraform-trigger branch from 139feae to 069f63f Compare July 20, 2017 10:05
@mxinden mxinden changed the title [WIP] tests: Add upstream terraform trigger tests: Add upstream terraform trigger Jul 20, 2017
@mxinden mxinden requested review from cpanato and s-urbaniak July 20, 2017 15:30
@mxinden mxinden force-pushed the upstream-terraform-trigger branch 3 times, most recently from 5931e1a to 926bc28 Compare July 20, 2017 16:50
@mxinden mxinden removed request for cpanato and s-urbaniak July 20, 2017 16:56
@mxinden mxinden changed the title tests: Add upstream terraform trigger [WIP] tests: Add upstream terraform trigger Jul 20, 2017
@mxinden
Copy link
Contributor Author

mxinden commented Jul 20, 2017

Forgot to do some code updates. Moving back to WIP.

@mxinden mxinden force-pushed the upstream-terraform-trigger branch 2 times, most recently from 9b3ddec to 323b380 Compare July 21, 2017 07:13
@mxinden mxinden changed the title [WIP] tests: Add upstream terraform trigger tests: Add upstream terraform trigger Jul 21, 2017
@mxinden mxinden requested review from cpanato and s-urbaniak July 21, 2017 10:55
@mxinden
Copy link
Contributor Author

mxinden commented Jul 21, 2017

@s-urbaniak @cpanato Ready for review.


## Upstream and CoreOS Terraform

We are currently using a custom terraform version for our default CI pipeline
Copy link
Contributor

Choose a reason for hiding this comment

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

s/We/The Tectonic CI

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

s-urbaniak
s-urbaniak previously approved these changes Jul 21, 2017
Copy link
Contributor

@s-urbaniak s-urbaniak left a comment

Choose a reason for hiding this comment

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

no objections, just a wording nit.

# docker tag <resulting-image-id> quay.io/coreos/tectonic-builder:<next-semver>
# docker push quay.io/coreos/tectonic-builder:<next-semver>
#
# docker build --build-arg TERRAFORM_URL=<upstream terraform download url> -f builder/Dockerfile .
Copy link
Contributor

Choose a reason for hiding this comment

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

the path for the Dockerfile is not right

Copy link
Contributor

Choose a reason for hiding this comment

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

also dont need to use the -t quay.io/coreos/tectonic-builder:v1.33-upstream-terraform as described in the readme?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its up to you if you build and then tag, or just tag during building via -t. But probably easier in two steps. Adjusted accordingly. Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok thanks!

cpanato
cpanato previously approved these changes Jul 21, 2017
Copy link
Contributor

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

LGTM, just my comment need to check but it is a non blocker

@mxinden mxinden dismissed stale reviews from cpanato and s-urbaniak via 82a60f6 July 21, 2017 12:00
@mxinden mxinden force-pushed the upstream-terraform-trigger branch from 323b380 to 82a60f6 Compare July 21, 2017 12:00
@mxinden
Copy link
Contributor Author

mxinden commented Jul 21, 2017

@s-urbaniak @cpanato Thanks for the review. Addressed all suggestions. Let me know if you see anything else.

cpanato
cpanato previously approved these changes Jul 21, 2017
s-urbaniak
s-urbaniak previously approved these changes Jul 21, 2017
@mxinden
Copy link
Contributor Author

mxinden commented Jul 21, 2017

@squat @Quentin-M @estroz Feel free to merge if you have no objections.

squat
squat previously requested changes Jul 24, 2017
Copy link
Contributor

@squat squat left a comment

Choose a reason for hiding this comment

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

Everything looks good except for a small nit in documentation


The Tectonic CI is currently using a custom terraform version for the default
pipeline (See https://github.com/coreos/tectonic-installer/pull/1247). As end
users of Tectonic installer use upstream terraform we need to test with upstream
Copy link
Contributor

Choose a reason for hiding this comment

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

let's be consistent with the casing of Terraform. Either terraform or Terraform but we should not switch.

@mxinden mxinden dismissed stale reviews from s-urbaniak and cpanato via 7bc232b July 26, 2017 17:03
@mxinden mxinden force-pushed the upstream-terraform-trigger branch from 82a60f6 to 7bc232b Compare July 26, 2017 17:03
@mxinden
Copy link
Contributor Author

mxinden commented Jul 26, 2017

@squat Thanks for the catch. Adjusted accordingly. Let me know if you have any other objections.

@cpanato
Copy link
Contributor

cpanato commented Aug 2, 2017

@mxinden could you please rebase

@mxinden mxinden force-pushed the upstream-terraform-trigger branch from 7bc232b to 044d20f Compare August 2, 2017 13:07
@mxinden
Copy link
Contributor Author

mxinden commented Aug 2, 2017

@cpanato Sorry for the delay and thanks for the reminder. Rebased. Let me know what you think.

cpanato
cpanato previously approved these changes Aug 2, 2017
Copy link
Contributor

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

LGTM

@mxinden
Copy link
Contributor Author

mxinden commented Aug 2, 2017

This will not turn green until #1558 is merged.

@mxinden
Copy link
Contributor Author

mxinden commented Aug 4, 2017

The only breaking change of this PR is
def default_builder_image = 'quay.io/coreos/tectonic-builder:v1.36' in the Jenkinsfile, conformance script and release script. v1.36 vs 1.35 only differs in the docker build execution order.

In build number 13 everything is green except:

  • SmokeTest TerraForm: AWS
  • SmokeTest TerraForm: AWS (network policy)

Both of these stages succeeded in build number 15.

Instead of retriggering the tests until all are green on this minor change, I would prefer to merge, even though the current build is not fully green.

@squat If you feel comfortable with this, please merge.

# docker push quay.io/coreos/tectonic-builder:<next-semver>
#
# docker build \
# --build-arg TERRAFORM_URL=<upstream terraform download url> \
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the release bundle or the binary itself?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, I saw it below 👍

@@ -0,0 +1,3 @@
node {
build job: 'tectonic-installer/master', parameters: [string(name: 'builder_image', value: 'quay.io/coreos/tectonic-builder:v1.36-upstream-terraform')]
Copy link
Contributor

Choose a reason for hiding this comment

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

This is hard to comprehend on one line.
Any chance we could break it down into multiple lines?

We are currently using a custom terraform version for our default CI
pipeline (See coreos#1247).
As end users of Tectonic installer use upstream terraform we need to
test with upstream terraform as well. We are building and publishing the
Tectonic builder image both with CoreOS Terraform as well as upstream
Terraform. This is done via docker `--build-arg` `TERRAFORM_URL`. CoreOS
Terraform is used for normal PR and branch tests, upstream Terraform is
used once per day on master.

* Add `--build-arg` `TERRAFORM_URL` to Tectonic builder Docker file
* Update documentation in tectonic-builder/README.md
* Add upstream-terraform-trigger.groovy pipeline job

With this commit v1.36 and v1.36-upstream-terraform of the Tectonic
builder images are pushed to quay.io/coreos/tectonic-builder. There
are no functional changes, but changes to the build order in the
Dockerfile.

You can find the Jenkins job
[here](https://jenkins-tectonic-installer.prod.coreos.systems/job/upstream-terraform-trigger/).
@mxinden mxinden force-pushed the upstream-terraform-trigger branch from 4659a6c to 15394f8 Compare August 9, 2017 11:41
@mxinden
Copy link
Contributor Author

mxinden commented Aug 9, 2017

@alexsomesan Broke it down to multiple lines. Let me know if there is anything else?

Copy link
Contributor

@alexsomesan alexsomesan left a comment

Choose a reason for hiding this comment

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

Looks good!
Let get this in.

@mxinden mxinden dismissed squat’s stale review August 9, 2017 12:31

Concerns were only related to documentation. They have been addressed. In addition Alex looked over all new changes.

@mxinden mxinden merged commit aa669ad into coreos:master Aug 9, 2017
wking added a commit to wking/openshift-installer that referenced this pull request Jul 9, 2018
These were added in 15394f8 (tests: Add upstream terraform trigger,
2017-07-21, coreos/tectonic-installer#1444), but we returned to
upstream Terraform in all cases in 379fd19 (Bump Terraform to 0.10.7,
2017-10-04, coreos/tectonic-installer#2041).  Remove the stale docs.
yifan-gu pushed a commit to yifan-gu/installer that referenced this pull request Jul 25, 2018
These were added in 15394f8 (tests: Add upstream terraform trigger,
2017-07-21, coreos/tectonic-installer#1444), but we returned to
upstream Terraform in all cases in 379fd19 (Bump Terraform to 0.10.7,
2017-10-04, coreos/tectonic-installer#2041).  Remove the stale docs.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants