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 errors reported by GitHub Semmle code analysis tools. #6374

Merged
merged 3 commits into from
Mar 4, 2020

Conversation

jthelin
Copy link
Contributor

@jthelin jthelin commented Mar 1, 2020

https://lgtm.com/projects/g/dotnet/orleans/?mode=list&severity=error

Fix errors reported by GitHub Semmle code analysis tools:

Ensure Test.cmd clears the Platform environment variable (same as in Build.cmd) in case it is run on separate cmd session (eg Appveyor builds)

Remove unused $outDir param from Parallel-Tests.ps1 script.

https://lgtm.com/projects/g/dotnet/orleans/?mode=list&severity=error

Fix errors reported by GitHub Semmle code analysis tools:

- Missing X-Frame-Options HTTP header - https://lgtm.com/rules/1506102236348/
- Using a package with a known vulnerability - https://lgtm.com/rules/1506697777412/
- Possible loss of precision - https://lgtm.com/rules/1506096756023/

Ensure Test.cmd clears the Platform environment variable (same as in Build.cmd) in case it is run on separate cmd session (eg Appveyor builds) -- x-ref: issue dotnet#69

Remove unused $outDir param from Parallel-Tests.ps1 script.

Fix a few minor comment typos in scripts.
@jthelin
Copy link
Contributor Author

jthelin commented Mar 1, 2020

The first run of the Functional test suite failed with what looks like a system clock resolution / rounding edge case glitch in test case Tester.AzureUtils.Persistence.PersistenceProviderTests_Local.PersistenceProvider_Memory_FixedLatency_WriteRead

Write: Expected minimum latency = 00:00:00.2000000 Actual = 00:00:00.1975619

   at Tester.AzureUtils.Persistence.PersistenceProviderTests_Local.PersistenceProvider_Memory_FixedLatency_WriteRead() in C:\agent\_work\2\s\test\Extensions\TesterAzureUtils\Persistence\PersistenceProviderTests.cs:line 237

Hopefully rerunning the test will get a better result next time!

@jthelin
Copy link
Contributor Author

jthelin commented Mar 1, 2020

There are also another 222 Warnings and 34 Recommendations reported by Semmle code analysis, if anyone wants to lend a hand with some code cleanup work.

https://lgtm.com/projects/g/dotnet/orleans/?mode=tree

@jthelin
Copy link
Contributor Author

jthelin commented Mar 3, 2020

Fixed: PR #6378 addresses the unrelated test glitch found when running the Functional test suite for this PR.

@sergeybykov sergeybykov merged commit 0a89bf3 into dotnet:master Mar 4, 2020
@sergeybykov
Copy link
Contributor

Thank you, Jorgen!

@jthelin jthelin deleted the fix-semmle-errors branch March 4, 2020 16:35
sergeybykov pushed a commit to sergeybykov/orleans that referenced this pull request Apr 24, 2020
ReubenBond pushed a commit that referenced this pull request May 2, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants