influxdata / influxdata/kapacitor
Flakey Test
- Dominant language
- Go
- Stars
- 2.4k
- Forks
- 479
- Avg merge
- 4d 16h
- Merged PRs (30d)
- 4
Description
```
'##:::'##::::'###::::'########:::::'###:::::'######::'####:'########::'#######::'########::
##::'##::::'## ##::: ##.... ##:::'## ##:::'##... ##:. ##::... ##..::'##.... ##: ##.... ##:
##:'##::::'##:. ##:: ##:::: ##::'##:. ##:: ##:::..::: ##::::: ##:::: ##:::: ##: ##:::: ##:
#####::::'##:::. ##: ########::'##:::. ##: ##:::::::: ##::::: ##:::: ##:::: ##: ########::
##. ##::: #########: ##.....::: #########: ##:::::::: ##::::: ##:::: ##:::: ##: ##.. ##:::
##:. ##:: ##.... ##: ##:::::::: ##.... ##: ##::: ##:: ##::::: ##:::: ##:::: ##: ##::. ##::
##::. ##: ##:::: ##: ##:::::::: ##:::: ##:. ######::'####:::: ##::::. #######:: ##:::. ##:
..::::..::..:::::..::..:::::::::..:::::..:::......:::....:::::..::::::.......:::..:::::..::
Build Script
[INFO] check_environ: Checking environment...
[INFO] check_prereqs: Checking for dependencies...
[INFO] run_generate: Running generate...
[INFO] run_generate: Generate succeeded.
[INFO] run_tests: Starting tests...
[INFO] run_tests: Using parallel: 1
[INFO] run_tests: Using timeout: 480s
[INFO] run_tests: Running tests...
[ERROR] run: Command 'go test -parallel 1 -timeout 480s ./...' failed with error: ok github.com/influxdata/kapacitor 0.166s
ok github.com/influxdata/kapacitor/alert 0.006s
ok github.com/influxdata/kapacitor/auth 0.018s
? github.com/influxdata/kapacitor/bufpool [no test files]
ok github.com/influxdata/kapacitor/client/v1 0.123s
ok github.com/influxdata/kapacitor/clock 0.034s
? github.com/influxdata/kapacitor/cmd/kapacitor [no test files]
? github.com/influxdata/kapacitor/cmd/kapacitord [no test files]
? github.com/influxdata/kapacitor/cmd/kapacitord/help [no test files]
ok github.com/influxdata/kapacitor/cmd/kapacitord/run 0.173s
? github.com/influxdata/kapacitor/command [no test files]
? github.com/influxdata/kapacitor/command/commandtest [no test files]
ok github.com/influxdata/kapacitor/edge 0.011s
? github.com/influxdata/kapacitor/expvar [no test files]
? github.com/influxdata/kapacitor/http [no test files]
ok github.com/influxdata/kapacitor/influxdb 0.382s
ok github.com/influxdata/kapacitor/integrations 61.052s
? github.com/influxdata/kapacitor/keyvalue [no test files]
? github.com/influxdata/kapacitor/listmap [no test files]
? github.com/influxdata/kapacitor/models [no test files]
ok github.com/influxdata/kapacitor/pipeline 0.027s
ok github.com/influxdata/kapacitor/pipeline/tick 5.145s
2020/05/11 21:43:36 Server listening on /tmp/kapacitor_server_test508037703/mirror.go.sock
2020/05/11 21:43:36 Starting agent for connection 0
2020/05/11 21:43:36 Agent for connection 0 finished
2020/05/11 21:43:36 Starting agent for connection 1
2020/05/11 21:43:36 Agent for connection 1 finished
2020-05-11 21:43:36,989 INFO:root: Started server
2020-05-11 21:43:37,427 INFO:root: Starting Agent for connection 1
2020-05-11 21:43:37,430 INFO:root: Agent finished connection 1
2020-05-11 21:43:37,459 INFO:root: Starting Agent for connection 2
2020-05-11 21:43:37,476 INFO:root: Agent finished connection 2
2020-05-11 21:43:37,484 INFO:root: Starting Agent for connection 3
2020-05-11 21:43:37,486 INFO:root: Agent finished connection 3
2020-05-11 21:43:37,559 INFO:root: Starting Agent for connection 4
2020-05-11 21:43:37,576 INFO:root: Agent finished connection 4
2020/05/11 21:43:37 Server stopped
Traceback (most recent call last):
File "/root/go/src/github.com/influxdata/kapacitor/udf/agent/examples/mirror/mirror.py", line 3, in
from kapacitor.udf.agent import Agent, Handler, Server
File "/root/go/src/github.com/influxdata/kapacitor/udf/agent/py/kapacitor/udf/agent.py", line 8, in
from . import udf_pb2
File "/root/go/src/github.com/influxdata/kapacitor/udf/agent/py/kapacitor/udf/udf_pb2.py", line 5, in
from google.protobuf.internal import enum_type_wrapper
File "/usr/local/lib/python2.7/dist-packages/protobuf-3.11.1-py2.7.egg/google/__init__.py", line 2, in
__import__('pkg_resources').declare_namespace(__name__)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 35, in
import email.parser
File "/usr/lib/python2.7/email/parser.py", line 12, in
from email.feedparser import FeedParser
File "/usr/lib/python2.7/email/feedparser.py", line 27, in
from email import message
File "/usr/lib/python2.7/email/message.py", line 16, in
import email.charset
File "/usr/lib/python2.7/email/charset.py", line 13, in
import email.base64mime
File "/usr/lib/python2.7/email/base64mime.py", line 40, in
from email.utils import fix_eols
File "/usr/lib/python2.7/email/utils.py", line 27, in
import random
File "/usr/lib/python2.7/random.py", line 49, in
import hashlib as _hashlib
File "/usr/lib/python2.7/hashlib.py", line 134, in
import _hashlib
KeyboardInterrupt
2020/05/11 21:43:40 D! ALERT test test MQTT message
2020/05/11 21:43:43 D! ALERT test message
2020/05/11 21:43:43 D! ALERT test/testAlertHandlers message
--- FAIL: TestServer_AlertAnonTopic (0.13s)
server_test.go:11346: unexpected topic events for anonymous topic after re-enable:
got
{Link:{Relation:self Href:/kapacitor/v1/alerts/topics/main:testAlertHandlers:alert2/events} Topic:main:testAlertHandlers:alert2 Events:[]}
exp
{Link:{Relation:self Href:/kapacitor/v1/alerts/topics/main:testAlertHandlers:alert2/events} Topic:main:testAlertHandlers:alert2 Events:[{Link:{Relation:self Href:/kapacitor/v1/alerts/topics/main:testAlertHandlers:alert2/events/id} ID:id State:{Message:message Details:details Time:1970-01-01 00:00:00 +0000 UTC Duration:0 Level:WARNING}}]}
FAIL
```
https://circleci.com/workflow-run/771beb4f-a360-4196-aa97-7f9cf67660f9
Contributor guide
Research direction
Start by running `go test -parallel 1 -timeout 480s ./...` and inspect the failure at `server_test.go:11346` in `TestServer_AlertAnonTopic`. Investigate why the anonymous topic has no events after re-enable; done means the test passes reliably without the reported unexpected empty event list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100