[jira] [Commented] (BEAM-7902) :beam-test-infra-metrics:test is consistently failing

2019-09-30 Thread Mikhail Gryzykhin (Jira)


[ 
https://issues.apache.org/jira/browse/BEAM-7902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16941312#comment-16941312
 ] 

Mikhail Gryzykhin commented on BEAM-7902:
-

Closing in favor of https://issues.apache.org/jira/browse/BEAM-8327

> :beam-test-infra-metrics:test is consistently failing
> -
>
> Key: BEAM-7902
> URL: https://issues.apache.org/jira/browse/BEAM-7902
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Mark Liu
>Assignee: Mikhail Gryzykhin
>Priority: Major
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> A failure gradle run from my local machine:  
> https://gradle.com/s/sqcwi7bo3a2nw. Stacktrace:
> {code}
> org.apache.beam.testinfra.metrics.ProberTests > CheckGrafanaStalenessAlerts 
> FAILED
> java.lang.AssertionError: Input data is stale! [id:1, dashboardId:5, 
> dashboardUid:data-freshness, dashboardSlug:source-data-freshness, panelId:2, 
> name:Source Data Freshness alert, state:alerting, 
> newStateDate:2019-07-30T02:55:02Z, evalDate:0001-01-01T00:00:00Z, 
> evalData:[evalMatches:[[metric:GitHub, tags:null, 
> value:482.1661704504]]], executionError:, 
> url:/d/data-freshness/source-data-freshness]
>See: http://104.154.241.245/d/data-freshness. Expression: (alert.state 
> == ok)
> at 
> org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:406)
> at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:650)
> ...
> {code}
> From the stacktrace suggestion, I went to 
> http://104.154.241.245/d/data-freshness and got Github source is older than a 
> week, which I guess is potentially the failure reason. However, no further 
> instruction on what to do next. 
> After some investigations, I found this test `:beam-test-infra-metrics:test` 
> is added to 
> [beam_Prober_CommunityMetrics|https://builds.apache.org/view/A-D/view/Beam/view/All/job/beam_Prober_CommunityMetrics/]
>  but never got passed (either failed or skipped due to cache). 
> Is there anything wrong with Github data refresh? Should we reevaluate the 
> alert on dashboard or modify the test?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (BEAM-7902) :beam-test-infra-metrics:test is consistently failing

2019-08-05 Thread Mikhail Gryzykhin (JIRA)


[ 
https://issues.apache.org/jira/browse/BEAM-7902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16900566#comment-16900566
 ] 

Mikhail Gryzykhin commented on BEAM-7902:
-

So far I patched issue with data freshness.

[~markflyhigh] do you know how to do 1 and 2?
 # Integration test is regular test target in build.gradle. Is there a way to 
make it trigger only when we call some specific task in gradle?
 # How do I invalidate cache for specific project?

I'll continue searching tomorrow, but with lower priority.

> :beam-test-infra-metrics:test is consistently failing
> -
>
> Key: BEAM-7902
> URL: https://issues.apache.org/jira/browse/BEAM-7902
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Mark Liu
>Assignee: Mikhail Gryzykhin
>Priority: Major
>
> A failure gradle run from my local machine:  
> https://gradle.com/s/sqcwi7bo3a2nw. Stacktrace:
> {code}
> org.apache.beam.testinfra.metrics.ProberTests > CheckGrafanaStalenessAlerts 
> FAILED
> java.lang.AssertionError: Input data is stale! [id:1, dashboardId:5, 
> dashboardUid:data-freshness, dashboardSlug:source-data-freshness, panelId:2, 
> name:Source Data Freshness alert, state:alerting, 
> newStateDate:2019-07-30T02:55:02Z, evalDate:0001-01-01T00:00:00Z, 
> evalData:[evalMatches:[[metric:GitHub, tags:null, 
> value:482.1661704504]]], executionError:, 
> url:/d/data-freshness/source-data-freshness]
>See: http://104.154.241.245/d/data-freshness. Expression: (alert.state 
> == ok)
> at 
> org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:406)
> at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:650)
> ...
> {code}
> From the stacktrace suggestion, I went to 
> http://104.154.241.245/d/data-freshness and got Github source is older than a 
> week, which I guess is potentially the failure reason. However, no further 
> instruction on what to do next. 
> After some investigations, I found this test `:beam-test-infra-metrics:test` 
> is added to 
> [beam_Prober_CommunityMetrics|https://builds.apache.org/view/A-D/view/Beam/view/All/job/beam_Prober_CommunityMetrics/]
>  but never got passed (either failed or skipped due to cache). 
> Is there anything wrong with Github data refresh? Should we reevaluate the 
> alert on dashboard or modify the test?



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Commented] (BEAM-7902) :beam-test-infra-metrics:test is consistently failing

2019-08-05 Thread Mikhail Gryzykhin (JIRA)


[ 
https://issues.apache.org/jira/browse/BEAM-7902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16900434#comment-16900434
 ] 

Mikhail Gryzykhin commented on BEAM-7902:
-

This shows 3 issues:
 # We should remove this test from build target, since it is an integration 
test that shows the healthiness of metrics website.
 # We need to fix beam_Prober_CommunityMetrics target to not hit cache. It 
always fetches fresh data from website even though binaries are the same.
 # There actually seem to be an issue with fetching latest data from github on 
metrics site. As you noted it is week old and test catches the issue.

 

> :beam-test-infra-metrics:test is consistently failing
> -
>
> Key: BEAM-7902
> URL: https://issues.apache.org/jira/browse/BEAM-7902
> Project: Beam
>  Issue Type: Bug
>  Components: test-failures
>Reporter: Mark Liu
>Assignee: Mikhail Gryzykhin
>Priority: Major
>
> A failure gradle run from my local machine:  
> https://gradle.com/s/sqcwi7bo3a2nw. Stacktrace:
> {code}
> org.apache.beam.testinfra.metrics.ProberTests > CheckGrafanaStalenessAlerts 
> FAILED
> java.lang.AssertionError: Input data is stale! [id:1, dashboardId:5, 
> dashboardUid:data-freshness, dashboardSlug:source-data-freshness, panelId:2, 
> name:Source Data Freshness alert, state:alerting, 
> newStateDate:2019-07-30T02:55:02Z, evalDate:0001-01-01T00:00:00Z, 
> evalData:[evalMatches:[[metric:GitHub, tags:null, 
> value:482.1661704504]]], executionError:, 
> url:/d/data-freshness/source-data-freshness]
>See: http://104.154.241.245/d/data-freshness. Expression: (alert.state 
> == ok)
> at 
> org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:406)
> at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:650)
> ...
> {code}
> From the stacktrace suggestion, I went to 
> http://104.154.241.245/d/data-freshness and got Github source is older than a 
> week, which I guess is potentially the failure reason. However, no further 
> instruction on what to do next. 
> After some investigations, I found this test `:beam-test-infra-metrics:test` 
> is added to 
> [beam_Prober_CommunityMetrics|https://builds.apache.org/view/A-D/view/Beam/view/All/job/beam_Prober_CommunityMetrics/]
>  but never got passed (either failed or skipped due to cache). 
> Is there anything wrong with Github data refresh? Should we reevaluate the 
> alert on dashboard or modify the test?



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)