Skip to content

Conversation

@edmorley
Copy link
Member

@edmorley edmorley commented Jan 31, 2023

In #403 and heroku/sf-functions-core#22 various measures were taken to try and shorten the maximum on-disk filepath of files in the two packages, so as to prevent the CI failures seen in:
https://app.circleci.com/pipelines/github/salesforcecli/plugin-functions/2415/workflows/510a1bac-1a64-4a1b-a5a5-e765100b08d2/jobs/8514

One of these measure was to use a package alias of @hk/functions-core for the @heroku/functions-core package, so the on-disk directory path was 4 characters shorter.

However, this change stops Dependabot from working, and looking at recent tarfile verification logs in CI, it appears we might not need to save these four characters any more - since none of the salesforce-core dep paths appear in the "close to the limit" warnings.

As such, we can undo this aliasing, to fix Dependabot for this package.

@W-12466399@

@edmorley edmorley self-assigned this Jan 31, 2023
@git2gus
Copy link

git2gus bot commented Jan 31, 2023

Git2Gus App is installed but the .git2gus/config.json doesn't exist.

@edmorley edmorley marked this pull request as ready for review January 31, 2023 17:20
@edmorley
Copy link
Member Author

edmorley commented Jan 31, 2023

The filepath length check is still passing after this change (the warnings below are unrelated and pre-existing):

$ sf-release cli:tarballs:verify --cli sf --windows-username-buffer 34
[1/4] Ensure no tests or maps in dist... PASSED
[2/4] Ensure no unexpected files... PASSED
[3/4] Ensure windows path lengths... PASSED
Windows Path Length Test:
  - max windows path length: 259
  ---- Upper Limit ----
  - sf max username length: 64
  - sf max base path length: 132
  - sf max allowable path length: 127
  ---- Supported Limit ----
  - sf supported username length: 34
  - sf supported base path length: 102
  - sf supported allowable path length: 157
WARNING: Some paths could result in errors for Windows users with usernames that are 64 characters!
128 - node_modules/@salesforce/templates/lib/templates/analytics/waveTemplates/DefaultAnalyticsTemplate/dashboards/basicDashboard.json
127 - node_modules/@salesforce/templates/lib/templates/lightningcomponent/lwc/analyticsDashboard/__tests__/analyticsDashboard.test.js
143 - node_modules/@salesforce/templates/lib/templates/lightningcomponent/lwc/analyticsDashboardWithStep/__tests__/analyticsDashboardWithStep.test.js
130 - node_modules/@salesforce/templates/lib/templates/lightningcomponent/lwc/analyticsDashboardWithStep/analyticsDashboardWithStep.html
128 - node_modules/@salesforce/templates/lib/templates/lightningcomponent/lwc/analyticsDashboardWithStep/analyticsDashboardWithStep.js
137 - node_modules/@salesforce/templates/lib/templates/lightningcomponent/lwc/analyticsDashboardWithStep/analyticsDashboardWithStep.js-meta.xml
[4/4] Ensure .md messages exist... PASSED
Done in 2.05s.

(https://github.com/salesforcecli/plugin-functions/actions/runs/4056605456/jobs/6981297126)

…ency name

In #403 and heroku/sf-functions-core#22 various
measures were taken to try and shorten the maximum on-disk filepath of files
in the two packages, so as to prevent the CI failures seen in:
https://app.circleci.com/pipelines/github/salesforcecli/plugin-functions/2415/workflows/510a1bac-1a64-4a1b-a5a5-e765100b08d2/jobs/8514

One of these measure was to use a package alias of `@hk/functions-core` for the
`@heroku/functions-core` package, so the on-disk directory path was 4 characters
shorter.

However, this change stops Dependabot from working, and looking at recent tarfile
verification logs in CI, it appears we might not need to save these four characters any
more - since none of the salesforce-core dep paths appear in the "close to the limit"
warnings.

As such, we can undo this aliasing, to fix Dependabot for this package.

@W-12466399@
@edmorley edmorley force-pushed the edmorley/functions-core-dep-specifier branch from 8133290 to 5cb9073 Compare January 31, 2023 17:22
@edmorley edmorley requested a review from a team January 31, 2023 17:24
@edmorley edmorley merged commit 14d7dc4 into main Feb 1, 2023
@edmorley edmorley deleted the edmorley/functions-core-dep-specifier branch February 1, 2023 09:53
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