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

fix: set default log level#966

Closed
kuisathaverat wants to merge 1 commit intoelastic:masterfrom
kuisathaverat:fix_log
Closed

fix: set default log level#966
kuisathaverat wants to merge 1 commit intoelastic:masterfrom
kuisathaverat:fix_log

Conversation

@kuisathaverat
Copy link
Copy Markdown
Contributor

@kuisathaverat kuisathaverat commented Nov 9, 2020

What does this PR do?

It sets the default value for the option --apm-log-level

Why is it important?

#962 causes a regresion due to self.options.get("apm_log_level", DEFAULT_APM_LOG_LEVEL) returns Noneinstead of the default value, then when we make self.options.get("apm_log_level", DEFAULT_APM_LOG_LEVEL).lower() we are making None.lower() causing

  File "/Users/inifc/src/apm-integration-testing/scripts/modules/apm_agents.py", line 587, in _content
    self.options.get("apm_log_level", DEFAULT_APM_LOG_LEVEL).lower()
AttributeError: 'NoneType' object has no attribute 'lower'
make[1]: *** [start-env] Error 1
make: *** [env-agent-dotnet] Error 2

@kuisathaverat kuisathaverat added bug automation Team:Automation Label for the Observability productivity team labels Nov 9, 2020
@kuisathaverat kuisathaverat requested review from a team and basepi November 9, 2020 15:16
@kuisathaverat kuisathaverat self-assigned this Nov 9, 2020
@ghost
Copy link
Copy Markdown

ghost commented Nov 9, 2020

💔 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 #966 updated]

  • Start Time: 2020-11-09T15:45:41.591+0000

  • Duration: 47 min 46 sec

Test stats 🧪

Test Results
Failed 1
Passed 427
Skipped 14
Total 442

Test errors 1

Expand to view the tests failures

  • Name: Integration Tests / All / test_concurrent_req_php_apache – tests.agent.test_php

    • Age: 1 (took 106.59 sec)
    • Error Details: AssertionError: queried for [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0
    • Error Stacktrace:
php_apache = <tests.fixtures.agents.Agent object at 0x7fb048632990>

   @pytest.mark.version
   @pytest.mark.php_apache
   def test_concurrent_req_php_apache(php_apache):
       foo = Concurrent.Endpoint(php_apache.foo.url,
                                 php_apache.app_name,
                                 ["foo"],
                                 "GET /foo/?q=1")
>       Concurrent(php_apache.apm_server.elasticsearch, [foo], iters=2).run()

tests/agent/test_php.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/agent/concurrent_requests.py:254: in run
   self.check_counts(it)
tests/agent/concurrent_requests.py:160: in check_counts
   ], count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

