-
Notifications
You must be signed in to change notification settings - Fork 109
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
BF: require argcomplete version at least 1.12.3 to test/operate correctly #6693
Conversation
On debian stable bullseye and ubuntu 22.04 we have 1.8.1 and test_completion fails.
We keep getting odd fails on travis suggesting that not all tags fetched or smth like that for PRs against maint like datalad#6693 : ====================================================================== FAIL: datalad.tests.test_version.test__version__ ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/dl-miniconda-lzitvwji/lib/python3.9/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/home/travis/build/datalad/datalad/datalad/tests/test_version.py", line 61, in test__version__ ok_startswith(__version__, changelog_version) File "/home/travis/build/datalad/datalad/datalad/tests/utils.py", line 451, in ok_startswith ok_(s.startswith(prefix), AssertionError: String '0.16.2+26.g654fe57' doesn't start with '0.16.3' to troubleshoot this and future similar problems -- show tags and git describe output(s)
Codecov Report
@@ Coverage Diff @@
## maint #6693 +/- ##
==========================================
- Coverage 91.06% 90.68% -0.38%
==========================================
Files 353 353
Lines 44518 44518
==========================================
- Hits 40540 40372 -168
- Misses 3978 4146 +168
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks alright, but can you tell anything about those failures, @yarikoptic ? Just noticed them in #6704, too.
In principle needed only for builds against `maint`. Without it we might not have the most recent git tag for a release in maint. Here is further details emailed to Travis support team: I think that the default git clone command used by travis with --depth=50 should also allow for the specification of the base branch . Rationale: in datalad project (paid plan) we were getting some periods of time odd unittest fails suggesting that most recent git tag was not fetched. Reason: 1. we have two branches: master and maint. maint is the one getting bugfixes releases cut off from, and which eventually get merged into master. 2. travis, regardless of what is the base branch for the PR, just does a shallow clone of the default branch, e.g. in our case: git clone --depth=50 https://github.com/datalad/datalad.git datalad/datalad and that in turn fetches tags reachable from that branch, not necessarily all most recent tags. Then it fetches/checks out the corresponding head or a merge head for the PR, e.g. git fetch origin +refs/pull/6693/merge: which doesn't fetch any extra tags. That results then in git describe not having access to the actual most recent git tag for that PR base branch (in our case - maint). The most obvious solution is to disable shallow cloning, but that would add 10 seconds to our already long runs. Ideally I should be able to adjust aforementioned clone command to become git clone --depth=50 --branch="{TRAVIS_BRANCH}" https://github.com/datalad/datalad.git datalad/datalad which seems would resolve our issue.
a2168dd
to
4ce660d
Compare
yeap -- travis doesn't fetch all the tags!!
and looking "above" I see
so -- mystery is resolved! Now need to workout a solution for it... emailed travis support, force pushed here a workaround -- doing full clone (costs us ~10 seconds :-/) |
ok, mystery resolved and problems averted. Fails are AFAIK known on macs... one is the known test_ria_postclonecfg and another one is also something freshish git-annexy I whined about recently. Let's proceed. |
🚀 PR was released in |
On debian stable bullseye and ubuntu 22.04 we have 1.8.1 and test_completion fails.
I will add corresponding version depend also for debian/control in debian branch.