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

tests/coredump-options: test core dump generation #14549

Merged

Conversation

alfonsosanchezbeato
Copy link
Member

The needed changes in the base are now in edge and beta core24 channels: make sure we are generating the core dumps.

Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.95%. Comparing base (ac897ee) to head (6436a61).
Report is 115 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #14549      +/-   ##
==========================================
+ Coverage   78.85%   78.95%   +0.10%     
==========================================
  Files        1079     1084       +5     
  Lines      145615   146638    +1023     
==========================================
+ Hits       114828   115783     +955     
- Misses      23601    23657      +56     
- Partials     7186     7198      +12     
Flag Coverage Δ
unittests 78.95% <ø> (+0.10%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

else
BASE=core"$VERSION_ID"
sed -i "s/##BASE##/$BASE/" core-dump-snap/meta/snap.yaml
sed -i "s/##BASE##/$BASE/" "$core_dump_d"/meta/snap.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

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

is has to be reverted during restore

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, what I've done now is to copy inside the test folder before modifying.

Copy link
Collaborator

@sergiocazzolato sergiocazzolato left a comment

Choose a reason for hiding this comment

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

Minor comments inline

Copy link
Member

@Meulengracht Meulengracht left a comment

Choose a reason for hiding this comment

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

+1 but agree with sergio's comments

The needed changes in the base are now in edge and beta core24
channels: make sure we are generating the core dumps. Also, reuse snap
we have used in a similar test in the past.
Copy link
Member Author

@alfonsosanchezbeato alfonsosanchezbeato left a comment

Choose a reason for hiding this comment

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

Thanks for the reviews, I've addressed the comments now

else
BASE=core"$VERSION_ID"
sed -i "s/##BASE##/$BASE/" core-dump-snap/meta/snap.yaml
sed -i "s/##BASE##/$BASE/" "$core_dump_d"/meta/snap.yaml
Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, what I've done now is to copy inside the test folder before modifying.

tests/core/coredump-options/task.yaml Show resolved Hide resolved
Copy link
Collaborator

@sergiocazzolato sergiocazzolato left a comment

Choose a reason for hiding this comment

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

Thanks

@alfonsosanchezbeato alfonsosanchezbeato merged commit 31eebad into canonical:master Oct 21, 2024
52 of 58 checks passed
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