-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Textconv previously 307 #312
base: main
Are you sure you want to change the base?
Conversation
- chore: soi-textconv changes 1/33
- docs: adjustments to pass linkcheck
- docs(README.md): doctest ELLIPSIS wildcard avoid hardcode inventory count
- feat: entrypoint sphobjinv-textconv ([bskinn#295]) - test: add sphobjinv-textconv unittests offline and online - test: add integration test. Demonstrate git diff objects.inv - test: add pytest module with class to interact with git - docs: add step by step guide to configure git. Examples for bash and python - docs: added sphobjinv-textconv API docs
- test: print entire os.environ rather than a single key
- test: for Windows, attempt add SCRIPTS folder to sys.path - test: for Windows, walk SCRIPTS folder print files and folders
- test: wrong params for list.append instead use list.insert
- test: for subprocess calls use relative path not absolute path
- test: carefully escape regex metacharacters - test: print source .inv file and diff. On windows, issue with regex - test: remove fixture windows_paths
- test: .git/config textconv executable resolve path - test: shutil.which to resolve path to executable
- test: resolve both soi and soi-textconv executables path
- test: regression when to use resolved or unresolved executable path
- test: read inventory on disk - test: print diagnostic before assertions
- test: consistantly use sphobjinv.cli.load:import_infile so compare apple with apples
- test: add resources objects_attrs_plus_one_entry.{txt|inv} - test: compare existing resources. Rather modify then .txt --> .inv - test: add fixtures res_cmp_plus_one_line is_linux gitconfig gitattributes
- refactor .git/config append algo
- refactor: print git diff err message
- fix: specify encoding and linesep
- test: fix use git config to set textconv executable - test: add to WorkDir git config list/get/set support
- test: fix inventory path must surround by single quotes
- test: attempt to diagnose WindowsPath getting garbled
- test: file not found create a .gitattributes
- chore: soi-textconv changes 25/33
- test: restore fixture ensure_doc_scratch
- chore: fix format and lint - docs: fix README doctest
- test: remove inventory objects_attrs_plus_one_entry - test(conftest): remove res_cmp_plus_one_line - test(conftest): consolidate run_cmdline_textconv and run_cmdline_no_checks
- chore: soi-textconv changes 30/33
- test(conftest.py): remove run_cmdline_textconv by consolidate into run_cmdline_test - test(enum.py): add module for enum.Enum declarations
- chore(tox.ini): application-import-names include folder tests - tests(.coveragerc): omit conftest.py - tests(conftest): remove fixture is_linux - tests: rename dotted path tests.enum to tests.enums
- docs(CONTRIBUTING.md): instructions to optionally configure pyenv and tox - chore(tox.ini): remove tox usage comment
Ah, I had to approve the workflows since it was a new PR. They should run automatically from here on out. |
And, ok, I've had it with Codecov. I thought I had it configured correctly per their docs, but apparently not. Please remove this last step from |
As far as next work steps on the PR, that was in this comment from the prior PR: Code review wise -- I think it'll be best to work on the code first, and then follow with the docs once the code is settled. First, high-level, I'm not sure what the value is for having so much re-implemented in the new
It also seems like there's a lot of unnecessary/irrelevant logic in In sum -- I think all of the new functional code should be much slimmer. Is that workable, to make a trim-down refactoring pass on everything? Second, related -- I'm having a hard time understanding the purpose/function of (If they are needed for some remaining tests to function correctly, please make an attempt to revise the tests so that they can successfully use the original Thanks! |
Done with two lines of code in 61519e6
Changing function signature was not needed CAN IGNORE EVERYTHING BELOW HERE print_stderr is being passed all soi params, but only requires two. Should be refactored as optional kwargs with sane defaults. Once this fix is deployed, print_stderr_2 and usage of How to defang print_stderrInstead of passing in params dict (hated by static type checkers), accept only optional keyword args.
becomes in cli/ui.py
|
Here is a working example of how to post to codecov. Use the gh action, do not reinvent the wheel.
Whats known to work ftw!
Would it be ok to use codecov/codecov-action? Ignoring coverage vs pytest-cov |
_wrap_inv_stdin soi-textconv is only for use with git. If git supplied it by redirect then _wrap_inv_stdin is the workaround. soi-textconv is written to be UNIX standard utility. UNIX utils are expected to deal with pipes, redirects, or as cli options. I assume, git to expect textconv to be UNIX standards compliant utility. Then it's up to git on how to interact with the textconv. That's a git internal implementation decision. |
- ci(all_core_tests): gh action to upload to codecov
added fix for codecov should work |
- refactor: remove print_stderr patching. Apply sane defaults
Looks like there's a syntax error in the new YAML. That said, please just remove the Codecov job step, instead of taking the time to fix it. Codecov is really for larger projects and large teams, where you want team-wide visibility and/or accountability over coverage. It's overkill for |
Per the Git docs:
The input API contract for the textconv is specifically a string filename passed as a CLI argument. I suppose that may change someday, but I'd rather postpone uptaking that complexity to the project unless/until it's specifically needed. Please pare back to only this use case. |
rebased local with bskinn/sphobjinv
sync'ed msftcangoblowm/textconv with bskinn/sphobjinv
git push
forced to create new PR