Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

[7.x] fix: --opbeans-node-agent-local-repo=/a/local/dir (#1084) #1122

Merged
merged 1 commit into from
Apr 28, 2021

Conversation

trentm
Copy link
Member

@trentm trentm commented Apr 28, 2021

Backports the following commits to 7.x:

Fixes './scripts/compose.py start --opbeans-node-agent-local-repo=$dir'
to (a) install the Node.js APM agent into the opbeans-node app at "/app"
and (b) to skip copying the possibly large node_modules and build dirs
for speed.

Fixes: elastic#1083

# Conflicts:
#	README.md
@trentm trentm self-assigned this Apr 28, 2021
@trentm trentm merged commit 9bcd59c into elastic:7.x Apr 28, 2021
@trentm trentm deleted the backport/7.x/pr-1084 branch April 28, 2021 19:12
@apmmachine
Copy link
Collaborator

💔 Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #1122 opened

  • Start Time: 2021-04-28T19:02:54.356+0000

  • Duration: 47 min 48 sec

  • Commit: 7281c0f

Test stats 🧪

Test Results
Failed 9
Passed 492
Skipped 5
Total 506

Trends 🧪

Image of Build Times

Image of Tests

Test errors 9

Expand to view the tests failures

Integration Tests / All / test_conc_req_all_agents – tests.agent.test_multiple_agents
    Expand to view the error details

     AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['dotnetapp', 'dotnetapp', 'flaskapp', 'flaskapp', 'djangoapp', 'djangoapp', 'expressapp', 'expressapp', 'railsapp', 'railsapp', 'gonethttpapp', 'gonethttpapp', 'springapp', 'springapp'])], expected 7000, got 6139 
    

    Expand to view the stacktrace

     es = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fe961b1c6d0>
    apm_server = <tests.fixtures.apm_server.apm_server.<locals>.APMServer object at 0x7fe9617bf490>
    flask = <tests.fixtures.agents.Agent object at 0x7fe9343f77d0>
    django = <tests.fixtures.agents.Agent object at 0x7fe9619c6c10>
    dotnet = <tests.fixtures.agents.Agent object at 0x7fe9617bf550>
    express = <tests.fixtures.agents.Agent object at 0x7fe9343f7e90>
    rails = <tests.fixtures.agents.Agent object at 0x7fe9584f5890>
    go_nethttp = <tests.fixtures.agents.Agent object at 0x7fe9619c6990>
    java_spring = <tests.fixtures.agents.Agent object at 0x7fe9347bb3d0>
    
        def test_conc_req_all_agents(es, apm_server, flask, django, dotnet, express, rails, go_nethttp, java_spring):
            dotnet_f = Concurrent.Endpoint(dotnet.foo.url,
                                           dotnet.app_name,
                                           ["foo"],
                                           "GET /foo",
                                           events_no=500)
            dotnet_b = Concurrent.Endpoint(dotnet.bar.url,
                                           dotnet.app_name,
                                           ["bar", "extra"],
                                           "GET /bar",
                                           events_no=500)
            flask_f = Concurrent.Endpoint(flask.foo.url,
                                          flask.app_name,
                                          ["app.foo"],
                                          "GET /foo",
                                          events_no=500)
            flask_b = Concurrent.Endpoint(flask.bar.url,
                                          flask.app_name,
                                          ["app.bar", "app.extra"],
                                          "GET /bar",
                                          events_no=500)
            django_f = Concurrent.Endpoint(django.foo.url,
                                           django.app_name,
                                           ["foo.views.foo"],
                                           "GET foo.views.show",
                                           events_no=500)
            django_b = Concurrent.Endpoint(django.bar.url,
                                           django.app_name,
                                           ["bar.views.bar", "bar.views.extra"],
                                           "GET bar.views.show",
                                           events_no=500)
            express_f = Concurrent.Endpoint(express.foo.url,
                                            express.app_name,
                                            ["app.foo"],
                                            "GET /foo",
                                            events_no=500)
            express_b = Concurrent.Endpoint(express.bar.url,
                                            express.app_name,
                                            ["app.bar", "app.extra"],
                                            "GET /bar",
                                            events_no=500)
            rails_f = Concurrent.Endpoint(rails.foo.url,
                                          rails.app_name,
                                          ["ApplicationController#foo"],
                                          "ApplicationController#foo",
                                          events_no=500)
            rails_b = Concurrent.Endpoint(rails.bar.url,
                                          rails.app_name,
                                          ["ApplicationController#bar", "app.extra"],
                                          "ApplicationController#bar",
                                          events_no=500)
            go_nethttp_f = Concurrent.Endpoint(go_nethttp.foo.url,
                                               go_nethttp.app_name,
                                               ["foo"],
                                               "GET /foo",
                                               events_no=500)
            go_nethttp_b = Concurrent.Endpoint(go_nethttp.bar.url,
                                               go_nethttp.app_name,
                                               ["bar", "extra"],
                                               "GET /bar",
                                               events_no=500)
            java_spring_f = Concurrent.Endpoint(java_spring.foo.url,
                                                java_spring.app_name,
                                                ["foo"],
                                                "GreetingController#foo",
                                                events_no=500)
            java_spring_b = Concurrent.Endpoint(java_spring.bar.url,
                                                java_spring.app_name,
                                                ["bar", "extra"],
                                                "GreetingController#bar",
                                                events_no=500)
        
            Concurrent(es, [
                dotnet_f, dotnet_b,
                flask_f, flask_b,
                django_f, django_b,
                express_f, express_b,
                rails_b, rails_f,
                go_nethttp_f, go_nethttp_b,
                java_spring_f, java_spring_b,
    >       ], iters=1).run()
    
    tests/agent/test_multiple_agents.py:84: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/agent/concurrent_requests.py:299: in run
        self.check_counts(it)
    tests/agent/concurrent_requests.py:137: in check_counts
        assert_count([("processor.event", "transaction"), ("service.name", service_names)], transactions_count)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    terms = [('processor.event', 'transaction'), ('service.name', ['dotnetapp', 'dotnetapp', 'flaskapp', 'flaskapp', 'djangoapp', 'djangoapp', ...])]
    expected = 7000
    
        def assert_count(terms, expected):
            """wait a bit for doc count to reach expectation"""
        
            @timeout_decorator.timeout(max_wait)
            def check_count(mut_actual):
                while True:
                    rsp = self.es.count(index=self.index, body=self.elasticsearch.term_q(terms))
                    mut_actual[0] = rsp["count"]
                    if mut_actual[0] >= expected:
                        return
                    time.sleep(backoff)
        
            mut_actual = [-1]  # keep actual count in this mutable
            try:
                check_count(mut_actual)
            except timeout_decorator.TimeoutError:
                pass
            actual = mut_actual[0]
    >       assert actual == expected, err.format(terms, expected, actual)
    E       AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['dotnetapp', 'dotnetapp', 'flaskapp', 'flaskapp', 'djangoapp', 'djangoapp', 'expressapp', 'expressapp', 'railsapp', 'railsapp', 'gonethttpapp', 'gonethttpapp', 'springapp', 'springapp'])], expected 7000, got 6139
    
    tests/agent/concurrent_requests.py:131: AssertionError 
    

Integration Tests / All / test_request_express – tests.agent.test_nodejs
    Expand to view the error details

     AssertionError: Expected 2, queried 1 
    

    Expand to view the stacktrace

     express = <tests.fixtures.agents.Agent object at 0x7fe9343f7e90>
    
        @pytest.mark.version
        def test_request_express(express):
            utils.check_agent_transaction(
    >           express.foo, express.apm_server.elasticsearch)
    
    tests/agent/test_nodejs.py:9: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/utils.py:16: in check_agent_transaction
        check_elasticsearch_count(elasticsearch, ct)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    elasticsearch = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fe961b1c6d0>
    expected = 2, processor = 'transaction'
    query = {'query': {'term': {'processor.name': 'transaction'}}}
    
        def check_elasticsearch_count(elasticsearch,
                                      expected,
                                      processor='transaction',
                                      query=None):
            if query is None:
                query = {'query': {'term': {'processor.name': processor}}}
        
            actual = 0
            retries = 0
            max_retries = 3
            while actual != expected and retries < max_retries:
                try:
                    actual = elasticsearch.count(query)
                    if actual >= expected:
                        # if there are already more docs, we can stop counting.
                        # The total count may be larger, but that's not important enough to wait
                        break
                    retries += 1
                    time.sleep(10)
                except TimeoutError:
                    retries += 1
                    actual = -1
        
            assert actual == expected, "Expected {}, queried {}".format(
    >           expected, actual)
    E       AssertionError: Expected 2, queried 1
    
    tests/utils.py:66: AssertionError 
    

Integration Tests / All / test_express_error – tests.agent.test_nodejs
    Expand to view the error details

     AssertionError: Expected 1, queried -1 
    

    Expand to view the stacktrace

     express = <tests.fixtures.agents.Agent object at 0x7fe9343f7e90>
    
        @pytest.mark.version
        def test_express_error(express):
            utils.check_agent_error(
    >           express.oof, express.apm_server.elasticsearch)
    
    tests/agent/test_nodejs.py:15: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/utils.py:23: in check_agent_error
        check_elasticsearch_count(elasticsearch, ct, processor='error')
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    elasticsearch = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fe961b1c6d0>
    expected = 1, processor = 'error'
    query = {'query': {'term': {'processor.name': 'error'}}}
    
        def check_elasticsearch_count(elasticsearch,
                                      expected,
                                      processor='transaction',
                                      query=None):
            if query is None:
                query = {'query': {'term': {'processor.name': processor}}}
        
            actual = 0
            retries = 0
            max_retries = 3
            while actual != expected and retries < max_retries:
                try:
                    actual = elasticsearch.count(query)
                    if actual >= expected:
                        # if there are already more docs, we can stop counting.
                        # The total count may be larger, but that's not important enough to wait
                        break
                    retries += 1
                    time.sleep(10)
                except TimeoutError:
                    retries += 1
                    actual = -1
        
            assert actual == expected, "Expected {}, queried {}".format(
    >           expected, actual)
    E       AssertionError: Expected 1, queried -1
    
    tests/utils.py:66: AssertionError 
    

Integration Tests / All / test_conc_req_express – tests.agent.test_nodejs
    Expand to view the error details

     AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['expressapp'])], expected 1000, got 143 
    

    Expand to view the stacktrace

     es = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fe961b1c6d0>
    apm_server = <tests.fixtures.apm_server.apm_server.<locals>.APMServer object at 0x7fe9617bf490>
    express = <tests.fixtures.agents.Agent object at 0x7fe9343f7e90>
    
        def test_conc_req_express(es, apm_server, express):
            foo = Concurrent.Endpoint(express.foo.url,
                                      express.app_name,
                                      ["app.foo"],
                                      "GET /foo",
                                      events_no=1000)
    >       Concurrent(es, [foo], iters=1).run()
    
    tests/agent/test_nodejs.py:24: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/agent/concurrent_requests.py:299: in run
        self.check_counts(it)
    tests/agent/concurrent_requests.py:137: in check_counts
        assert_count([("processor.event", "transaction"), ("service.name", service_names)], transactions_count)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    terms = [('processor.event', 'transaction'), ('service.name', ['expressapp'])]
    expected = 1000
    
        def assert_count(terms, expected):
            """wait a bit for doc count to reach expectation"""
        
            @timeout_decorator.timeout(max_wait)
            def check_count(mut_actual):
                while True:
                    rsp = self.es.count(index=self.index, body=self.elasticsearch.term_q(terms))
                    mut_actual[0] = rsp["count"]
                    if mut_actual[0] >= expected:
                        return
                    time.sleep(backoff)
        
            mut_actual = [-1]  # keep actual count in this mutable
            try:
                check_count(mut_actual)
            except timeout_decorator.TimeoutError:
                pass
            actual = mut_actual[0]
    >       assert actual == expected, err.format(terms, expected, actual)
    E       AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['expressapp'])], expected 1000, got 143
    
    tests/agent/concurrent_requests.py:131: AssertionError 
    