terms = [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')]
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', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0

tests/agent/concurrent_requests.py:132: AssertionError 

Steps errors 1

Expand to view the steps failures

  • Name: Error signal (took 0 min 0 sec) . View log details on here
    • Description: Downstream job for 'All' failed

Log output

Expand to view the last 100 lines of log output

[2020-11-09T15:50:33.126Z]   Downloading contextlib2-0.6.0.post1-py2.py3-none-any.whl (9.8 kB)
[2020-11-09T15:50:33.126Z] Collecting zipp>=0.5
[2020-11-09T15:50:33.126Z]   Downloading zipp-1.2.0-py2.py3-none-any.whl (4.8 kB)
[2020-11-09T15:50:33.126Z] Collecting configparser>=3.5; python_version < "3"
[2020-11-09T15:50:33.126Z]   Downloading configparser-4.0.2-py2.py3-none-any.whl (22 kB)
[2020-11-09T15:50:33.386Z] Collecting typing; python_version < "3.5"
[2020-11-09T15:50:33.386Z]   Downloading typing-3.7.4.3-py2-none-any.whl (26 kB)
[2020-11-09T15:50:33.386Z] Collecting singledispatch; python_version < "3.4"
[2020-11-09T15:50:33.386Z]   Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl (12 kB)
[2020-11-09T15:50:33.386Z] Collecting scandir; python_version < "3.5"
[2020-11-09T15:50:33.386Z]   Downloading scandir-1.10.0.tar.gz (33 kB)
[2020-11-09T15:50:33.647Z] Building wheels for collected packages: pyyaml, filelock, scandir
[2020-11-09T15:50:33.647Z]   Building wheel for pyyaml (setup.py): started
[2020-11-09T15:50:34.220Z]   Building wheel for pyyaml (setup.py): finished with status 'done'
[2020-11-09T15:50:34.220Z]   Created wheel for pyyaml: filename=PyYAML-5.3.1-cp27-cp27mu-linux_x86_64.whl size=45643 sha256=c3b930823f56ee6f6ff043ac4e80be28457795d99b6675a75ec883503612b53d
[2020-11-09T15:50:34.220Z]   Stored in directory: /var/lib/jenkins/workspace/apm-integration-tests_PR-966/.cache/pip/wheels/d1/d5/a0/3c27cdc8b0209c5fc1385afeee936cf8a71e13d885388b4be2
[2020-11-09T15:50:34.221Z]   Building wheel for filelock (setup.py): started
[2020-11-09T15:50:34.483Z]   Building wheel for filelock (setup.py): finished with status 'done'
[2020-11-09T15:50:34.483Z]   Created wheel for filelock: filename=filelock-3.0.12-py2-none-any.whl size=7578 sha256=f7b392cb77dee9313d4fe6e1aae3bfafbb41e4506512940c3b29a62ee5ff95a5
[2020-11-09T15:50:34.483Z]   Stored in directory: /var/lib/jenkins/workspace/apm-integration-tests_PR-966/.cache/pip/wheels/b9/91/23/b559c1f4fd55056712b3a71cd9cab1dc0089e2232d502ed72e
[2020-11-09T15:50:34.483Z]   Building wheel for scandir (setup.py): started
[2020-11-09T15:50:35.077Z]   Building wheel for scandir (setup.py): finished with status 'done'
[2020-11-09T15:50:35.077Z]   Created wheel for scandir: filename=scandir-1.10.0-cp27-cp27mu-linux_x86_64.whl size=33227 sha256=14872326a71e6d47f092530de5b9d8c2bbe0c9ad40e61c4ede1da4f2f78ae205
[2020-11-09T15:50:35.077Z]   Stored in directory: /var/lib/jenkins/workspace/apm-integration-tests_PR-966/.cache/pip/wheels/58/2c/26/52406f7d1f19bcc47a6fbd1037a5f293492f5cf1d58c539edb
[2020-11-09T15:50:35.077Z] Successfully built pyyaml filelock scandir
[2020-11-09T15:50:35.078Z] Installing collected packages: futures, pyyaml, aspy.yaml, scandir, six, pathlib2, contextlib2, typing, singledispatch, zipp, importlib-resources, configparser, importlib-metadata, appdirs, distlib, filelock, virtualenv, toml, cfgv, nodeenv, identify, pre-commit
[2020-11-09T15:50:36.025Z] Successfully installed appdirs-1.4.4 aspy.yaml-1.3.0 cfgv-2.0.1 configparser-4.0.2 contextlib2-0.6.0.post1 distlib-0.3.1 filelock-3.0.12 futures-3.3.0 identify-1.5.9 importlib-metadata-2.0.0 importlib-resources-3.3.0 nodeenv-1.5.0 pathlib2-2.3.5 pre-commit-1.21.0 pyyaml-5.3.1 scandir-1.10.0 singledispatch-3.4.0.3 six-1.15.0 toml-0.10.2 typing-3.7.4.3 virtualenv-20.1.0 zipp-1.2.0
[2020-11-09T15:50:36.025Z] Downloading https://files.pythonhosted.org/packages/a4/e3/1f067de470e3a86875ed915438dc3bd781fb0346254f541190a09472b677/virtualenv-16.7.10.tar.gz
[2020-11-09T15:50:36.025Z] Done.
[2020-11-09T15:50:36.025Z] *******************************************************************************
[2020-11-09T15:50:36.025Z] Installing pre-commit to /var/lib/jenkins/workspace/apm-integration-tests_PR-966/bin/pre-commit
[2020-11-09T15:50:36.025Z] *******************************************************************************
[2020-11-09T15:50:36.025Z] It looks like /var/lib/jenkins/workspace/apm-integration-tests_PR-966/bin is not on your path
[2020-11-09T15:50:36.025Z] You may want to add it.
[2020-11-09T15:50:36.025Z] Often this does the trick: source ~/.profile
[2020-11-09T15:50:36.344Z] + export PATH=/var/lib/jenkins/workspace/apm-integration-tests_PR-966/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[2020-11-09T15:50:36.344Z] + pre-commit install --install-hooks
[2020-11-09T15:50:36.603Z] pre-commit installed at .git/hooks/pre-commit
[2020-11-09T15:50:36.603Z] [INFO] Initializing environment for git://github.com/pre-commit/pre-commit-hooks.
[2020-11-09T15:50:37.174Z] [INFO] Initializing environment for https://github.com/detailyang/pre-commit-shell.git.
[2020-11-09T15:50:37.434Z] [INFO] Initializing environment for https://github.com/adrienverge/yamllint.git.
[2020-11-09T15:50:38.007Z] [INFO] Initializing environment for git@github.com:elastic/apm-pipeline-library.
[2020-11-09T15:50:39.392Z] [INFO] Installing environment for git://github.com/pre-commit/pre-commit-hooks.
[2020-11-09T15:50:39.392Z] [INFO] Once installed this environment will be reused.
[2020-11-09T15:50:39.392Z] [INFO] This may take a few minutes...
[2020-11-09T15:50:45.981Z] [INFO] Installing environment for https://github.com/adrienverge/yamllint.git.
[2020-11-09T15:50:45.981Z] [INFO] Once installed this environment will be reused.
[2020-11-09T15:50:45.981Z] [INFO] This may take a few minutes...
[2020-11-09T15:50:47.693Z] + export PATH=/var/lib/jenkins/workspace/apm-integration-tests_PR-966/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
[2020-11-09T15:50:47.693Z] + set +e
[2020-11-09T15:50:47.693Z] + find /var/lib/jenkins/workspace/apm-integration-tests_PR-966/.cache/pre-commit -type d -name scripts
[2020-11-09T15:50:47.693Z] + grep .ci/scripts
[2020-11-09T15:50:47.693Z] + searchFile=/var/lib/jenkins/workspace/apm-integration-tests_PR-966/.cache/pre-commit/repoF9lH_w/.ci/scripts
[2020-11-09T15:50:47.693Z] + [ -e /var/lib/jenkins/workspace/apm-integration-tests_PR-966/.cache/pre-commit/repoF9lH_w/.ci/scripts ]
[2020-11-09T15:50:47.693Z] + export PATH=/var/lib/jenkins/workspace/apm-integration-tests_PR-966/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/lib/jenkins/workspace/apm-integration-tests_PR-966/.cache/pre-commit/repoF9lH_w/.ci/scripts
[2020-11-09T15:50:47.693Z] + set -e
[2020-11-09T15:50:47.693Z] + xargs pre-commit run --files
[2020-11-09T15:50:47.693Z] + + teegit pre-commit.out diff-tree
[2020-11-09T15:50:47.693Z]  --no-commit-id --name-only -r dfc4aab1670c086017578a874c51310e68126d62
[2020-11-09T15:50:47.952Z] Check for case conflicts.................................................Passed
[2020-11-09T15:50:47.952Z] Check that executables have shebangs.................(no files to check)Skipped
[2020-11-09T15:50:47.952Z] Check JSON...........................................(no files to check)Skipped
[2020-11-09T15:50:47.952Z] Check for merge conflicts................................................Passed
[2020-11-09T15:50:47.952Z] Check Yaml...........................................(no files to check)Skipped
[2020-11-09T15:50:47.952Z] Check Xml............................................(no files to check)Skipped
[2020-11-09T15:50:48.212Z] Fix End of Files.........................................................Passed
[2020-11-09T15:50:48.212Z] Shellscript: lint....................................(no files to check)Skipped
[2020-11-09T15:50:48.212Z] Yaml: lint...........................................(no files to check)Skipped
[2020-11-09T15:50:48.212Z] check-bash-syntax....................................(no files to check)Skipped
[2020-11-09T15:50:48.212Z] check-abstract-classes-and-trait.....................(no files to check)Skipped
[2020-11-09T15:50:48.212Z] check-jsonslurper-class..............................(no files to check)Skipped
[2020-11-09T15:50:48.212Z] check-jenkins-pipelines..............................(no files to check)Skipped
[2020-11-09T15:50:48.212Z] - hook id: check-jenkins-pipelines
[2020-11-09T15:50:48.212Z] check-unicode-non-breaking-spaces........................................Passed
[2020-11-09T15:50:48.212Z] remove-unicode-non-breaking-spaces.......................................Passed
[2020-11-09T15:50:48.212Z] check-en-dashes..........................................................Passed
[2020-11-09T15:50:48.213Z] remove-en-dashes.........................................................Passed
[2020-11-09T15:50:48.213Z] check-jjbb...........................................(no files to check)Skipped
[2020-11-09T15:50:48.213Z] - hook id: check-jjbb
[2020-11-09T15:50:48.234Z] $ ssh-agent -k
[2020-11-09T15:50:48.238Z] unset SSH_AUTH_SOCK;
[2020-11-09T15:50:48.239Z] unset SSH_AGENT_PID;
[2020-11-09T15:50:48.239Z] echo Agent pid 2510 killed;
[2020-11-09T15:50:48.255Z] [ssh-agent] Stopped.
[2020-11-09T15:50:48.345Z] Archiving artifacts
[2020-11-09T15:50:48.530Z] Recording test results
[2020-11-09T15:50:49.762Z] [INFO] Launching Agent tests in parallel
[2020-11-09T15:50:49.845Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T15:50:59.987Z] Starting building: APM Integration Test Downstream » PR-966 #1
[2020-11-09T16:32:20.688Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/1/display/redirect
[2020-11-09T16:32:20.739Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/All
[2020-11-09T16:32:26.999Z] Copied 54 artifacts from "APM Integration Test Downstream » PR-966" build number 1
[2020-11-09T16:32:27.012Z] Recording test results
[2020-11-09T16:32:27.139Z] Failed in branch All
[2020-11-09T16:32:27.389Z] Running on Jenkins in /var/lib/jenkins/workspace/apm-integration-tests_PR-966
[2020-11-09T16:32:27.420Z] [INFO] getVaultSecret: Getting secrets
[2020-11-09T16:32:27.553Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-11-09T16:32:28.209Z] + chmod 755 generate-build-data.sh
[2020-11-09T16:32:28.209Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-966/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-966/runs/2 FAILURE 2806350
[2020-11-09T16:32:28.460Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-966/runs/2/steps/?limit=10000 -o steps-info.json

@basepi
Copy link
Copy Markdown
Contributor

basepi commented Nov 9, 2020

Grrr, this is argparse's fault. Unfortunately, this fix will break the Python tests again, because I need to be able to differentiate between the default and when someone explicitly sets the argument.

I'm going to submit an alternative solution in a few minutes, along with another fix for the python tests.

@basepi
Copy link
Copy Markdown
Contributor

basepi commented Nov 9, 2020

Opened #969 which should fix these errors.

@basepi basepi closed this Nov 9, 2020
@ghost
Copy link
Copy Markdown

ghost commented Nov 9, 2020

💔 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: [Started by user Ivan Fernandez Calvo]

  • Start Time: 2020-11-09T16:57:57.955+0000

  • Duration: 51 min 26 sec

Test stats 🧪

Test Results
Failed 5
Passed 686
Skipped 26
Total 717

Test errors 5

Expand to view the tests failures

  • Name: Integration Tests / All / test_rum – tests.agent.test_rum

    • Age: 1 (took 0.118 sec)
    • Error Details: AssertionError: Expected done, got Chromium revision is not downloaded. Run "npm install" or "yarn install"
    • Error Stacktrace:
rum = <tests.fixtures.agents.Agent object at 0x7f8e96f41a10>

   def test_rum(rum):
       elasticsearch = rum.apm_server.elasticsearch
       elasticsearch.clean()
       endpoint = Endpoint(rum.url, "run_integration_test", qu_str="echo=done", text="done")
   
       r = requests.get(endpoint.url)
>       utils.check_request_response(r, endpoint)

tests/agent/test_rum.py:12: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

req = <Response [500]>
endpoint = <tests.endpoint.Endpoint object at 0x7f8eb406b890>

   def check_request_response(req, endpoint):
       msg = "Expected {}, got {}".format(endpoint.text, req.text)
>       assert req.text.strip() == endpoint.text, msg
E       AssertionError: Expected done, got Chromium revision is not downloaded. Run "npm install" or "yarn install"

tests/utils.py:38: AssertionError 
  • Name: Integration Tests / PHP / test_concurrent_req_php_apache – tests.agent.test_php

    • Age: 2 (took 373.418 sec)
    • Error Details: AssertionError: queried for [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0
    • Error Stacktrace:
php_apache = <tests.fixtures.agents.Agent object at 0x7f575e821190>

   @pytest.mark.version
   @pytest.mark.php_apache
   def test_concurrent_req_php_apache(php_apache):
       foo = Concurrent.Endpoint(php_apache.foo.url,
                                 php_apache.app_name,
                                 ["foo"],
                                 "GET /foo/?q=1")
>       Concurrent(php_apache.apm_server.elasticsearch, [foo], iters=2).run()

tests/agent/test_php.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/agent/concurrent_requests.py:254: in run
   self.check_counts(it)
tests/agent/concurrent_requests.py:160: in check_counts
   ], count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

terms = [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')]
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', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0

tests/agent/concurrent_requests.py:132: AssertionError 
  • Name: Integration Tests / PHP / test_concurrent_req_php_apache – tests.agent.test_php

    • Age: 2 (took 371.786 sec)
    • Error Details: AssertionError: queried for [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0
    • Error Stacktrace:
php_apache = <tests.fixtures.agents.Agent object at 0x7f93e059dc10>

   @pytest.mark.version
   @pytest.mark.php_apache
   def test_concurrent_req_php_apache(php_apache):
       foo = Concurrent.Endpoint(php_apache.foo.url,
                                 php_apache.app_name,
                                 ["foo"],
                                 "GET /foo/?q=1")
>       Concurrent(php_apache.apm_server.elasticsearch, [foo], iters=2).run()

tests/agent/test_php.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/agent/concurrent_requests.py:254: in run
   self.check_counts(it)
tests/agent/concurrent_requests.py:160: in check_counts
   ], count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

terms = [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')]
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', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0

tests/agent/concurrent_requests.py:132: AssertionError 
  • Name: Integration Tests / PHP / test_concurrent_req_php_apache – tests.agent.test_php

    • Age: 2 (took 355.995 sec)
    • Error Details: AssertionError: queried for [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0
    • Error Stacktrace:
php_apache = <tests.fixtures.agents.Agent object at 0x7f23ec08f9d0>

   @pytest.mark.version
   @pytest.mark.php_apache
   def test_concurrent_req_php_apache(php_apache):
       foo = Concurrent.Endpoint(php_apache.foo.url,
                                 php_apache.app_name,
                                 ["foo"],
                                 "GET /foo/?q=1")
>       Concurrent(php_apache.apm_server.elasticsearch, [foo], iters=2).run()

tests/agent/test_php.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/agent/concurrent_requests.py:254: in run
   self.check_counts(it)
tests/agent/concurrent_requests.py:160: in check_counts
   ], count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

terms = [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')]
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', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0

tests/agent/concurrent_requests.py:132: AssertionError 
  • Name: Integration Tests / All / test_concurrent_req_php_apache – tests.agent.test_php

    • Age: 2 (took 106.561 sec)
    • Error Details: AssertionError: queried for [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0
    • Error Stacktrace:
php_apache = <tests.fixtures.agents.Agent object at 0x7f8e960f8610>

   @pytest.mark.version
   @pytest.mark.php_apache
   def test_concurrent_req_php_apache(php_apache):
       foo = Concurrent.Endpoint(php_apache.foo.url,
                                 php_apache.app_name,
                                 ["foo"],
                                 "GET /foo/?q=1")
>       Concurrent(php_apache.apm_server.elasticsearch, [foo], iters=2).run()

tests/agent/test_php.py:21: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/agent/concurrent_requests.py:254: in run
   self.check_counts(it)
tests/agent/concurrent_requests.py:160: in check_counts
   ], count)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

terms = [('processor.event', 'transaction'), ('service.name', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')]
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', 'phpapacheapp'), ('transaction.name', 'GET /foo/?q=1')], expected 1000, got 0

tests/agent/concurrent_requests.py:132: AssertionError 

Steps errors 3

Expand to view the steps failures

  • Name: Error signal (took 0 min 0 sec) . View log details on here

    • Description: Downstream job for 'All' failed
  • Name: Error signal (took 0 min 0 sec) . View log details on here

    • Description: Downstream job for 'Java' failed
  • Name: Error signal (took 0 min 0 sec) . View log details on here

    • Description: Downstream job for 'PHP' failed

Log output

Expand to view the last 100 lines of log output

[2020-11-09T17:07:40.093Z] + tee pre-commit.out
[2020-11-09T17:07:40.351Z] Check for case conflicts.................................................Passed
[2020-11-09T17:07:40.351Z] Check that executables have shebangs.................(no files to check)Skipped
[2020-11-09T17:07:40.351Z] Check JSON...........................................(no files to check)Skipped
[2020-11-09T17:07:40.351Z] Check for merge conflicts................................................Passed
[2020-11-09T17:07:40.351Z] Check Yaml...........................................(no files to check)Skipped
[2020-11-09T17:07:40.351Z] Check Xml............................................(no files to check)Skipped
[2020-11-09T17:07:40.609Z] Fix End of Files.........................................................Passed
[2020-11-09T17:07:40.609Z] Shellscript: lint....................................(no files to check)Skipped
[2020-11-09T17:07:40.609Z] Yaml: lint...........................................(no files to check)Skipped
[2020-11-09T17:07:40.609Z] check-bash-syntax....................................(no files to check)Skipped
[2020-11-09T17:07:40.609Z] check-abstract-classes-and-trait.....................(no files to check)Skipped
[2020-11-09T17:07:40.609Z] check-jsonslurper-class..............................(no files to check)Skipped
[2020-11-09T17:07:40.609Z] check-jenkins-pipelines..............................(no files to check)Skipped
[2020-11-09T17:07:40.609Z] - hook id: check-jenkins-pipelines
[2020-11-09T17:07:40.610Z] check-unicode-non-breaking-spaces........................................Passed
[2020-11-09T17:07:40.610Z] remove-unicode-non-breaking-spaces.......................................Passed
[2020-11-09T17:07:40.610Z] check-en-dashes..........................................................Passed
[2020-11-09T17:07:40.610Z] remove-en-dashes.........................................................Passed
[2020-11-09T17:07:40.610Z] check-jjbb...........................................(no files to check)Skipped
[2020-11-09T17:07:40.610Z] - hook id: check-jjbb
[2020-11-09T17:07:40.630Z] $ ssh-agent -k
[2020-11-09T17:07:40.634Z] unset SSH_AUTH_SOCK;
[2020-11-09T17:07:40.635Z] unset SSH_AGENT_PID;
[2020-11-09T17:07:40.635Z] echo Agent pid 2404 killed;
[2020-11-09T17:07:40.644Z] [ssh-agent] Stopped.
[2020-11-09T17:07:40.716Z] Archiving artifacts
[2020-11-09T17:07:40.896Z] Recording test results
[2020-11-09T17:07:42.209Z] [INFO] Launching Agent tests in parallel
[2020-11-09T17:07:42.576Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.582Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.588Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.593Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.598Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.605Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.612Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.618Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.624Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:42.629Z] Scheduling project: APM Integration Test Downstream » PR-966
[2020-11-09T17:07:54.016Z] Starting building: APM Integration Test Downstream » PR-966 #3
[2020-11-09T17:07:54.026Z] Starting building: APM Integration Test Downstream » PR-966 #6
[2020-11-09T17:07:54.048Z] Starting building: APM Integration Test Downstream » PR-966 #11
[2020-11-09T17:07:54.049Z] Starting building: APM Integration Test Downstream » PR-966 #2
[2020-11-09T17:07:54.049Z] Starting building: APM Integration Test Downstream » PR-966 #4
[2020-11-09T17:07:54.050Z] Starting building: APM Integration Test Downstream » PR-966 #8
[2020-11-09T17:07:54.050Z] Starting building: APM Integration Test Downstream » PR-966 #5
[2020-11-09T17:07:54.050Z] Starting building: APM Integration Test Downstream » PR-966 #9
[2020-11-09T17:07:54.050Z] Starting building: APM Integration Test Downstream » PR-966 #10
[2020-11-09T17:07:54.061Z] Starting building: APM Integration Test Downstream » PR-966 #7
[2020-11-09T17:12:42.984Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/11/display/redirect
[2020-11-09T17:12:43.004Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/UI
[2020-11-09T17:12:43.164Z] Copied 12 artifacts from "APM Integration Test Downstream » PR-966" build number 11
[2020-11-09T17:12:43.171Z] Recording test results
[2020-11-09T17:12:43.193Z] None of the test reports contained any result
[2020-11-09T17:26:21.847Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/3/display/redirect
[2020-11-09T17:26:21.871Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/.NET
[2020-11-09T17:26:22.115Z] Copied 18 artifacts from "APM Integration Test Downstream » PR-966" build number 3
[2020-11-09T17:26:22.132Z] Recording test results
[2020-11-09T17:31:31.808Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/4/display/redirect
[2020-11-09T17:31:31.832Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/Go
[2020-11-09T17:31:32.003Z] Copied 18 artifacts from "APM Integration Test Downstream » PR-966" build number 4
[2020-11-09T17:31:32.010Z] Recording test results
[2020-11-09T17:33:06.269Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/6/display/redirect
[2020-11-09T17:33:06.286Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/Node.js
[2020-11-09T17:33:06.516Z] Copied 24 artifacts from "APM Integration Test Downstream » PR-966" build number 6
[2020-11-09T17:33:06.524Z] Recording test results
[2020-11-09T17:33:30.406Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/10/display/redirect
[2020-11-09T17:33:30.422Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/RUM
[2020-11-09T17:33:30.591Z] Copied 18 artifacts from "APM Integration Test Downstream » PR-966" build number 10
[2020-11-09T17:33:30.597Z] Recording test results
[2020-11-09T17:34:11.692Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/5/display/redirect
[2020-11-09T17:34:11.724Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/Java
[2020-11-09T17:34:12.140Z] Copied 29 artifacts from "APM Integration Test Downstream » PR-966" build number 5
[2020-11-09T17:34:12.148Z] Recording test results
[2020-11-09T17:34:12.233Z] Failed in branch Java
[2020-11-09T17:34:13.578Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/8/display/redirect
[2020-11-09T17:34:13.596Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/Python
[2020-11-09T17:34:13.950Z] Copied 27 artifacts from "APM Integration Test Downstream » PR-966" build number 8
[2020-11-09T17:34:13.958Z] Recording test results
[2020-11-09T17:34:28.338Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/9/display/redirect
[2020-11-09T17:34:28.351Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/Ruby
[2020-11-09T17:34:28.561Z] Copied 24 artifacts from "APM Integration Test Downstream » PR-966" build number 9
[2020-11-09T17:34:28.567Z] Recording test results
[2020-11-09T17:39:17.928Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/7/display/redirect
[2020-11-09T17:39:17.951Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/PHP
[2020-11-09T17:40:12.790Z] Copied 50 artifacts from "APM Integration Test Downstream » PR-966" build number 7
[2020-11-09T17:40:12.798Z] Recording test results
[2020-11-09T17:40:12.910Z] Failed in branch PHP
[2020-11-09T17:49:16.149Z] [INFO] For detailed information see: https://apm-ci.elastic.co/job/apm-integration-test-downstream/job/PR-966/2/display/redirect
[2020-11-09T17:49:16.172Z] Running in /var/lib/jenkins/workspace/apm-integration-tests_PR-966/All
[2020-11-09T17:49:23.524Z] Copied 54 artifacts from "APM Integration Test Downstream » PR-966" build number 2
[2020-11-09T17:49:23.531Z] Recording test results
[2020-11-09T17:49:23.617Z] Failed in branch All
[2020-11-09T17:49:23.801Z] Running on Jenkins in /var/lib/jenkins/workspace/apm-integration-tests_PR-966
[2020-11-09T17:49:23.822Z] [INFO] getVaultSecret: Getting secrets
[2020-11-09T17:49:23.934Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-11-09T17:49:24.499Z] + chmod 755 generate-build-data.sh
[2020-11-09T17:49:24.500Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-966/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-966/runs/3 FAILURE 3086287
[2020-11-09T17:49:25.050Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-966/runs/3/steps/?limit=10000 -o steps-info.json
[2020-11-09T17:49:25.300Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-integration-tests/PR-966/runs/3/tests/?status=FAILED -o tests-errors.json

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automation bug Team:Automation Label for the Observability productivity team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants