Skip to content

Conversation

@github-actions
Copy link
Contributor

No description provided.

sdimitro and others added 5 commits September 25, 2020 15:08
There was recent work in drgn where all the helpers were annotated
with types. With that work in place we no longer need to allow
untyped calls.
As we know, drgn type equality does not work right, so we need to
compare canonicalized type names. When combined with openzfs/zfs#10236,
`zfs_dbgmsg` now works on ztest core dumps.

Serapheim Note:
With drgn changing its type rules once again this commit is now needed
for existing tests to not fail.
drgn recently updated its error messages when it comes to page
table lookups to match the latest terminology used by the kernel.
In the past we used to assume lazy type rules from drgn and printing
an anonymous union or struct from its typedef just worked.
Unfortunately, with the latest updates for types in drgn, this no
longer works so part of this commit removes the expectation of
this functionality from our tests. We may want to introduce this
functionality again in the future implemented in a different way.
Fortunately, these kind of types are rare.

The second part of this commit improves the error handling of
looking up types.
Fix Regression Failures; Type Error Handling Improvements; Strict Type Checking Updates
@codecov-io
Copy link

codecov-io commented Oct 13, 2020

Codecov Report

Merging #251 (f0aa360) into 6.0/stage (76813d8) will decrease coverage by 0.00%.
The diff coverage is 89.28%.

Impacted file tree graph

@@              Coverage Diff              @@
##           6.0/stage     #251      +/-   ##
=============================================
- Coverage      87.38%   87.37%   -0.01%     
=============================================
  Files             60       60              
  Lines           2473     2496      +23     
=============================================
+ Hits            2161     2181      +20     
- Misses           312      315       +3     
Impacted Files Coverage Δ
sdb/commands/ptype.py 100.00% <ø> (ø)
sdb/commands/threads.py 96.42% <87.50%> (-3.58%) ⬇️
sdb/commands/internal/util.py 90.24% <88.88%> (-2.07%) ⬇️
sdb/command.py 73.57% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76813d8...f0aa360. Read the comment docs.

@prakashsurya prakashsurya requested a review from sdimitro October 19, 2020 17:59
@sdimitro sdimitro merged commit 4db2c40 into 6.0/stage Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants