Skip to content

Conversation

@zentol
Copy link
Contributor

@zentol zentol commented Jul 27, 2018

What is the purpose of the change

This PR hardens the ClassLoader end-to-end test.

Brief change log

  • retrieve commit id from .version.properties as the value has a well-defined format
  • do not access .version.properties file in source of flink-runtime and match id against regex instead
    • prevents failures caused by value mismatches if the binary does not originate from the source
    • prevents failures when flink-runtime has not been built, e.g. if the tests were run in a clean repo
    • removes access outside of flink-end-to-end-tests which is good for maintainability
  • exit early on test failure
    • same behavior as if the test was split in several files

Copy link
Contributor

@twalthr twalthr left a comment

Choose a reason for hiding this comment

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

Thanks @zentol. I had just a little comment. Otherwise +1 to merge.

Properties properties = new Properties();
properties.load(in);
String orderedGitUrl = properties.getProperty("git.remote.origin.url");
String orderedGitUrl = properties.getProperty("git.commit.id.abbrev");
Copy link
Contributor

Choose a reason for hiding this comment

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

Update variable name as well.

@zentol zentol merged commit a9d556e into apache:master Jul 31, 2018
@zentol zentol deleted the 9987 branch July 31, 2018 09:24
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.

3 participants