[
https://issues.apache.org/jira/browse/FLINK-16676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062465#comment-17062465
]
Hequn Cheng edited comment on FLINK-16676 at 3/19/20, 11:13 AM:
----------------------------------------------------------------
The problem is the detailed error message would be different in different
environments.
In travis:
{code}
An error occurred while calling o0.loadJson.
{code}
but in Azure:
{code}
An error occurred while calling o1095.loadJson
{code}
To solve the problem, we can check the general error message instead of the
very detailed one in the test.
was (Author: hequn8128):
The problem is the detailed error message would be different in different
environments.
In travis:
{code}
An error occurred while calling o0.loadJson.
{code}
but in Azure:
{code}
An error occurred while calling o1095.loadJson
{code}
To solve the problem, we can check the general error message instead of the
very detailed one.
> test_pipeline_from_invalid_json is failing Azure
> ------------------------------------------------
>
> Key: FLINK-16676
> URL: https://issues.apache.org/jira/browse/FLINK-16676
> Project: Flink
> Issue Type: Bug
> Components: API / Python
> Affects Versions: 1.11.0
> Reporter: Piotr Nowojski
> Assignee: Hequn Cheng
> Priority: Blocker
> Labels: pull-request-available, test-stability
> Fix For: 1.11.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Seems like all recent builds are failing:
> https://dev.azure.com/rmetzger/Flink/_build/results?buildId=6376&view=logs&j=9cada3cb-c1d3-5621-16da-0f718fb86602&t=165fcdc0-86f6-5c68-d844-b25f91686149
> https://dev.azure.com/rmetzger/Flink/_build/results?buildId=6375&view=logs&j=9cada3cb-c1d3-5621-16da-0f718fb86602&t=165fcdc0-86f6-5c68-d844-b25f91686149
> https://dev.azure.com/rmetzger/Flink/_build/results?buildId=6372&view=logs&j=9cada3cb-c1d3-5621-16da-0f718fb86602&t=165fcdc0-86f6-5c68-d844-b25f91686149
> {code:java}
> =================================== FAILURES
> ===================================
> ____________ ValidationPipelineTest.test_pipeline_from_invalid_json
> ____________
> self = <pyflink.ml.tests.test_pipeline.ValidationPipelineTest
> testMethod=test_pipeline_from_invalid_json>
> def test_pipeline_from_invalid_json(self):
> invalid_json = '[a:aa]'
>
> # load json
> p = Pipeline()
> with self.assertRaises(RuntimeError) as context:
> p.load_json(invalid_json)
> exception_str = str(context.exception)
>
> # only assert key error message as the whole message is very long.
> self.assertTrue(
> 'Cannot load the JSON as either a Java Pipeline or a Python
> Pipeline.'
> in exception_str)
> self.assertTrue(
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)