Skip to content
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

Fix bunch of coverity issues. #2312

Merged
merged 4 commits into from
Feb 13, 2025
Merged

Fix bunch of coverity issues. #2312

merged 4 commits into from
Feb 13, 2025

Conversation

ni4
Copy link
Contributor

@ni4 ni4 commented Jan 30, 2025

Newly reported and one older one.

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.17%. Comparing base (9af62ce) to head (a5f3a8e).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2312   +/-   ##
=======================================
  Coverage   85.17%   85.17%           
=======================================
  Files         118      118           
  Lines       22793    22793           
=======================================
+ Hits        19413    19414    +1     
+ Misses       3380     3379    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ni4 ni4 force-pushed the ni4-fix-coverity-issues branch from 58f545e to c478119 Compare February 11, 2025 13:59
@ni4
Copy link
Contributor Author

ni4 commented Feb 11, 2025

@maxirmx do you have any idea why recently msys2 build environment started to use OSTYPE=cygwin, having the following debug output (you may find the full log in actions runs):

BASH=/usr/bin/bash
OSTYPE=cygwin
MSYSTEM=UCRT64
SHELL=/usr/bin/bash
-rwxr-xr-x 1 runneradmin None 2333443 Feb  4 17:02 /usr/bin/bash
	ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ff998700000)
	KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ff997620000)
	KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ff995df0000)
	USER32.dll => /c/Windows/System32/USER32.dll (0x7ff997f50000)
	msys-2.0.dll => /usr/bin/msys-2.0.dll (0x180040000)
	win32u.dll => /c/Windows/System32/win32u.dll (0x7ff996160000)
	GDI32.dll => /c/Windows/System32/GDI32.dll (0x7ff9981f0000)
	gdi32full.dll => /c/Windows/System32/gdi32full.dll (0x7ff995cd0000)
	msvcp_win.dll => /c/Windows/System32/msvcp_win.dll (0x7ff9963b0000)
	ucrtbase.dll => /c/Windows/System32/ucrtbase.dll (0x7ff996450000)
GNU bash, version 5.2.37(2)-release (x86_64-pc-cygwin)

I.e. bash is built with MSYS, MSYSTEM seems to be set properly, but Bash then tells that it is x86_64-pc-cygwin and sets OSTYPE to Cygwin?
While it could be fixes on ci-tests.sh level replacing switch value, wondering what's really changed as this worked before.

@maxirmx
Copy link
Member

maxirmx commented Feb 11, 2025

@maxirmx do you have any idea why recently msys2 build environment started to use OSTYPE=cygwin, having the following debug output (you may find the full log in actions runs):

BASH=/usr/bin/bash
OSTYPE=cygwin
MSYSTEM=UCRT64
SHELL=/usr/bin/bash
-rwxr-xr-x 1 runneradmin None 2333443 Feb  4 17:02 /usr/bin/bash
	ntdll.dll => /c/Windows/SYSTEM32/ntdll.dll (0x7ff998700000)
	KERNEL32.DLL => /c/Windows/System32/KERNEL32.DLL (0x7ff997620000)
	KERNELBASE.dll => /c/Windows/System32/KERNELBASE.dll (0x7ff995df0000)
	USER32.dll => /c/Windows/System32/USER32.dll (0x7ff997f50000)
	msys-2.0.dll => /usr/bin/msys-2.0.dll (0x180040000)
	win32u.dll => /c/Windows/System32/win32u.dll (0x7ff996160000)
	GDI32.dll => /c/Windows/System32/GDI32.dll (0x7ff9981f0000)
	gdi32full.dll => /c/Windows/System32/gdi32full.dll (0x7ff995cd0000)
	msvcp_win.dll => /c/Windows/System32/msvcp_win.dll (0x7ff9963b0000)
	ucrtbase.dll => /c/Windows/System32/ucrtbase.dll (0x7ff996450000)
GNU bash, version 5.2.37(2)-release (x86_64-pc-cygwin)

I.e. bash is built with MSYS, MSYSTEM seems to be set properly, but Bash then tells that it is x86_64-pc-cygwin and sets OSTYPE to Cygwin? While it could be fixes on ci-tests.sh level replacing switch value, wondering what's really changed as this worked before.

They just changed it 👎 It was a massive low to tebako pipelines as well and I did not find any word about it
I do not see any solution other then treat cygwin as msys

@ni4
Copy link
Contributor Author

ni4 commented Feb 11, 2025

They just changed it 👎 It was a massive low to tebako pipelines as well and I did not find any word about it I do not see any solution other then treat cygwin as msys

Thanks for the prompt reply! Okay, let's go with the simpler solution.

@ni4 ni4 force-pushed the ni4-fix-coverity-issues branch from bae6de3 to a5f3a8e Compare February 11, 2025 16:21
@ni4 ni4 requested a review from maxirmx February 11, 2025 17:18
@ni4 ni4 marked this pull request as ready for review February 12, 2025 10:26
Copy link
Member

@maxirmx maxirmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ni4
Copy link
Contributor Author

ni4 commented Feb 13, 2025

Merging with two approvals. Thanks all!

@ni4 ni4 merged commit dc13a59 into main Feb 13, 2025
123 checks passed
@ni4 ni4 deleted the ni4-fix-coverity-issues branch February 13, 2025 09:27
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