Skip to content

Conversation

mdelapenya
Copy link
Contributor

What does this pull request do?

It uses the filebeat step (https://github.com/elastic/apm-pipeline-library/blob/master/vars/filebeat.groovy) which grabs all Docker container logs that ran within the Closure block, archiving them into Jenkins UI

Follow-up concerns

Should we store all logs or limit archiving them only on failures using the archiveOnlyOnFail: true attribute for the filebeat step?

Related issues

closes #ISSUE

@mdelapenya mdelapenya added Team:Automation Label for the Observability productivity team chore ci labels Nov 30, 2021
@mdelapenya mdelapenya self-assigned this Nov 30, 2021
@mdelapenya mdelapenya requested review from a team and beniwohli November 30, 2021 12:02
Copy link
Contributor

@beniwohli beniwohli 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 the house keeping! I think it would be ok to only archive logs on failures. I guess there might be scenarios where it would be helpful to compare logs of a failed build with logs from a build that passed, but I can't remember such an occurrence since we started using Jenkins.

@mdelapenya
Copy link
Contributor Author

Thanks for the house keeping! I think it would be ok to only archive logs on failures. I guess there might be scenarios where it would be helpful to compare logs of a failed build with logs from a build that passed, but I can't remember such an occurrence since we started using Jenkins.

You mean an automated process comparing logs? Seems interesting.

What we are currently doing is storing the container logs (i.e. https://apm-ci.elastic.co/job/apm-agent-python/job/apm-agent-python-mbp/job/PR-1419/1/artifact/docker-info/Python-pypy-3-psutil-newest/f721f9db1b00.log) for all, passed and failed containers. If we consider there are too many files (in number and/or size) then we can reduce the size archiving only failed tests, but then I'm not sure how we are going to compare failed builds with succeeded builds.

@mdelapenya
Copy link
Contributor Author

I confirm the logs are stored under Jenkins Artifacts tab, so it's possible to look them up on failures in an easier manner, i.e. downloading them

@ghost
Copy link

ghost commented Nov 30, 2021

💔 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 preview

Expand to view the summary

Build stats

  • Start Time: 2021-11-30T12:03:13.026+0000

  • Duration: 29 min 48 sec

  • Commit: 44ed471

Test stats 🧪

Test Results
Failed 40
Passed 10143
Skipped 8649
Total 18832

Test errors 40

Expand to view the tests failures

> Show only the first 10 test failures

Initializing / Test / Python-python-3.10-3 / test_collection_count – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7ff5ee5dc1f0>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        def test_collection_count(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
    >       mongo_database.blogposts.insert(blogpost)
    
    tests/instrumentation/pymongo_tests.py:87: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ({'author': 'Tom', 'date': datetime.datetime(2021, 11, 30, 12, 19, 38, 544143), 'text': 'Foo'},)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
    >       raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
                            self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.10/site-packages/pymongo/collection.py:2584: TypeError 
    

Initializing / Test / Python-python-3.10-3 / test_collection_insert – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7ff5ee648f10>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        def test_collection_insert(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
            elasticapm_client.begin_transaction("transaction.test")
    >       r = mongo_database.blogposts.insert(blogpost)
    
    tests/instrumentation/pymongo_tests.py:143: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ({'author': 'Tom', 'date': datetime.datetime(2021, 11, 30, 12, 19, 38, 791261), 'text': 'Foo'},)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
    >       raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
                            self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.10/site-packages/pymongo/collection.py:2584: TypeError 
    

Initializing / Test / Python-python-3.10-3 / test_collection_find – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7ff5ee5dff70>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        def test_collection_find(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
            blogposts = []
            for i in range(1000):
                blogposts.append({"author": "Tom", "comments": i})
    >       mongo_database.blogposts.insert(blogposts)
    
    tests/instrumentation/pymongo_tests.py:193: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ([{'author': 'Tom', 'comments': 0}, {'author': 'Tom', 'comments': 1}, {'author': 'Tom', 'comments': 2}, {'author': 'Tom', 'comments': 3}, {'author': 'Tom', 'comments': 4}, {'author': 'Tom', 'comments': 5}, ...],)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
    >       raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
                            self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.10/site-packages/pymongo/collection.py:2584: TypeError 
    

Initializing / Test / Python-python-3.10-3 / test_collection_remove – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7ff5ee64bee0>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        def test_collection_remove(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
    >       r = mongo_database.blogposts.insert(blogpost)
    
    tests/instrumentation/pymongo_tests.py:239: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ({'author': 'Tom', 'date': datetime.datetime(2021, 11, 30, 12, 19, 39, 291520), 'text': 'Foo'},)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
    >       raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
                            self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.10/site-packages/pymongo/collection.py:2584: TypeError 
    

Initializing / Test / Python-python-3.10-3 / test_collection_update – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7ff5ed31df30>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        def test_collection_update(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
    >       r = mongo_database.blogposts.insert(blogpost)
    
    tests/instrumentation/pymongo_tests.py:255: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ({'author': 'Tom', 'date': datetime.datetime(2021, 11, 30, 12, 19, 39, 368230), 'text': 'Foo'},)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
    >       raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
                            self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.10/site-packages/pymongo/collection.py:2584: TypeError 
    

Initializing / Test / Python-python-3.10-3 / test_collection_update_one – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7ff5ee40aa10>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        @pytest.mark.skipif(pymongo.version_tuple < (3, 0), reason="New in 3.0")
        def test_collection_update_one(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
    >       r = mongo_database.blogposts.insert(blogpost)
    
    tests/instrumentation/pymongo_tests.py:272: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ({'author': 'Tom', 'date': datetime.datetime(2021, 11, 30, 12, 19, 39, 447255), 'text': 'Foo'},)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
    >       raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
                            self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.10/site-packages/pymongo/collection.py:2584: TypeError 
    

Initializing / Test / Python-python-3.10-3 / test_collection_update_many – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7ff5ee643220>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        @pytest.mark.skipif(pymongo.version_tuple < (3, 0), reason="New in 3.0")
        def test_collection_update_many(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
    >       r = mongo_database.blogposts.insert(blogpost)
    
    tests/instrumentation/pymongo_tests.py:289: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ({'author': 'Tom', 'date': datetime.datetime(2021, 11, 30, 12, 19, 39, 529554), 'text': 'Foo'},)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
    >       raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
                            self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.10/site-packages/pymongo/collection.py:2584: TypeError 
    

Initializing / Test / Python-python-3.10-3 / test_bulk_execute – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'initialize_ordered_bulk_op' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7ff5ef0219c0>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        @pytest.mark.skipif(pymongo.version_tuple < (2, 7), reason="New in 2.7")
        def test_bulk_execute(instrument, elasticapm_client, mongo_database):
            elasticapm_client.begin_transaction("transaction.test")
    >       bulk = mongo_database.test_bulk.initialize_ordered_bulk_op()
    
    tests/instrumentation/pymongo_tests.py:306: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'test_bulk.initialize_ordered_bulk_op')
    args = (), kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
    >       raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
                            self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'initialize_ordered_bulk_op' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.10/site-packages/pymongo/collection.py:2584: TypeError 
    

Initializing / Test / Python-python-3.7-2 / test_collection_count – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7f939aab1110>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        def test_collection_count(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
    >       mongo_database.blogposts.insert(blogpost)
    
    tests/instrumentation/pymongo_tests.py:87: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ({'author': 'Tom', 'date': datetime.datetime(2021, 11, 30, 12, 20, 1, 754397), 'text': 'Foo'},)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
            raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
    >                       self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.7/site-packages/pymongo/collection.py:2587: TypeError 
    

Initializing / Test / Python-python-3.7-2 / test_collection_insert – tests.instrumentation.pymongo_tests
    Expand to view the error details

     TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists. 
    

    Expand to view the stacktrace

     instrument = None
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x7f939a208910>
    mongo_database = Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test')
    
        @pytest.mark.integrationtest
        def test_collection_insert(instrument, elasticapm_client, mongo_database):
            blogpost = {"author": "Tom", "text": "Foo", "date": datetime.datetime.utcnow()}
            elasticapm_client.begin_transaction("transaction.test")
    >       r = mongo_database.blogposts.insert(blogpost)
    
    tests/instrumentation/pymongo_tests.py:143: 
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    
    self = Collection(Database(MongoClient(host=['mongodb36:27017'], document_class=dict, tz_aware=False, connect=True), 'elasticapm_test'), 'blogposts.insert')
    args = ({'author': 'Tom', 'date': datetime.datetime(2021, 11, 30, 12, 20, 1, 999044), 'text': 'Foo'},)
    kwargs = {}
    
        def __call__(self, *args, **kwargs):
            """This is only here so that some API misusages are easier to debug.
            """
            if "." not in self.__name:
                raise TypeError("'Collection' object is not callable. If you "
                                "meant to call the '%s' method on a 'Database' "
                                "object it is failing because no such method "
                                "exists." %
                                self.__name)
            raise TypeError("'Collection' object is not callable. If you meant to "
                            "call the '%s' method on a 'Collection' object it is "
                            "failing because no such method exists." %
    >                       self.__name.split(".")[-1])
    E       TypeError: 'Collection' object is not callable. If you meant to call the 'insert' method on a 'Collection' object it is failing because no such method exists.
    
    /home/user/.local/lib/python3.7/site-packages/pymongo/collection.py:2587: TypeError 
    

Steps errors 34

Expand to view the steps failures

Show only the first 10 steps failures

Restore files previously stashed
  • Took 0 min 0 sec . View more details here
  • Description: coverage-python-3.9-cassandra-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details here
  • Description: coverage-python-3.9-mysqlclient-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details here
  • Description: coverage-python-3.9-pymemcache-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details here
  • Description: coverage-python-3.9-sanic-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details here
  • Description: coverage-python-3.10-pylibmc-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details here
  • Description: coverage-python-3.10-psutil-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details here
  • Description: coverage-python-3.10-aiohttp-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details here
  • Description: coverage-python-3.10-httpx-newest
Archive the artifacts
  • Took 0 min 0 sec . View more details here
  • Description: [2021-11-30T12:31:58.863Z] Archiving artifacts Python-python-3.10-pymongo-newest tests failed : hud
Error signal
  • Took 0 min 0 sec . View more details here
  • Description: Python-python-3.6-pymongo-newest tests failed : hudson.AbortException: script returned exit code 2

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Genuine test errors 40

💔 There are test failures but not known flaky tests, most likely a genuine test failure.

  • Name: Initializing / Test / Python-python-3.10-3 / test_collection_count – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.10-3 / test_collection_insert – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.10-3 / test_collection_find – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.10-3 / test_collection_remove – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.10-3 / test_collection_update – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.10-3 / test_collection_update_one – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.10-3 / test_collection_update_many – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.10-3 / test_bulk_execute – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.7-2 / test_collection_count – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.7-2 / test_collection_insert – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.7-2 / test_collection_find – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.7-2 / test_collection_remove – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.7-2 / test_collection_update – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.7-2 / test_collection_update_one – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.7-2 / test_collection_update_many – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.7-2 / test_bulk_execute – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.6-2 / test_collection_count – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.6-2 / test_collection_insert – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.6-2 / test_collection_find – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.6-2 / test_collection_remove – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.6-2 / test_collection_update – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.6-2 / test_collection_update_one – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.6-2 / test_collection_update_many – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.6-2 / test_bulk_execute – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.8-3 / test_collection_count – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.8-3 / test_collection_insert – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.8-3 / test_collection_find – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.8-3 / test_collection_remove – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.8-3 / test_collection_update – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.8-3 / test_collection_update_one – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.8-3 / test_collection_update_many – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.8-3 / test_bulk_execute – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.9-3 / test_collection_count – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.9-3 / test_collection_insert – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.9-3 / test_collection_find – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.9-3 / test_collection_remove – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.9-3 / test_collection_update – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.9-3 / test_collection_update_one – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.9-3 / test_collection_update_many – tests.instrumentation.pymongo_tests
  • Name: Initializing / Test / Python-python-3.9-3 / test_bulk_execute – tests.instrumentation.pymongo_tests

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /test linters : Run the Python linters only.

  • /test full : Run the full matrix of tests.

  • /test benchmark : Run the APM Agent Python benchmarks tests.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@mdelapenya
Copy link
Contributor Author

Test errors (MongoDB-related) seem unrelated and present in master, if you agree, let's merge this one

@beniwohli
Copy link
Contributor

Merge is 👍

I don't necessarily mean an automatic comparison, but it might e.g. be interesting to see if the passed build installed other dependencies from pypi compared with the failed build. But as I said, that's mostly a theory, I don't think it ever came in handy in real life :D

@beniwohli beniwohli merged commit c7014bb into elastic:master Nov 30, 2021
beniwohli pushed a commit to beniwohli/apm-agent-python that referenced this pull request Nov 30, 2021
@mdelapenya mdelapenya deleted the use-filebeat-step branch November 30, 2021 15:02
beniwohli added a commit that referenced this pull request Dec 1, 2021
* implement dropping of fast exit spans

closes #1309

* chore(ci): use filebeat step to archive docker container logs (#1419)

* add support for us (microsecond) duration

* add docs

Co-authored-by: Manuel de la Peña <mdelapenya@gmail.com>
Co-authored-by: Colton Myers <colton.myers@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-python chore ci Team:Automation Label for the Observability productivity team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants