GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Do we need to run py27 **AND** cover on Travis · Issue #1109 · googleapis/google-cloud-python

Do we need to run py27 **AND** cover on Travis #1109

New issue
Copy link
New issue
Copy link
Closed
Closed
Do we need to run py27 **AND** cover on Travis#1109
Copy link
Assignees
dhermes
Labels
testing

Description

@dhermes
dhermes
opened on Aug 27, 2015
Issue body actions

tox -e cover already runs all the tests in tox -e py27 (it has to so that it can generate the coverage report)

To make sure cover fails even if there is 100% coverage but failing tests, I added

diff --git a/gcloud/datastore/test_client.py b/gcloud/datastore/test_client.py
index 4fed6d9..a8d482f 100644
--- a/gcloud/datastore/test_client.py
+++ b/gcloud/datastore/test_client.py
@@ -925,6 +925,9 @@ class TestClient(unittest2.TestCase):
         }
         self.assertEqual(query.kwargs, expected_kwargs)

+    def test_nope_dan(self):
+        self.assertTrue(False)
+

 class _Dummy(object):

and then tox -e cover fails even with 100% coverage

$ tox -e cover
GLOB sdist-make: /path/to/gcloud-python/setup.py
cover inst-nodeps: /path/to/gcloud-python/.tox/dist/gcloud-0.7.1.zip
cover installed: coverage==3.7.1,-e git+git@github.com:dhermes/gcloud-python.git@0dfe5ebc936c141e8f3ca13733b69f68155fe76f#egg=gcloud-master,google-apitools==0.4.8,httplib2==0.9.1,linecache2==1.0.0,nose==1.
3.7,nosexcover==1.0.10,oauth2client==1.4.12,protobuf==3.0.0a1,protorpc==0.10.0,pyasn1==0.1.8,pyasn1-modules==0.0.7,pycrypto==2.6.1,rsa==3.2,six==1.9.0,traceback2==1.4.0,unittest2==1.1.0,wheel==0.24.0
cover runtests: PYTHONHASHSEED='2394164928'
cover runtests: commands[0] | /path/to/gcloud-python/scripts/cover.sh --cover-min-percentage=100

nosetests --ignore-files=run_system_test\.py \
--with-xunit --with-xcoverage --cover-package=gcloud \
--nocapture --cover-erase --cover-tests --cover-branches ${@}
......................................................................................................................................................................................F......................
.............................................................................................................................................................................................................
.............................................................................................................................................................................................................
.............................................................................................................................................................................................................
.........................................................................
======================================================================
FAIL: test_nope_dan (gcloud.datastore.test_client.TestClient)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/path/to/gcloud-python/gcloud/datastore/test_client.py", line 929, in test_nope_dan
    self.assertTrue(False)
AssertionError: False is not true

Name                                      Stmts   Miss Branch BrMiss  Cover   Missing
-------------------------------------------------------------------------------------
gcloud                                        3      0      0      0   100%
gcloud._helpers                              89      0     16      0   100%

...

gcloud.test_iterator                        145      0      2      0   100%
-------------------------------------------------------------------------------------
TOTAL                                     14844      0   1125      0   100%
----------------------------------------------------------------------
Ran 893 tests in 0.907s

FAILED (failures=1)
ERROR: InvocationError: '/path/to/gcloud-python/scripts/cover.sh --cover-min-percentage=100'
__________________________________________________________________________________________________ summary __________________________________________________________________________________________________
ERROR:   cover: commands failed

Activity

  1. dhermes
    added
    testing
    on Aug 27, 2015
  2. dhermes commented on Dec 31, 2015

    @dhermes
    dhermes
    on Dec 31, 2015
    ContributorAuthor
    More actions

    @tseaver Bump

  3. tseaver commented on Jan 7, 2016

    @tseaver
    tseaver
    on Jan 7, 2016
    Contributor
    More actions

    SGTM to drop the py27 environ on Travis.

  4. dhermes commented on Jan 7, 2016

    @dhermes
    dhermes
    on Jan 7, 2016
    ContributorAuthor
    More actions

    👍

  5. dhermes commented on Jan 7, 2016

    @dhermes
    dhermes
    on Jan 7, 2016
    ContributorAuthor
    More actions

    Actually it seems like a recipe for a mistake later on. Since tox -e coveralls happens in after_success and who knows how it will run in the future.

  6. dhermes
    closed this as completedon Jan 7, 2016
  7. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  8. parthea
    added 4 commits that reference this issue on Nov 22, 2025

    fix: populate SQL app_profile_id header even when it is unset (#1109)

    b9eb834

    chore: migrate default branch to main (#1156)

    e706664

    chore(docs): update docstrings for aggregations (#1109)

    f9b4367

    chore(deps): update dependency google-auth to v2.11.0 (#1109)

    f58c78d
  9. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    fix: populate SQL app_profile_id header even when it is unset (#1109)

    977cc13

    feat: Add include_recaptcha_script for as a new action in firewall po…

    3dc2fee
  10. parthea
    added 2 commits that reference this issue on Mar 9, 2026

    docs: add Transfer Manager documentation in c.g.c (#1109)

    ca05349

    docs: update all public documents to use auto-generated admin clients. (

    d1cc7dc
  11. ohmayr
    added a commit that references this issue on Mar 25, 2026

    build(deps): Bump pyjwt from 2.4.0 to 2.12.0 in /.kokoro (#460)

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

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.