Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Apply fixes from CodeFactor#969

Merged
azlam-abdulsalam merged 1 commit into
developfrom
develop-cf-autofix
May 7, 2022
Merged

Apply fixes from CodeFactor#969
azlam-abdulsalam merged 1 commit into
developfrom
develop-cf-autofix

Conversation

@azlam-abdulsalam

Copy link
Copy Markdown
Contributor

This pull request applies style fixes from code review by CodeFactor.


For more information, click here.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #969 (9bde6a0) into develop (a6574f2) will increase coverage by 0.24%.
The diff coverage is 85.18%.

@@             Coverage Diff             @@
##           develop     #969      +/-   ##
===========================================
+ Coverage    50.80%   51.05%   +0.24%     
===========================================
  Files           54       54              
  Lines         1986     1996      +10     
  Branches       440      441       +1     
===========================================
+ Hits          1009     1019      +10     
  Misses         898      898              
  Partials        79       79              
Impacted Files Coverage Δ
...c/package/packageCreators/CreateDataPackageImpl.ts 20.00% <50.00%> (+2.05%) ⬆️
.../core/src/package/packageCreators/CreatePackage.ts 7.54% <50.00%> (+1.77%) ⬆️
packages/core/src/package/SfpPackageBuilder.ts 67.32% <60.00%> (ø)
packages/core/src/package/PackageDiffImpl.ts 97.29% <100.00%> (+0.03%) ⬆️
packages/core/src/package/SfpPackage.ts 58.62% <100.00%> (+6.62%) ⬆️
...s/core/src/package/coverage/PackageTestCoverage.ts 94.59% <100.00%> (+0.04%) ⬆️
packages/core/src/project/ProjectConfig.ts 89.06% <100.00%> (+0.17%) ⬆️
...ckages/sfpowerscripts-cli/src/ProjectValidation.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 557f210...9bde6a0. Read the comment docs.

@azlam-abdulsalam azlam-abdulsalam merged commit 2167c0c into develop May 7, 2022
@azlam-abdulsalam azlam-abdulsalam deleted the develop-cf-autofix branch May 7, 2022 07:49
azlam-abdulsalam added a commit that referenced this pull request May 20, 2022
* revert(coverage): Fail Package validation if low coverage (#941)

Revert back to normal behaviour, as coverage calculation is stable with retries

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* chore(release-title): update release title to May22

* feat(fast-feedback): experimental mode for faster feedback during validate (#945)

* feat(fast-feedback): experimental mode for faster feedback during validate

experimental feature: Add option which would help validate command to provide validation using

- Deploy only changed components of a changed package
- Trigger only testclasses for impacted classes
- Skip coverage validation
- Skip package dependencies installation

Utilize a hidden flag 'fastfeedback', this feature may be revoked at any time and should be considered unstable

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(validateimpl): fast feed back testing to respect testMode set in package

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]

* fix(apex-tests): ensure retry is available for all types of test modes

* fix(validate): fix headers being incorrectly displayed when there is no impacted test classes

* refactor(validate): use constants declared in core lib instead of hardcoding

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* chore(dependencies): update @salesforce/core to 2.36.0

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(impacted-apex): add further conditions to impacted test class

- add test classes when it is changed
 -add all test classes to invalidated, when security model
changes

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(impacted-apex): use array concat instead of push, as it pushes whole array as a new element

* feat(validateimpl): add a env variable to support debugging

provide an env variable 'SFPOWERSCRIPTS_DEBUG_PREFETCHED_SCRATCHORG' to support during debugging
fetch. This allows to skip a new org from fetched from the pool

* fix(install-source): remove warning around selective, as its currently only used during fastfeedback

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* refactor(trigger-apex-tests): converge writing junit into write block and remove redundant write

* feat(docker): add apex-link to docker image

* refactor(apex-tests): refactor to make it readable and fix related bugs

Refactor trigger logic to make it readable, fix the following issues as well
 1. Handle Tests with
multiple results
 2. Skip retrieving coverage when not requested \3.Split into smaller functions

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* refactor(fast-feedback): move fast feedback from using env variable to a deployment type

* feat(fast-feedback): add fast feedback support in ValidateAgainstOrg

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(scripts): fix paths to pre and post deployment scripts when executed without repository (#954)

scripts paths is always pointed to one in the repository, rather than in the artifacts. This started
surfacing as the deploy impl generates a version of source package again from the provided artifact
(this is being refactored).

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(scripts): fix the incorrect fix to paths to pre and post

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix: predeployment script path

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix: upgrade semver from 7.3.5 to 7.3.6 (#956)

Snyk has created this PR to upgrade semver from 7.3.5 to 7.3.6.

See this package in npm:
https://www.npmjs.com/package/semver

See this project in Snyk:
https://app.snyk.io/org/azlam-abdulsalam/project/05b6b6d2-ba3e-421a-b920-224a7c9e0896?utm_source=github&utm_medium=referral&page=upgrade-pr

* fix: upgrade semver from 7.3.5 to 7.3.6 (#956)

Snyk has created this PR to upgrade semver from 7.3.5 to 7.3.6.

See this package in npm:
https://www.npmjs.com/package/semver

See this project in Snyk:
https://app.snyk.io/org/azlam-abdulsalam/project/05b6b6d2-ba3e-421a-b920-224a7c9e0896?utm_source=github&utm_medium=referral&page=upgrade-pr

* refactor/sfpPackage (#964)

* refactor(sfppackage): refactor to use sfppackage

* refactor(fast-feedback): migrate fastfeedback to build as opposed to validate building after success

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* feat(deploy): add additional log with trace level

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]

* fix(artifacts): remove temp directories before packaging artifact

* fix(publish): fix issue when publishing artifacts bigger than 5 MB

fix #967

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(deploy): fix crash when skipIfInstall is used with deploy

* fix(test-options): fix lodash import

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(changelog): fix crash in changelog due to incorrect usage of sourceVersionFrom

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(package-test-coverage): fix matching of package type

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* refactor(packagetype): move to an enum for packageType

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(package-type): fix issues with overriding packageType during validate

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(deploy): override package type in validate mode

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]

* fix(sfpackagebuilder): ignore diff computation on any error

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* [CodeFactor] Apply fixes to commit cea880f (#969)

Co-authored-by: codefactor-io <[email protected]>

* fix(fast-feedback): fix multiple issues with package diff creation

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* refactor(sfppackagebuilder): remove usage of ChangeComponent and rather use componentSet directly

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(install-source): skip reconcile if no profiles are found in diff package

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(changedcomponents): revert to an earlier version,as its no longer used by fast feedback

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* chore(dependencies): update @salesforce/core to 2.36.1

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* chore(dependencies): update marked to 4.0.14

* chore(dependencies): update semver to 7.3.6

* chore(dependencies): update @oclif/plugin-help to 5.1.12

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* chore(dependencies): update source-deploy-retrieve to 5.12.13

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(apex-tests): do not replace coverage when coverage is not requested

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* feat(validate): do not delete scratch org when there is no package to be built (#972)

* feat(validate): do not delete scratch org when there is no package to be built

fix #971

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* chore(dependencies): update sfdc-soup to 18.2.1

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(fast-feedback): fix and refactor impacted test class selection

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]

* fix(log): fix time displayed as well as packages desplaying undefined keys

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(scratchorg-info-assigner): fix incorrect use of async-retry

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(get-formatted-time): fix get formatted time to use milliseconds

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(pool): fix issues while returning scratch org to pool

the code was using incorrect Id of the scratch org.. this fixes to the correct id, However its is
still dependent on pre-requisite pool package

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(data-pkg): fix vlocity package being incorrectly returned as empty

* fix(install-source): packages are committed even when push fails

fix issue where packages are committed to the org even when push fails to deploy, as error was
incorrectly handled

* feat(fast-feedback): fast feedback to skip packages from validation when descriptor changes

validate will validate the full package when the descriptor of the package changes. Most often the
change is in a version number, and this triggers full deployment and testing, in fast feedback mode,
this could be skipped. This has a negative issue when additonal orchestrator parameters are added
like assignPermissionSets etc, this could be validated in a thorough mode

* feat(fast-feedback): unhide fast-feedback and display info in header

* feat(reconcile): enhance how reconcile is handled during fast feedback

* docs(dr): add a dr on fast feedback

* chore(sfpowerkit): update sfpowerkit to 4.2.7

* fix(alias): fix aliasified packages using username instead of alias

Fix aliasified packages t use aliases instead of username. Refactor to utilize sfpOrg as opoosed to
passing targetusername

* fix(install-package): fix import casing

* chore(dockerfile): update sfpowerkit to 4.2.8

* fix(creation-metrics): fix package creation metrics reporting

package metrics during creation is not sending the flag whether its used with build or quickbuild,
added an additional metric to deprecate package.elapsed.time in the future

* chore(dependencies): update @salesforce/core to 2.36.3

* fix(dependencies): update import of core to same version in core

* fix(package-lock): sync package lock across

* Add chunking to ApexClassFetcher, ApexTriggerFetcher and ACCG Fetcher (#953)

* Add chunking to ApexClassFetcher, ApexTriggerFetcher and ACCG Fetcher

* Fix return values

Co-authored-by: Azlam <[email protected]>

* fix(fast-feedback): fix All tests  getting triggered when invalidated test class was not found

* Update 002-fast-feedback.md

Fixed typos and minor edits to wording for better flow.

* fix(publish): create tags when atleast one package is published

fix a bug when a tag when the same package would have been published

* fix(fast-feedback): add warning message when tests are skipped due to a full package being deployed

* fix(install-package): fix logs to show 'default' when aliasifed folder is not found

* fix(fast-feedback): add additional logs about selective components utilized in fast feedback

* fix(validate): add error to display when validate fails for anyother reason

* fix(validate): remove erroneous json stringify on error message

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]

* chore(dependencies): update simple-git to 3.7.1

* chore(publish): update versions and publish to npm

 - @dxatscale/[email protected]
 - @dxatscale/[email protected]
 - @dxatscale/[email protected]

* fix(git): use command to fetch git remote instead of simple-git

* fix(git): fix git related issues on docker

- Rollback change made earlier to simple-git
  - Use pinned version of heroku docker image as this
version seems not to have the issue. This will be analyzed in a future release

Co-authored-by: Alan Ly <[email protected]>
Co-authored-by: Snyk bot <[email protected]>
Co-authored-by: codefactor-io <[email protected]>
Co-authored-by: Alan Ly <[email protected]>
Co-authored-by: Vu Ha <[email protected]>
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.

3 participants