Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fall back on url_name and func name if no route name is provided with Django #1095

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

beniwohli
Copy link
Contributor

Related issues

closes #1092

@apmmachine
Copy link
Contributor

apmmachine commented Apr 12, 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

Expand to view the summary

Build stats

  • Build Cause: Started by user Benjamin Wohlwend

  • Start Time: 2021-04-12T08:22:21.200+0000

  • Duration: 19 min 20 sec

  • Commit: c9317c8

Test stats 🧪

Test Results
Failed 1
Passed 9685
Skipped 7883
Total 17569

Trends 🧪

Image of Build Times

Image of Tests

Test errors 1

Expand to view the tests failures

Initializing / Test / Python-pypy-3-1 / test_ssl_verify_fails – tests.transports.test_urllib3
    Expand to view the error details

     assert 'certificate verify failed' in '<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host=\'127.0.0.1\', port=36899): M...or(SSLCertVerificationError(1, \'unable to get local issuer certificate\'))) (url: https://127.0.0.1:36899)") tblen=2>'
     +  where '<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host=\'127.0.0.1\', port=36899): M...or(SSLCertVerificationError(1, \'unable to get local issuer certificate\'))) (url: https://127.0.0.1:36899)") tblen=2>' = str(<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host='127.0.0.1', port=36899): Max ...Error(SSLCertVerificationError(1, 'unable to get local issuer certificate'))) (url: https://127.0.0.1:36899)") tblen=2>) 
    

    Expand to view the stacktrace

     waiting_httpsserver = <SecureContentServer(<class 'pytest_localserver.https.SecureContentServer'>, started 139840880359168)>
    elasticapm_client = <tests.fixtures.TempStoreClient object at 0x000000000750c410>
    
        @pytest.mark.flaky(reruns=3)  # test is flaky on Windows
        def test_ssl_verify_fails(waiting_httpsserver, elasticapm_client):
            waiting_httpsserver.serve_content(code=202, content="", headers={"Location": "http://example.com/foo"})
            transport = Transport(waiting_httpsserver.url, client=elasticapm_client)
            transport.start_thread()
            try:
                with pytest.raises(TransportException) as exc_info:
                    url = transport.send(compat.b("x"))
    >           assert "certificate verify failed" in str(exc_info)
    E           assert 'certificate verify failed' in '<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host=\'127.0.0.1\', port=36899): M...or(SSLCertVerificationError(1, \'unable to get local issuer certificate\'))) (url: https://127.0.0.1:36899)") tblen=2>'
    E            +  where '<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host=\'127.0.0.1\', port=36899): M...or(SSLCertVerificationError(1, \'unable to get local issuer certificate\'))) (url: https://127.0.0.1:36899)") tblen=2>' = str(<ExceptionInfo TransportException("Unable to reach APM Server: HTTPSConnectionPool(host='127.0.0.1', port=36899): Max ...Error(SSLCertVerificationError(1, 'unable to get local issuer certificate'))) (url: https://127.0.0.1:36899)") tblen=2>)
    
    tests/transports/test_urllib3.py:171: AssertionError 
    

Steps errors 10

Expand to view the steps failures

Shell Script
  • Took 4 min 12 sec . View more details on here
  • Description: ./tests/scripts/docker/run_tests.sh pypy-3 none
Shell Script
  • Took 3 min 46 sec . View more details on here
  • Description: ./tests/scripts/docker/run_tests.sh pypy-3 none
Restore files previously stashed
  • Took 0 min 0 sec . View more details on here
  • Description: coverage-pypy-3-flask-0.12
Restore files previously stashed
  • Took 0 min 0 sec . View more details on here
  • Description: coverage-pypy-3-celery-3-django-2.0
Restore files previously stashed
  • Took 0 min 0 sec . View more details on here
  • Description: coverage-pypy-3-pymongo-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details on here
  • Description: coverage-pypy-3-elasticsearch-2
Restore files previously stashed
  • Took 0 min 0 sec . View more details on here
  • Description: coverage-pypy-3-gevent-newest
Restore files previously stashed
  • Took 0 min 0 sec . View more details on here
  • Description: coverage-pypy-3-graphene-2
Archive the artifacts
  • Took 0 min 0 sec . View more details on here
  • Description: [2021-04-12T08:41:39.663Z] Archiving artifacts Python-pypy-3-none tests failed : hudson.AbortExcept
Error signal
  • Took 0 min 0 sec . View more details on here
  • Description: Python-pypy-3-none tests failed : hudson.AbortException: script returned exit code 2

Log output

Expand to view the last 100 lines of log output

[2021-04-12T08:40:59.963Z] ERROR: No such saved stash ‘coverage-pypy-3-flask-0.12’
[2021-04-12T08:41:00.250Z] ERROR: No such saved stash ‘coverage-pypy-3-celery-3-django-2.0’
[2021-04-12T08:41:00.497Z] ERROR: No such saved stash ‘coverage-pypy-3-pymongo-newest’
[2021-04-12T08:41:00.746Z] ERROR: No such saved stash ‘coverage-pypy-3-elasticsearch-2’
[2021-04-12T08:41:01.017Z] ERROR: No such saved stash ‘coverage-pypy-3-gevent-newest’
[2021-04-12T08:41:01.263Z] ERROR: No such saved stash ‘coverage-pypy-3-graphene-2’
[2021-04-12T08:41:02.431Z] + python3 -m coverage combine
[2021-04-12T08:41:34.561Z] + python3 -m coverage xml
[2021-04-12T08:41:38.830Z] [Cobertura] Skipping Cobertura coverage report as build was not SUCCESS or better ...
[2021-04-12T08:41:38.830Z] 
[2021-04-12T08:41:39.204Z] + curl -sLO https://code.jquery.com/jquery-3.3.1.slim.min.js
[2021-04-12T08:41:39.497Z] + curl -sLO https://cdn.jsdelivr.net/npm/htmlson.js@1.0.4/src/htmlson.js
[2021-04-12T08:41:39.663Z] Archiving artifacts
[2021-04-12T08:41:39.776Z] Stage "Building packages" skipped due to earlier failure(s)
[2021-04-12T08:41:39.810Z] Stage "Integration Tests" skipped due to earlier failure(s)
[2021-04-12T08:41:39.850Z] Stage "Benchmarks" skipped due to earlier failure(s)
[2021-04-12T08:41:39.929Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-04-12T08:41:39.948Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-04-12T08:41:39.984Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-04-12T08:41:40.020Z] Stage "Prepare Release" skipped due to earlier failure(s)
[2021-04-12T08:41:40.611Z] Running on Jenkins in /var/lib/jenkins/workspace/hon_apm-agent-python-mbp_PR-1095
[2021-04-12T08:41:40.851Z] [INFO] getVaultSecret: Getting secrets
[2021-04-12T08:41:41.106Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-04-12T08:41:41.936Z] + chmod 755 generate-build-data.sh
[2021-04-12T08:41:41.936Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-1095/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-1095/runs/2 FAILURE 1160472
[2021-04-12T08:41:42.487Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-python/apm-agent-python-mbp/PR-1095/runs/2/steps/?limit=10000 -o steps-info.json

🐛 Flaky test report

❕ There are test failures but not known flaky tests.

Expand to view the summary

Test stats 🧪

Test Results
Failed 1
Passed 9685
Skipped 7883
Total 17569

Genuine test errors 1

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

  • Name: Initializing / Test / Python-pypy-3-1 / test_ssl_verify_fails – tests.transports.test_urllib3

@beniwohli
Copy link
Contributor Author

test failures are unrelated

@beniwohli beniwohli merged commit 4025b99 into elastic:master Apr 12, 2021
@beniwohli beniwohli deleted the fix-1092 branch April 12, 2021 09:51
beniwohli added a commit to beniwohli/apm-agent-python that referenced this pull request Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Root Django URL doesn't appear in the UI when using routes
2 participants