Skip to content

Conversation

@openinx
Copy link
Member

@openinx openinx commented Feb 21, 2022

Run flink travis CI for both scala 2.11 & 2.12

@github-actions github-actions bot added the INFRA label Feb 21, 2022
matrix:
jvm: [8, 11]
flink: ['1.12', '1.13', '1.14']
scala: ['2.11', '2.12']
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes Flink testing very expensive. Is it possible to just test the latest Flink with all versions of Scala and test the old ones with just 2.12?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1. This will add quite a lot to the Flink CI time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds reasonable ! Just updated the patch.

key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
- run: ./gradlew -DsparkVersions= -DhiveVersions= -DflinkVersions=${{ matrix.flink }} :iceberg-flink:iceberg-flink-${{ matrix.flink }}:check :iceberg-flink:iceberg-flink-runtime-${{ matrix.flink }}:check -DscalaVersion=2.11 -DknownScalaVersions=2.11 -Pquick=true -x javadoc
Copy link
Member Author

Choose a reason for hiding this comment

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

This PR should merge before this PR : #4193 . Because if we don't merge the #4193 then this artifact name iceberg-flink-runtime-1.14 is not correct. (It is iceberg-flink-runtime-1.14_2.12)

@openinx
Copy link
Member Author

openinx commented Feb 28, 2022

@rdblue , Is there any other concern for this PR ? I will suggest to merge this one in a little high priority because it is adding extra Scala 2.11 build & validation for all further PRs :-)

restore-keys: ${{ runner.os }}-gradle
- run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
- run: ./gradlew -DsparkVersions= -DhiveVersions= -DflinkVersions=${{ matrix.flink }} :iceberg-flink:iceberg-flink-${{ matrix.flink }}:check :iceberg-flink:iceberg-flink-runtime-${{ matrix.flink }}:check -Pquick=true -x javadoc
- run: ./gradlew -DsparkVersions= -DhiveVersions= -DflinkVersions=${{ matrix.flink }} :iceberg-flink:iceberg-flink-${{ matrix.flink }}:check :iceberg-flink:iceberg-flink-runtime-${{ matrix.flink }}:check -DscalaVersion=2.12 -DknownScalaVersions=2.12 -Pquick=true -x javadoc
Copy link
Contributor

Choose a reason for hiding this comment

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

knownScalaVersions shouldn't need to change, right? That is the list of versions that are supported by the build.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds reasonable to me, I've just reverted this change.

@rdblue
Copy link
Contributor

rdblue commented Mar 13, 2022

@openinx, this looks good to me other than setting knownScalaVersions.

@openinx openinx merged commit f6c575f into apache:master Mar 15, 2022
@openinx
Copy link
Member Author

openinx commented Mar 15, 2022

Everything looks good now. I just got this PR merged, thanks all for reviewing !

@openinx openinx deleted the check-flink-modules-with-scala-versions branch March 15, 2022 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants