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 system tests 2 #2352

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Fix system tests 2 #2352

wants to merge 13 commits into from

Conversation

awharn
Copy link
Member

@awharn awharn commented Nov 5, 2024

What It Does

  • Adds missing shebang lines to system test scripts.
  • Alters IO.createDirSync logic to do a recursive create, and not throw an error if a race condition creates a directory after the existsSync check, but before the mkdir call.
  • Fixes a bug in deleteJobs where the response was not passed along if modifyVersion wasn't specified, even though it was available.

How to Test

Review Checklist
I certify that I have:

Additional Comments

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
…e directory exists due to race condition

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
…sing modifyVersion 2.0

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 91.15%. Comparing base (440f8e3) to head (59438c6).

Files with missing lines Patch % Lines
packages/imperative/src/io/src/IO.ts 75.00% 1 Missing ⚠️
...ackages/imperative/src/operations/src/Operation.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2352   +/-   ##
=======================================
  Coverage   91.15%   91.15%           
=======================================
  Files         636      636           
  Lines       18029    18018   -11     
  Branches     3767     3764    -3     
=======================================
- Hits        16434    16424   -10     
+ Misses       1594     1593    -1     
  Partials        1        1           

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

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
… tests.

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Copy link
Member

@t1m0thyj t1m0thyj left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @awharn for these fixes and removing as many references to fs-extra as possible! Left one question

@@ -61,6 +61,7 @@ export function runCliScript(scriptPath: string, testEnvironment: ITestEnvironme
env: childEnv,
encoding: "buffer"
});
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
Copy link
Member

Choose a reason for hiding this comment

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

Oops, thanks for adding this 😋

Copy link
Member Author

Choose a reason for hiding this comment

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

No problem! :)

packages/imperative/src/operations/src/Operation.ts Outdated Show resolved Hide resolved
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Copy link
Member

@traeok traeok left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Andrew for fixing up the system tests and for the optimizations/bug fixes! 😁

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
Copy link
Contributor

@anaxceron anaxceron left a comment

Choose a reason for hiding this comment

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

Good changelog, thanks @awharn!

Copy link

sonarcloud bot commented Nov 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Review/QA
Development

Successfully merging this pull request may close these issues.

4 participants