Skip to content

Support pnpm command - #393

Merged
fluxxBot merged 15 commits into
mainfrom
RTECO-935
Mar 31, 2026
Merged

fluxxBot merged 15 commits into
mainfrom
RTECO-935

Conversation

@fluxxBot

@fluxxBot fluxxBot commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor
  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • Appropriate label is added to auto generate release notes.
  • I used gofmt for formatting the code before submitting the pull request.
  • PR description is clear and concise, and it includes the proposed solution/fix.

Description:
Support pnpm command for jfrog cli

Depends on:

  1. Support pnpm command for jfrog-cli jfrog-cli#3390

@fluxxBot
fluxxBot requested a review from a team March 11, 2026 12:59
@fluxxBot fluxxBot added the new feature Automatically generated release notes label Mar 11, 2026
@fluxxBot
fluxxBot removed the request for review from a team March 11, 2026 13:00
@reshmifrog reshmifrog added the safe to test Approve running integration tests on a pull request label Mar 12, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Mar 12, 2026
Comment thread artifactory/utils/artifactoryUtils.go Resolved
Comment thread artifactory/commands/pnpm/publish.go Resolved
// resolveAqlRepo determines the correct repo to use for AQL queries.
// Remote repos store files in a "<repo>-cache" local repo, so AQL must target that.
// Virtual and local repos are used as-is.
func resolveAqlRepo(repo string, servicesManager artifactory.ArtifactoryServicesManager) string {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Each unique registry repo triggers a GetRepository API call. If the same repo appears in multiple batches, it's queried repeatedly.
Is that possible to cache the result in a map[string]string at the call site in batchedAQLFetch

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we only call resolveAqlRepo once per distinct repo when building batches. this unique repo is found just before this workflow


if pic.collectBuildInfo {
if err = pic.collectAndSaveBuildInfo(); err != nil {
log.Warn("pnpm install completed successfully, but build info collection failed:", err.Error())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

When collectAndSaveBuildInfo fails, the error is logged as a warning and nil is returned.
Should we consider surface the failure via log.Warn with a note about how to re-collect, or consider adding a --strict-build-info flag that makes this a hard failure.
WDYT?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

command at the moment is fail safe, we are not failing the original command incase the build-info collection fails, we can have a flag accross all package manager that will revert this operation if required

@bhanurp
bhanurp requested review from a team, agrasth, bhanurp, itsmeleela, naveenku-jfrog and reshmifrog and removed request for a team March 16, 2026 08:43
Comment thread artifactory/commands/pnpm/utils.go Resolved
Comment thread .github/workflows/test.yml Resolved
Comment thread artifactory/commands/pnpm/utils.go Resolved
@fluxxBot fluxxBot added the safe to test Approve running integration tests on a pull request label Mar 30, 2026
@fluxxBot
fluxxBot requested a review from bhanurp March 30, 2026 11:46
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Mar 30, 2026
@fluxxBot fluxxBot added the safe to test Approve running integration tests on a pull request label Mar 30, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Mar 30, 2026
@fluxxBot fluxxBot added the safe to test Approve running integration tests on a pull request label Mar 30, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Mar 30, 2026
}

func runPnpmLs(workingDir string) ([]pnpmLsProject, error) {
pnpmLsArgs := []string{"ls", "-r", "--depth", "Infinity", "--json"}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

--json is already there, I am talking about --long, without long flag is it omitting resolved packages?

@fluxxBot
fluxxBot merged commit 0deeb49 into main Mar 31, 2026
24 of 25 checks passed
@fluxxBot
fluxxBot deleted the RTECO-935 branch March 31, 2026 09:48

This branch had an error being deployed

1 failed deployment
frogbot — 48a54e89 Deployed Mar 31, 2026 by fluxxBot via scan-pull-request #914
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants