Project

General

Profile

Bug #24928

plugins require rebuild when foreman changes its webpack vendor bundle

Added by Tomáš Strachota 3 months ago. Updated 2 months ago.


Description

When I go to Content -> Subscriptions and want to open a subscription, content container is blank and the container reactRoot only shows an empty div.

This happens only in production installations. So far I haven't been able to reproduce it in development.

Expected outcome:
Subscription details should be shown.

Foreman and plugin versions:
Foreman 1.19.0 (occurs from 1.18.0 on)
Katello 3.8.0

Associated revisions

Revision 649ef700 (diff)
Added by Evgeni Golov 2 months ago

Fixes #24928 - generators for requires/provides of webpack bundles

This adds automatic Provides and Requires for Foreman's webpack bundles.

Foreman ships webpack bundles in its RPMs to be consumed by plugins. To ensure
proper dependency relationships between the plugins and the main Foreman RPM,
this script generates Provides for the Foreman RPM that contain the hash of
the webpack bundles shipped and matching Requires for the plugins packages.
Each time the Foreman bundles change hashes, the plugins become uninstallable
and indicate that a rebuild is required.

Revision 5130bb2a (diff)
Added by Evgeni Golov 2 months ago

Refs #24928 - look directly for vendor chunks, don't loop

Revision 05914d9f (diff)
Added by Evgeni Golov 2 months ago

Refs #24928 - ignore JS maps in webpack requires/provides

History

#1 Updated by Evgeni Golov 3 months ago

  • Priority changed from Normal to High
  • Assignee changed from Tomáš Strachota to Evgeni Golov
  • Status changed from New to Assigned
  • Category changed from Subscriptions to RPMs
  • Subject changed from Subscription detail is blank to plugins require rebuild when foreman changes its webpack vendor bundle
  • Project changed from Katello to Packaging
  • Found in Releases 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.19.1, 1.20.0 added
  • Found in Releases deleted (Katello 3.8.0)
  • Team Backlog deleted (UX)

#2 Updated by Evgeni Golov 3 months ago

  • Bugzilla link set to 1630934

#3 Updated by The Foreman Bot 3 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/3012 added

#4 Updated by Evgeni Golov 2 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by The Foreman Bot 2 months ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/3096 added

#6 Updated by The Foreman Bot 2 months ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/3100 added

#7 Updated by Tomer Brisker 2 months ago

  • Fixed in Releases 1.20.0 added

Also available in: Atom PDF