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

v0.3 backport: Fail Spotless check before tests #516

Merged

Conversation

ches
Copy link
Member

@ches ches commented Mar 7, 2020

What this PR does / why we need it:

Backports #487 to v0.3-branch—as we are internally developing on this branch for the time being, we're trying to maintain formatting for the sake of easing reviews as intended, and also in hopes that it will ease cherry picks for back- and possible forward-porting since #487 keeps consistency.

I'll send one of these for v0.4-branch too, as we are edging closer to catching up to v0.4 🎉

Does this PR introduce a user-facing change?:

NONE

@ches
Copy link
Member Author

ches commented Mar 7, 2020

/assign @thirteen37

@ches
Copy link
Member Author

ches commented Mar 7, 2020

The test failures for Java say:

 .prow/scripts/test-end-to-end-batch.sh only supports Debian stretch.
Please change your operating system to use this script. 

Is there configuration somewhere that maybe has the old branches running on old image versions?

@ches
Copy link
Member Author

ches commented Mar 7, 2020

I'll send one of these for v0.4-branch too

Never mind, @davidheryanto did this already in #496 🙏

@ches
Copy link
Member Author

ches commented Mar 7, 2020

Is there configuration somewhere that maybe has the old branches running on old image versions?

I guess it's perhaps these:

https://github.com/gojek/feast/blob/7633912cd8209cece2a21ebe344600342ef1ff9b/.prow/config.yaml#L162-L174

The e2e test scripts have been updated to require Debian Stretch, but maven:3.6-jdk-8 is based on older, presumably.

@woop
Copy link
Member

woop commented Mar 9, 2020

Is there configuration somewhere that maybe has the old branches running on old image versions?

I guess it's perhaps these:

https://github.com/gojek/feast/blob/7633912cd8209cece2a21ebe344600342ef1ff9b/.prow/config.yaml#L162-L174

The e2e test scripts have been updated to require Debian Stretch, but maven:3.6-jdk-8 is based on older, presumably.

I think its actually based on buster which is newer. Stretch is older.

Correct me if I am wrong @davidheryanto, but you are using this base_ref to point to the older prow build scripts for 0.3, meaning the following script is being executed which requires stretch.
https://github.com/gojek/feast/blob/784c7e0e5fc9ba44e60e32cdfaf2f49f6589c209/.prow/scripts/test-end-to-end-batch.sh

So in theory we should just backport the removal of the stretch requirement or change it to buster?

@davidheryanto
Copy link
Collaborator

davidheryanto commented Mar 9, 2020

Oh I think Docker image maven:3.6-jdk-8 has been updated, so now it uses Debian 10 (buster), previously that image was based on Debian 9 (stretch).

I think it should be generally safe to remove the check for Debian version, I put it last time just for completeness.

https://github.com/gojek/feast/blob/v0.3-branch/.prow/scripts/test-end-to-end.sh#L6

I will created a PR to v0.3-branch to remove this check
#523

ches and others added 2 commits March 9, 2020 11:12
By default, the spotless Maven plugin binds its check goal to the verify
phase (late in the lifecycle, after integration tests). Because we
currently only run `mvn test` for CI, it doesn't proceed as far as
verify so missed formatting is not caught by CI.

This binds the check to an earlier phase, in between test-compile and
test, so that it will fail before `mvn test` but not disrupt your dev
workflow of compiling main and test sources as you work. This strikes a
good compromise on failing fast for code standards without being _too_
nagging.

For the complete lifecycle reference, see:
https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
Hopefully for last time as a bulk operation, after 6363540.
@ches ches force-pushed the v0.3-backport-487-spotless-early branch from 6a0de15 to 67e43d2 Compare March 9, 2020 04:12
@davidheryanto
Copy link
Collaborator

/lgtm

@davidheryanto
Copy link
Collaborator

/approve

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ches, davidheryanto

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@feast-ci-bot feast-ci-bot merged commit be4d189 into feast-dev:v0.3-branch Mar 9, 2020
@ches ches deleted the v0.3-backport-487-spotless-early branch March 9, 2020 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants