Skip to content

BF: use --python-match minor option in new datalad-installer release to match outside version of Python#6827

Merged
yarikoptic merged 12 commits into
datalad:maintfrom
yarikoptic:bf-travix-python-maint
Jul 10, 2022
Merged

BF: use --python-match minor option in new datalad-installer release to match outside version of Python#6827
yarikoptic merged 12 commits into
datalad:maintfrom
yarikoptic:bf-travix-python-maint

Conversation

@yarikoptic

Copy link
Copy Markdown
Member

Yet another replacement now of #6803 and sits on top of #6826 -- I am aiming for a clean CI without needing to lookup what failed. #6826 should be merged first

christian-monch and others added 12 commits July 7, 2022 05:58
This commit adds a very rough ssh-version detection
to deal with different filename quoting requirements
in ssh version <= 8 and in ssh version 9.

This fixes the ssh copy tests error that is
described in issue datalad#6806.

This is a rough first draft to verify the overall
viability and to test the waters in CI. The version
parsing will have to be improved.
This commit adds a "# nosec" comment to an application
of 'md5' in order to skip insecure-hash checks by
'codeclimate'. The hash is not security critical, since
it is only used as an "abbreviation" of the unique
connection property string.
This commit adds '<' and '>' to the characters that
can be put into an obscure filename.
Thie commit adds a regular expression to determine
the version, sub-version and patch-number of the used
ssh-client.

It currently only recognizes "OpenSSH" versions.
This commit removes the custom ssh-version detection
code from sshconnector.py in favor of the existing
version detection code in external_versions.py
This commit refactors the external version
detection for ssh to include the ssh type.
Currently only OpenSSH is recognized, all
other types are considered to be unknown.
This commit removes the ssh type signaling in the
external versions object because it exhibited too
many incompatibilities and we do not really have
a strategy to deal with ssh types other than
OpenSSH.
now we use external_versions to get version and it does not
store implementation. So compare just against the [0]
Swapped the logic for version comparison so that if we have not
figured out ssh version, we do not quote (since we do not know
if we should).
…to match outside version of python

we set in our matrix runs of travis CI setup.  with datalad-installer 0.9.0 we
can now match to minor (or try even more detailed match) portion of the version
of system wide python. Again -- it would not be system wide python intallation,
but conda installation of python matching in minor portion of the version, which
is what we care in our matrix

This one is positioned against master since maint we run into difficulty
installing nose in env with python 3.10
@codecov

codecov Bot commented Jul 9, 2022

Copy link
Copy Markdown

Codecov Report

Merging #6827 (61e81fc) into maint (65ef546) will increase coverage by 0.98%.
The diff coverage is 95.23%.

@@            Coverage Diff             @@
##            maint    #6827      +/-   ##
==========================================
+ Coverage   90.24%   91.23%   +0.98%     
==========================================
  Files         354      354              
  Lines       46056    46078      +22     
==========================================
+ Hits        41563    42037     +474     
+ Misses       4493     4041     -452     
Impacted Files Coverage Δ
datalad/support/external_versions.py 95.73% <80.00%> (-0.55%) ⬇️
datalad/support/sshconnector.py 87.70% <100.00%> (+0.85%) ⬆️
datalad/support/tests/test_sshconnector.py 98.77% <100.00%> (ø)
datalad/tests/utils_pytest.py 89.73% <100.00%> (+0.01%) ⬆️
datalad/customremotes/tests/test_datalad.py 95.34% <0.00%> (-2.28%) ⬇️
datalad/distribution/create_sibling.py 69.80% <0.00%> (-0.20%) ⬇️
datalad/cli/common_args.py 100.00% <0.00%> (ø)
datalad/tests/test_dochelpers.py 100.00% <0.00%> (ø)
datalad/support/tests/test_network.py 100.00% <0.00%> (ø)
datalad/runner/tests/test_threadsafety.py 100.00% <0.00%> (ø)
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65ef546...61e81fc. Read the comment docs.

@yarikoptic

Copy link
Copy Markdown
Member Author

Any brave soul to hit merge for two birds at once?

@yarikoptic

Copy link
Copy Markdown
Member Author

#6826 is merged, so this is no brainer

@yarikoptic yarikoptic merged commit 68e1f11 into datalad:maint Jul 10, 2022
@yarikoptic yarikoptic deleted the bf-travix-python-maint branch July 11, 2022 19:37
@github-actions

Copy link
Copy Markdown
Contributor

🚀 PR was released in 0.17.1 🚀

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

Labels

released semver-tests Changes only affect tests, no impact on version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants