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

[BEAM-9815] Correct go integration test if clauses. #11524

Merged
merged 5 commits into from
Apr 28, 2020

Conversation

lostluck
Copy link
Contributor

@lostluck lostluck commented Apr 25, 2020

String comparisons in the integration test script were not running as expected, meaning dev image pushes were not occuring for dataflow.

This doesn't fix dataflow, but it brings it back to the "No artifacts staged" issue it was experiencing before.


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@lostluck
Copy link
Contributor Author

Run Go PostCommit

@lostluck
Copy link
Contributor Author

Run Go PostCommit

@lostluck
Copy link
Contributor Author

Run Go PostCommit VR Flink

@lostluck
Copy link
Contributor Author

Run Go PostCommit_VR_Flink

@lostluck
Copy link
Contributor Author

Run Go PostCommit

@lostluck
Copy link
Contributor Author

R: @robertwb

Copy link
Contributor

@robertwb robertwb 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 fixing this! (I was really tempted to re-write this in Python :)

@@ -104,7 +104,7 @@ func main() {

switch len(artifacts) {
case 0:
log.Fatal("No artifacts staged")
log.Printf("No artifacts staged. Attempting to run default \"worker\".")
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be fatal? There isn't a "default" worker.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can revert this line. It was mostly to explore if the artifacts got copied to the expected location anyway because the model was discovered that way in the first place.

sdks/go/test/run_integration_tests.sh Outdated Show resolved Hide resolved
sdks/go/test/run_integration_tests.sh Outdated Show resolved Hide resolved
sdks/go/test/run_integration_tests.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@robertwb robertwb left a comment

Choose a reason for hiding this comment

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

LGTM, if the double vs. single brackets are consistently used.

@lostluck
Copy link
Contributor Author

Run Go Postcommit

@lostluck
Copy link
Contributor Author

I'll merge once I sanity check that we're back to "No artifacts" for the Dataflow tests, and otherwise passed.

@lostluck
Copy link
Contributor Author

"No artifacts staged" state has been verified. Merging.

@lostluck lostluck merged commit 7823cd0 into apache:master Apr 28, 2020
bntnam pushed a commit to PolideaInternal/beam that referenced this pull request May 5, 2020
String comparisons in the integration test script were not running as expected, meaning dev image pushes were not occuring for dataflow, leading to a separate issue. 

Doesn't fix dataflow,but brings it back to the "No artifacts staged" error, which requires a dataflow change to fix.
yirutang pushed a commit to yirutang/beam that referenced this pull request Jul 23, 2020
String comparisons in the integration test script were not running as expected, meaning dev image pushes were not occuring for dataflow, leading to a separate issue. 

Doesn't fix dataflow,but brings it back to the "No artifacts staged" error, which requires a dataflow change to fix.
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.

None yet

2 participants