Integration Tests / All / test_conc_req_node_foobar – tests.agent.test_nodejs
    Expand to view the error details

     AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['expressapp', 'expressapp'])], expected 1820, got 251 
    

    Expand to view the stacktrace

     es = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fe961b1c6d0>
    apm_server = <tests.fixtures.apm_server.apm_server.<locals>.APMServer object at 0x7fe9617bf490>
    express = <tests.fixtures.agents.Agent object at 0x7fe9343f7e90>
    
        def test_conc_req_node_foobar(es, apm_server, express):
            foo = Concurrent.Endpoint(express.foo.url,
                                      express.app_name,
                                      ["app.foo"],
                                      "GET /foo")
            bar = Concurrent.Endpoint(express.bar.url,
                                      express.app_name,
                                      ["app.bar", "app.extra"],
                                      "GET /bar",
                                      events_no=820)
    >       Concurrent(es, [foo, bar], iters=1).run()
    
    tests/agent/test_nodejs.py:37: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/agent/concurrent_requests.py:299: in run
        self.check_counts(it)
    tests/agent/concurrent_requests.py:137: in check_counts
        assert_count([("processor.event", "transaction"), ("service.name", service_names)], transactions_count)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    terms = [('processor.event', 'transaction'), ('service.name', ['expressapp', 'expressapp'])]
    expected = 1820
    
        def assert_count(terms, expected):
            """wait a bit for doc count to reach expectation"""
        
            @timeout_decorator.timeout(max_wait)
            def check_count(mut_actual):
                while True:
                    rsp = self.es.count(index=self.index, body=self.elasticsearch.term_q(terms))
                    mut_actual[0] = rsp["count"]
                    if mut_actual[0] >= expected:
                        return
                    time.sleep(backoff)
        
            mut_actual = [-1]  # keep actual count in this mutable
            try:
                check_count(mut_actual)
            except timeout_decorator.TimeoutError:
                pass
            actual = mut_actual[0]
    >       assert actual == expected, err.format(terms, expected, actual)
    E       AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['expressapp', 'expressapp'])], expected 1820, got 251
    
    tests/agent/concurrent_requests.py:131: AssertionError 
    

Integration Tests / Node.js / test_request_express – tests.agent.test_nodejs
    Expand to view the error details

     AssertionError: Expected 2, queried 1 
    

    Expand to view the stacktrace

     express = <tests.fixtures.agents.Agent object at 0x7fd05a1dfc10>
    
        @pytest.mark.version
        def test_request_express(express):
            utils.check_agent_transaction(
    >           express.foo, express.apm_server.elasticsearch)
    
    tests/agent/test_nodejs.py:9: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/utils.py:16: in check_agent_transaction
        check_elasticsearch_count(elasticsearch, ct)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    elasticsearch = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fd05a1dfad0>
    expected = 2, processor = 'transaction'
    query = {'query': {'term': {'processor.name': 'transaction'}}}
    
        def check_elasticsearch_count(elasticsearch,
                                      expected,
                                      processor='transaction',
                                      query=None):
            if query is None:
                query = {'query': {'term': {'processor.name': processor}}}
        
            actual = 0
            retries = 0
            max_retries = 3
            while actual != expected and retries < max_retries:
                try:
                    actual = elasticsearch.count(query)
                    if actual >= expected:
                        # if there are already more docs, we can stop counting.
                        # The total count may be larger, but that's not important enough to wait
                        break
                    retries += 1
                    time.sleep(10)
                except TimeoutError:
                    retries += 1
                    actual = -1
        
            assert actual == expected, "Expected {}, queried {}".format(
    >           expected, actual)
    E       AssertionError: Expected 2, queried 1
    
    tests/utils.py:66: AssertionError 
    

Integration Tests / Node.js / test_express_error – tests.agent.test_nodejs
    Expand to view the error details

     AssertionError: Expected 1, queried -1 
    

    Expand to view the stacktrace

     express = <tests.fixtures.agents.Agent object at 0x7fd05a1dfc10>
    
        @pytest.mark.version
        def test_express_error(express):
            utils.check_agent_error(
    >           express.oof, express.apm_server.elasticsearch)
    
    tests/agent/test_nodejs.py:15: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/utils.py:23: in check_agent_error
        check_elasticsearch_count(elasticsearch, ct, processor='error')
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    elasticsearch = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fd05a1dfad0>
    expected = 1, processor = 'error'
    query = {'query': {'term': {'processor.name': 'error'}}}
    
        def check_elasticsearch_count(elasticsearch,
                                      expected,
                                      processor='transaction',
                                      query=None):
            if query is None:
                query = {'query': {'term': {'processor.name': processor}}}
        
            actual = 0
            retries = 0
            max_retries = 3
            while actual != expected and retries < max_retries:
                try:
                    actual = elasticsearch.count(query)
                    if actual >= expected:
                        # if there are already more docs, we can stop counting.
                        # The total count may be larger, but that's not important enough to wait
                        break
                    retries += 1
                    time.sleep(10)
                except TimeoutError:
                    retries += 1
                    actual = -1
        
            assert actual == expected, "Expected {}, queried {}".format(
    >           expected, actual)
    E       AssertionError: Expected 1, queried -1
    
    tests/utils.py:66: AssertionError 
    

