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

[RHELC-760] Increase the line length in a pseudo-terminal #624

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

bocekm
Copy link
Member

@bocekm bocekm commented Oct 7, 2022

The name of the rpm we download during a package backup can be so long that the length of the line of 120 characters we set in the pseudo-terminal may not be sufficient. If the downloaded package file name (NEVRA.rpm) is too long, the yumdownloader truncates it and then our output parsing fails. That leads to not tracking the downloaded package and, more importantly, not installing the package back during a rollback.

Real world example of a truncated rpm name:
libvirt-daemon-driver-storage-core-8.0.0-5.4.0.1.module+el8.6.0+20743+999ad699.x86_64.r 326 kB/s | 253 kB     00:00

Jira Issue: RHELC-760

Checklist

  • PR meets acceptance criteria specified in the Jira issue
  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending

The name of the rpm we download during a package backup can be so long
that the length of the line of 120 characters we set in the pseudo-terminal
may not be sufficient.

Real world example of a truncated rpm name:
libvirt-daemon-driver-storage-core-8.0.0-5.4.0.1.module+el8.6.0+20743+999ad699.x86_64.r 326 kB/s | 253 kB     00:00
@codecov
Copy link

codecov bot commented Oct 7, 2022

Codecov Report

Base: 91.51% // Head: 91.51% // No change to project coverage 👍

Coverage data is based on head (d6a77ec) compared to base (ba02486).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #624   +/-   ##
=======================================
  Coverage   91.51%   91.51%           
=======================================
  Files          18       18           
  Lines        2723     2723           
  Branches      492      492           
=======================================
  Hits         2492     2492           
  Misses        172      172           
  Partials       59       59           
Flag Coverage Δ
centos-linux-6 89.23% <100.00%> (ø)
centos-linux-7 88.90% <100.00%> (ø)
centos-linux-8 89.08% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
convert2rhel/utils.py 84.16% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Venefilyn
Copy link
Member

This seems like a bug fix so I would still create a Jira issue for it. @bocekm could you create one for Q4 with Story point of 1 in that case?

It relates to the codebase in some way so it is always good to document what we've done

Copy link
Member

@r0x0d r0x0d left a comment

Choose a reason for hiding this comment

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

LGTM, approved and ready to be merged after the Jira issue is created, and the PR updated accordingly.

@bocekm bocekm changed the title Increase the line length in a pseudo-terminal [RHELC-760] Increase the line length in a pseudo-terminal Oct 13, 2022
@bocekm bocekm merged commit fc884a6 into oamg:main Oct 13, 2022
@Venefilyn Venefilyn mentioned this pull request Nov 30, 2022
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