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

SCANNPM-5 Update CI tasks #127

Merged
merged 6 commits into from
May 1, 2024
Merged

Conversation

lucas-paulger-sonarsource

No description provided.

@lucas-paulger-sonarsource lucas-paulger-sonarsource marked this pull request as draft April 25, 2024 09:24
@lucas-paulger-sonarsource lucas-paulger-sonarsource changed the base branch from feature/MMF-3712 to feature/lp/cleanup-migrate-old-unit-tests April 26, 2024 12:38
@lucas-paulger-sonarsource lucas-paulger-sonarsource force-pushed the feature/lp/update-ci-tasks branch 7 times, most recently from 02f41f3 to 1d8ea40 Compare April 29, 2024 11:42
Comment on lines +79 to +80
//TODO: return to true once SC has the new provisioning mechanism in place
return false;

Choose a reason for hiding this comment

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

this was to force the scanner to run the scanner-cli for SC. this needs to be reverted before we merge)

@@ -87,7 +87,7 @@ describe('java', () => {
...MOCKED_PROPERTIES,
[ScannerProperty.SonarScannerInternalIsSonarCloud]: 'true',
}),
).toBe(true);
).toBe(false); // TODO: return to true once SC has the new provisioning mechanism in place

Choose a reason for hiding this comment

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

this also need to be reverted, just modified to test the CI is passing

.npmignore Outdated

Choose a reason for hiding this comment

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

I needed to add this so that npm publish would include the build directory. The other alternative was to NOT .gitignore the build directory, but the files don't conform to the prettier settings because they are minified.

I am open to a better solution here

Copy link
Member

@7PH 7PH Apr 29, 2024

Choose a reason for hiding this comment

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

I think if we set files: ["build/**"] in the package.json, then the build folder will automatically be included in the released package (even if it's gitignored)

Copy link

Choose a reason for hiding this comment

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

https://docs.npmjs.com/cli/v8/commands/npm-publish#files-included-in-package

I would say we need to only release build folder and the cli src\bin\sonar-scanner. All the rest can be ignored.

package.json Show resolved Hide resolved
@lucas-paulger-sonarsource lucas-paulger-sonarsource marked this pull request as ready for review April 30, 2024 14:32
@lucas-paulger-sonarsource lucas-paulger-sonarsource changed the base branch from feature/lp/cleanup-migrate-old-unit-tests to feature/MMF-3712 April 30, 2024 14:56
Comment on lines -31 to -35
// Skip if not a .js file
if (!fileName.endsWith('.js')) {
continue;
}

Choose a reason for hiding this comment

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

added back for the *.d.ts files

Copy link

sonarcloud bot commented Apr 30, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
6 New issues
50.0% Coverage on New Code (required ≥ 85%)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

# Conflicts:
#	src/properties.ts
#	test/unit/config.test.js
@vdiez vdiez merged commit 4a166e6 into feature/MMF-3712 May 1, 2024
0 of 4 checks passed
@vdiez vdiez deleted the feature/lp/update-ci-tasks branch May 1, 2024 10:06
7PH pushed a commit that referenced this pull request May 3, 2024
Co-authored-by: Victor <victor.diez@sonarsource.com>
7PH pushed a commit that referenced this pull request May 3, 2024
Co-authored-by: Victor <victor.diez@sonarsource.com>
lucas-paulger-sonarsource added a commit that referenced this pull request May 31, 2024
Co-authored-by: Victor <victor.diez@sonarsource.com>
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.

None yet

3 participants