Integration Tests / Node.js / test_conc_req_express – tests.agent.test_nodejs
    Expand to view the error details

     AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['expressapp'])], expected 1000, got 135 
    

    Expand to view the stacktrace

     es = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fd05a1dfad0>
    apm_server = <tests.fixtures.apm_server.apm_server.<locals>.APMServer object at 0x7fd05a1dfd10>
    express = <tests.fixtures.agents.Agent object at 0x7fd05a1dfc10>
    
        def test_conc_req_express(es, apm_server, express):
            foo = Concurrent.Endpoint(express.foo.url,
                                      express.app_name,
                                      ["app.foo"],
                                      "GET /foo",
                                      events_no=1000)
    >       Concurrent(es, [foo], iters=1).run()
    
    tests/agent/test_nodejs.py:24: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/agent/concurrent_requests.py:299: in run
        self.check_counts(it)
    tests/agent/concurrent_requests.py:137: in check_counts
        assert_count([("processor.event", "transaction"), ("service.name", service_names)], transactions_count)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    terms = [('processor.event', 'transaction'), ('service.name', ['expressapp'])]
    expected = 1000
    
        def assert_count(terms, expected):
            """wait a bit for doc count to reach expectation"""
        
            @timeout_decorator.timeout(max_wait)
            def check_count(mut_actual):
                while True:
                    rsp = self.es.count(index=self.index, body=self.elasticsearch.term_q(terms))
                    mut_actual[0] = rsp["count"]
                    if mut_actual[0] >= expected:
                        return
                    time.sleep(backoff)
        
            mut_actual = [-1]  # keep actual count in this mutable
            try:
                check_count(mut_actual)
            except timeout_decorator.TimeoutError:
                pass
            actual = mut_actual[0]
    >       assert actual == expected, err.format(terms, expected, actual)
    E       AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['expressapp'])], expected 1000, got 135
    
    tests/agent/concurrent_requests.py:131: AssertionError 
    

Integration Tests / Node.js / test_conc_req_node_foobar – tests.agent.test_nodejs
    Expand to view the error details

     AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['expressapp', 'expressapp'])], expected 1820, got 245 
    

    Expand to view the stacktrace

     es = <tests.fixtures.es.es.<locals>.Elasticsearch object at 0x7fd0286c3ad0>
    apm_server = <tests.fixtures.apm_server.apm_server.<locals>.APMServer object at 0x7fd028738e50>
    express = <tests.fixtures.agents.Agent object at 0x7fd028738310>
    
        def test_conc_req_node_foobar(es, apm_server, express):
            foo = Concurrent.Endpoint(express.foo.url,
                                      express.app_name,
                                      ["app.foo"],
                                      "GET /foo")
            bar = Concurrent.Endpoint(express.bar.url,
                                      express.app_name,
                                      ["app.bar", "app.extra"],
                                      "GET /bar",
                                      events_no=820)
    >       Concurrent(es, [foo, bar], iters=1).run()
    
    tests/agent/test_nodejs.py:37: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    tests/agent/concurrent_requests.py:299: in run
        self.check_counts(it)
    tests/agent/concurrent_requests.py:137: in check_counts
        assert_count([("processor.event", "transaction"), ("service.name", service_names)], transactions_count)
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    terms = [('processor.event', 'transaction'), ('service.name', ['expressapp', 'expressapp'])]
    expected = 1820
    
        def assert_count(terms, expected):
            """wait a bit for doc count to reach expectation"""
        
            @timeout_decorator.timeout(max_wait)
            def check_count(mut_actual):
                while True:
                    rsp = self.es.count(index=self.index, body=self.elasticsearch.term_q(terms))
                    mut_actual[0] = rsp["count"]
                    if mut_actual[0] >= expected:
                        return
                    time.sleep(backoff)
        
            mut_actual = [-1]  # keep actual count in this mutable
            try:
                check_count(mut_actual)
            except timeout_decorator.TimeoutError:
                pass
            actual = mut_actual[0]
    >       assert actual == expected, err.format(terms, expected, actual)
    E       AssertionError: queried for [('processor.event', 'transaction'), ('service.name', ['expressapp', 'expressapp'])], expected 1820, got 245
    
    tests/agent/concurrent_requests.py:131: AssertionError 
    

Steps errors 1

Expand to view the steps failures

Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: Downstream job for 'All' failed

Log output

Expand to view the last 100 lines of log output

[2021-04-28T19:08:47.830Z] Check JSON...........................................(no files to check)Skipped
[2021-04-28T19:08:47.830Z] Check for merge conflicts................................................Passed
[2021-04-28T19:08:47.830Z] Check Xml............................................(no files to check)Skipped
[2021-04-28T19:08:48.094Z] Fix End of Files.........................................................Passed
[2021-04-28T19:08:49.485Z] Shellscript: lint........................................................Passed
[2021-04-28T19:08:49.485Z] Yaml: lint...........................................(no files to check)Skipped
[2021-04-28T19:08:49.485Z] check-bash-syntax........................................................Passed
[2021-04-28T19:08:49.485Z] check-abstract-classes-and-trait.....................(no files to check)Skipped
[2021-04-28T19:08:49.485Z] check-jsonslurper-class..............................(no files to check)Skipped
[2021-04-28T19:08:49.485Z] check-jenkins-pipelines..............................(no files to check)Skipped
[2021-04-28T19:08:49.485Z] - hook id: check-jenkins-pipelines
[2021-04-28T19:08:49.485Z] check-unicode-non-breaking-spaces........................................Passed
[2021-04-28T19:08:49.485Z] remove-unicode-non-breaking-spaces.......................................Passed
[2021-04-28T19:08:49.485Z] check-en-dashes..........................................................Passed
[2021-04-28T19:08:49.485Z] remove-en-dashes.........................................................Passed
[2021-04-28T19:08:49.485Z] check-jjbb...........................................(no files to check)Skipped
[2021-04-28T19:08:49.485Z] - hook id: check-jjbb
[2021-04-28T19:08:49.541Z] $ ssh-agent -k
[2021-04-28T19:08:49.548Z] unset SSH_AUTH_SOCK;
[2021-04-28T19:08:49.549Z] unset SSH_AGENT_PID;
[2021-04-28T19:08:49.549Z] echo Agent pid 2654 killed;
[2021-04-28T19:08:49.565Z] [ssh-agent] Stopped.
[2021-04-28T19:08:49.745Z] Archiving artifacts
[2021-04-28T19:08:49.990Z] Recording test results
[2021-04-28T19:08:50.338Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:08:51.610Z] [INFO] Launching Agent tests in parallel
[2021-04-28T19:08:52.045Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:08:52.070Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:08:52.096Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:08:52.119Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:08:52.144Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:08:52.169Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:08:52.194Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:08:52.220Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:08:52.241Z] Scheduling project: APM Integration Test Downstream » 7.x
[2021-04-28T19:09:04.580Z] Starting building: APM Integration Test Downstream » 7.x #6354
[2021-04-28T19:09:04.589Z] Starting building: APM Integration Test Downstream » 7.x #6356
[2021-04-28T19:09:04.596Z] Starting building: APM Integration Test Downstream » 7.x #6353
[2021-04-28T19:09:04.604Z] Starting building: APM Integration Test Downstream » 7.x #6358
[2021-04-28T19:09:04.613Z] Starting building: APM Integration Test Downstream » 7.x #6357
[2021-04-28T19:09:04.620Z] Starting building: APM Integration Test Downstream » 7.x #6350
[2021-04-28T19:09:04.628Z] Starting building: APM Integration Test Downstream » 7.x #6351
[2021-04-28T19:09:04.636Z] Starting building: APM Integration Test Downstream » 7.x #6352
[2021-04-28T19:09:04.644Z] Starting building: APM Integration Test Downstream » 7.x #6355
[2021-04-28T19:13:23.949Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6358/display/redirect
[2021-04-28T19:13:24.031Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/UI
[2021-04-28T19:13:24.873Z] Copied 15 artifacts from "APM Integration Test Downstream » 7.x" build number 6358
[2021-04-28T19:13:24.898Z] Recording test results
[2021-04-28T19:13:24.920Z] None of the test reports contained any result
[2021-04-28T19:13:24.928Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:26:42.911Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6352/display/redirect
[2021-04-28T19:26:43.041Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/Go
[2021-04-28T19:26:45.011Z] Copied 19 artifacts from "APM Integration Test Downstream » 7.x" build number 6352
[2021-04-28T19:26:45.045Z] Recording test results
[2021-04-28T19:26:45.100Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:28:22.281Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6356/display/redirect
[2021-04-28T19:28:22.417Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/Ruby
[2021-04-28T19:28:28.353Z] Copied 19 artifacts from "APM Integration Test Downstream » 7.x" build number 6356
[2021-04-28T19:28:28.395Z] Recording test results
[2021-04-28T19:28:28.448Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:29:36.958Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6355/display/redirect
[2021-04-28T19:29:37.038Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/Python
[2021-04-28T19:29:38.966Z] Copied 19 artifacts from "APM Integration Test Downstream » 7.x" build number 6355
[2021-04-28T19:29:38.994Z] Recording test results
[2021-04-28T19:29:39.038Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:29:58.667Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6351/display/redirect
[2021-04-28T19:29:58.793Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/.NET
[2021-04-28T19:30:00.288Z] Copied 19 artifacts from "APM Integration Test Downstream » 7.x" build number 6351
[2021-04-28T19:30:00.314Z] Recording test results
[2021-04-28T19:30:00.353Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:30:12.403Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6353/display/redirect
[2021-04-28T19:30:12.486Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/Java
[2021-04-28T19:30:12.956Z] Copied 19 artifacts from "APM Integration Test Downstream » 7.x" build number 6353
[2021-04-28T19:30:12.981Z] Recording test results
[2021-04-28T19:30:13.020Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:30:54.668Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6357/display/redirect
[2021-04-28T19:30:54.753Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/RUM
[2021-04-28T19:30:55.739Z] Copied 19 artifacts from "APM Integration Test Downstream » 7.x" build number 6357
[2021-04-28T19:30:55.765Z] Recording test results
[2021-04-28T19:30:55.809Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:49:13.089Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6354/display/redirect
[2021-04-28T19:49:13.177Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/Node.js
[2021-04-28T19:49:13.581Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/7.x/6350/display/redirect
[2021-04-28T19:49:13.732Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122/All
[2021-04-28T19:49:18.229Z] Copied 23 artifacts from "APM Integration Test Downstream » 7.x" build number 6350
[2021-04-28T19:49:18.274Z] Recording test results
[2021-04-28T19:49:18.376Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:49:18.499Z] Failed in branch All
[2021-04-28T19:49:40.942Z] Copied 137 artifacts from "APM Integration Test Downstream » 7.x" build number 6354
[2021-04-28T19:49:40.972Z] Recording test results
[2021-04-28T19:49:41.013Z] [Checks API] No suitable checks publisher found.
[2021-04-28T19:49:41.115Z] Failed in branch Node.js
[2021-04-28T19:49:41.633Z] Running on Jenkins in /var/lib/jenkins/workspace/apm-integration-tests_PR-1122
[2021-04-28T19:49:41.721Z] [INFO] getVaultSecret: Getting secrets
[2021-04-28T19:49:41.770Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-28T19:49:42.722Z] + chmod 755 generate-build-data.sh
[2021-04-28T19:49:42.722Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-1122/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-1122/runs/1 FAILURE 2808088
[2021-04-28T19:49:42.722Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-1122/runs/1/steps/?limit=10000 -o steps-info.json
[2021-04-28T19:49:42.972Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-1122/runs/1/tests/?status=FAILED -o tests-errors.json
[2021-04-28T19:49:42.972Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-1122/runs/1/log/ -o pipeline-log.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants