Skip to content

Fix CI tests - #170

Merged
steven-esser merged 2 commits into
aboutcode-org:developfrom
Hritik14:develop
Jul 15, 2021
Merged

Fix CI tests#170
steven-esser merged 2 commits into
aboutcode-org:developfrom
Hritik14:develop

Conversation

@Hritik14

@Hritik14 Hritik14 commented Jul 7, 2021

Copy link
Copy Markdown
Contributor

Fix click library pytest issues

The update in click library by 8d49e14 in pallets/click#1829 produces two artifacts in our codebase which caused the CI tests to fail

  1. Capitalization of N in No such option
  2. Wrapping help so as to break line on terminal width This is solved by using an arbitrarily large TERMINAL_WIDTH=1000

2 could be improved after pallets/click#1997


Fix CI [WinError 5] Access is denied

Windows doesn't allow changing the running executable. pypa/pip#1299 (comment)
It worked for so long because earlier pip versions provided by azure
were already the latest ones and --upgrade did not modify the running
pip. Now, suddenly a new pip was released which was not present in Azure
windows and the --upgrade pip was triggered modifying the very
executable it is running.
Why does it say "Access is denied" (a permission error) is a mystery yet
to be unrevealed by Microsoft folks.

That said, untouched, this bug would have disappeared (when Azure
updates the pip version) and reappeared again and again haunting us for
long. No more.

Signed-off-by: Hritik Vijay hritikxx8@gmail.com

@Hritik14 Hritik14 changed the title Test commit for CI tests [WIP] Fix CI tests Jul 7, 2021
The update in click library by 8d49e146ab8c2312e7917bb7c3f8abf01b8b55bf
produces two artifacts in our codebase which caused the CI tests to fail

1) Capitalization of `N` in `No such option`
2) Wrapping `help` so as to break line on terminal width
	This is solved by using an arbitrarily large
	`TERMINAL_WIDTH=1000`

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
@Hritik14
Hritik14 force-pushed the develop branch 4 times, most recently from 9d1b038 to 1d0ba33 Compare July 7, 2021 21:56
@Hritik14
Hritik14 marked this pull request as draft July 7, 2021 21:57
@Hritik14
Hritik14 force-pushed the develop branch 2 times, most recently from 21039d9 to 5741d81 Compare July 7, 2021 22:05
Windows doesn't allow changing the running executable. https://github.com/pypa/pip/issues/ 1299#issuecomment-27809600
It worked for so long because earlier pip versions provided by azure
were already the latest ones and `--upgrade` did not modify the running
pip. Now, suddenly a new pip was released which was not present in Azure
windows and the `--upgrade pip` was triggered modifying the very
executable it is running.
Why does it say "Access is denied" (a permission error) is a mystery yet
to be unrevealed by Microsoft folks.

That said, untouched, this bug would have disappeared (when Azure
updates the pip version) and reappeared again and again haunting us for
long. No more.

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
@Hritik14 Hritik14 changed the title [WIP] Fix CI tests Fix CI tests Jul 7, 2021
@Hritik14
Hritik14 marked this pull request as ready for review July 7, 2021 22:45
Comment thread tests/test_cli.py
@steven-esser
steven-esser merged commit 6b50a68 into aboutcode-org:develop Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants