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

[full-ci] Build idp and settings frontends with pnpm #4892

Merged
merged 2 commits into from
Oct 27, 2022
Merged

[full-ci] Build idp and settings frontends with pnpm #4892

merged 2 commits into from
Oct 27, 2022

Conversation

dschmidt
Copy link
Member

@dschmidt dschmidt commented Oct 24, 2022

Description

Use pnpm for the services built in this repo.

Related Issue

Motivation and Context

We recently switched to pnpm in oC Web (see the PR here: owncloud/web#7835)
It provides isolation between subpackages and overall avoids a whole class of careless mistakes.

I would recommend to switch the service frontends in oCIS as well, but it's not strictly neccessary for the Web team. The important changes for us are in #4878

It's a slight disruption to backend developers as you need to enable pnpm, if you don't have it already.
See https://pnpm.io/installation for reference.
Easiest is probably npm install -g pnpm if you already have npm.

As I prepared the changes already (and we decided to split it out of the original PR), I'm offering them here to you.
It really depends on the oCIS team if you want to accept this change or not. No hard feelings if you prefer to stick with yarn. Up to you :)

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@dschmidt dschmidt changed the title Build idp and settings frontends with npm [full-ci] Build idp and settings frontends with npm Oct 24, 2022
@dschmidt dschmidt changed the title [full-ci] Build idp and settings frontends with npm [full-ci] Build idp and settings frontends with pnpm Oct 24, 2022
@sonarcloud
Copy link

sonarcloud bot commented Oct 25, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@@ -1089,7 +1089,8 @@ def settingsUITests(ctx, storage = "ocis", accounts_hash_difficulty = 4):
# TODO: settings/package.json has all the acceptance test dependencies
# they shouldn't be needed since we could also use them from web:/tests/acceptance/package.json
"cd %s/services/settings" % dirs["base"],
"retry -t 3 'yarn install --immutable'",
"pnpm config set store-dir ./.pnpm-store",
Copy link
Contributor

Choose a reason for hiding this comment

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

Does pnpm by default use the lock file?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes!

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@kulmann kulmann merged commit 2b27b0c into master Oct 27, 2022
@delete-merged-branch delete-merged-branch bot deleted the pnpm-2 branch October 27, 2022 08:35
ownclouders pushed a commit that referenced this pull request Oct 27, 2022
Merge: 8599b93 8d34285
Author: Benedikt Kulmann <benedikt@kulmann.biz>
Date:   Thu Oct 27 10:35:12 2022 +0200

    Merge pull request #4892 from owncloud/pnpm-2

    [full-ci] Build idp and settings frontends with pnpm
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