Bug 1730037 - Nodejs module upgrade UX should work
Summary: Nodejs module upgrade UX should work
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nodejs-12-module
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Node.js maintainers
QA Contact: RHEL CS Apps Subsystem QE
URL:
Whiteboard:
Depends On:
Blocks: 1685191
TreeView+ depends on / blocked
 
Reported: 2019-07-15 16:20 UTC by Honza Horak
Modified: 2020-02-07 17:07 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)

Description Honza Horak 2019-07-15 16:20:02 UTC
Description of problem:
When going from one stream of nodejs to another (especially going up 10 -> 12, but ideally also when going down), the user experience should be nice. This is a specific requirement from PM (Brian), so we should make sure it works fine and that it is also tested.

So far, this looks quite good to me, so this bug might turn into testing only one, but leave developers and QE to re-consider whether we can do something more.

Steps I used to upgrade from stream 10 to 12:
1. yum -y install node\*
2. yum -y module reset nodejs
3. yum -y module enable nodejs:12
4. yum -y update

Steps I used to downgrade from stream 12 to 10:
1. yum -y module reset nodejs
2. yum -y module enable nodejs:10
3. yum -y distro-sync

Actual results:
After upgrade, all packages were updated.
After downgrade (distro-sync), nodejs-libs was left, which is probably not a problem (at least I don't see a problem with that, if the package only includes a dynamic library).

Expected results:
So far it looks expected, but we should make sure it is the best UX we can offer to users with the current tooling (i.e. what yum provides).

Comment 1 Honza Horak 2019-07-15 16:30:37 UTC
It looks like the following two commands do pretty good job as well, although it is not clear to me whether they do everything we need when switching the streams, but they are very simple:

# dnf install @nodejs:10
# dnf install @nodejs:12

Comment 2 Honza Horak 2019-07-15 16:33:40 UTC
(In reply to Honza Horak from comment #1)
> # dnf install @nodejs:10
> # dnf install @nodejs:12

I meant `yum` ^^^ of course...

Anyway, one issue I spotted is that when going 12 -> 10 using just `yum install @nodejs:10`, then `nodejs-packaging` is not downgraded and I had to run `yum distro-sync` to get nodejs-packaging from nodejs:10 module. This is probably not a big issue, it should just be documented maybe..


Note You need to log in before you can comment on or make changes to this bug.