Skip to content

deb: improve process timing for safety and simplicity - #762

Merged
daipom merged 1 commit into
fluent:feature-nodowntimefrom
daipom:deb-improve-process-timing
Dec 11, 2024
Merged

deb: improve process timing for safety and simplicity#762
daipom merged 1 commit into
fluent:feature-nodowntimefrom
daipom:deb-improve-process-timing

Conversation

@daipom

@daipom daipom commented Dec 10, 2024

Copy link
Copy Markdown
Contributor

Points

  • FROM-package just leaves tmp files if it supports the features.
  • TO-package trigger the features if there are those tmp files.
  • Thus, we don't need to check the version.
  • Make installing plugin and restarting the same condition.

Before

  1. from-prerm(upgrade): Do nothing.
  2. to-preinst(upgrade): Collect plugin-list. Confirm version.
  3. Install TO-package
  4. from-postrm(upgrade): Do nothing.
  5. Uninstall FROM-package
  6. to-postinst(configure): Install plugin and restart if need.

After

  1. from-prerm(upgrade):
    • Check auto or not.
    • Leave plugin-list and pid if need.
  2. to-preinst(upgrade): Set tmp files for TO-package.
  3. Install TO-package
  4. from-postrm(upgrade): Clean tmp files of FROM-package.
  5. Uninstall FROM-package
  6. to-postinst(configure): Install plugin and restart if need.

@daipom
daipom marked this pull request as ready for review December 10, 2024 09:49
@daipom
daipom requested review from Watson1978 and kenhys December 10, 2024 09:50
@daipom
daipom force-pushed the deb-improve-process-timing branch from 38e05e9 to 0b673de Compare December 10, 2024 10:44
Comment thread fluent-package/templates/package-scripts/fluent-package/deb/preinst
Comment thread fluent-package/templates/package-scripts/fluent-package/deb/prerm

@Watson1978 Watson1978 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍🏻

@daipom
daipom force-pushed the deb-improve-process-timing branch from 0b673de to 9530ff2 Compare December 11, 2024 04:53
Points

* FROM-package just leaves tmp files if it supports the features.
* TO-package trigger the features if there are those tmp files.
* Thus, we don't need to check the version.
* Make installing plugin and restarting the same condition.

Before

1. from-prerm(upgrade): Do nothing.
2. to-preinst(upgrade): Collect plugin-list. Confirm version.
3. Install TO-package
4. from-postrm(upgrade): Do nothing.
5. Uninstall FROM-package
6. to-postinst(configure): Install plugin and restart if need.

After

1. from-prerm(upgrade):
   * Check auto or not.
   * Leave plugin-list and pid if need.
2. to-preinst(upgrade): Set tmp files for TO-package.
3. Install TO-package
4. from-postrm(upgrade): Clean tmp files of FROM-package.
5. Uninstall FROM-package
6. to-postinst(configure): Install plugin and restart if need.

Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
@daipom
daipom force-pushed the deb-improve-process-timing branch from 9530ff2 to be1f3fe Compare December 11, 2024 04:54

@kenhys kenhys left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@daipom

daipom commented Dec 11, 2024

Copy link
Copy Markdown
Contributor Author

Thanks for your review!

@daipom
daipom merged commit 262d113 into fluent:feature-nodowntime Dec 11, 2024
@daipom
daipom deleted the deb-improve-process-timing branch December 11, 2024 06:01
kenhys pushed a commit that referenced this pull request Dec 11, 2024
Points

* FROM-package just leaves tmp files if it supports the features.
* TO-package trigger the features if there are those tmp files.
* Thus, we don't need to check the version.
* Make installing plugin and restarting the same condition.

Before

1. from-prerm(upgrade): Do nothing.
2. to-preinst(upgrade): Collect plugin-list. Confirm version.
3. Install TO-package
4. from-postrm(upgrade): Do nothing.
5. Uninstall FROM-package
6. to-postinst(configure): Install plugin and restart if need.

After

1. from-prerm(upgrade):
   * Check auto or not.
   * Leave plugin-list and pid if need.
2. to-preinst(upgrade): Set tmp files for TO-package.
3. Install TO-package
4. from-postrm(upgrade): Clean tmp files of FROM-package.
5. Uninstall FROM-package
6. to-postinst(configure): Install plugin and restart if need.

Signed-off-by: Daijiro Fukuda <fukuda@clear-code.com>
@kenhys kenhys added this to the 5.2.0 milestone Dec 12, 2024
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