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

#174 - FSes that are only transitively referenced cannot be serialized (#179) #182

Conversation

reckart
Copy link
Member

@reckart reckart commented Aug 18, 2021

  • Initial fix did only work for the first fs without xmiID, but as soon as there would be two FSes with missing ids, it broke
  • Extended the test
  • Implemented an alternative fix that optionally sets the missing IDs while scanning the CAS for FSes thus also avoiding scanning the CAS twice during serialization

#179)

- Initial fix did only work for the first fs without xmiID, but as soon as there would be two FSes with missing ids, it broke
- Extended the test
- Implemented an alternative fix that optionally sets the missing IDs while scanning the CAS for FSes thus also avoiding scanning the CAS twice during serialization
@reckart reckart added this to the 0.6.0 milestone Aug 18, 2021
@reckart reckart self-assigned this Aug 18, 2021
#179)

- Only generate new ID if ID is actually missing
@codecov
Copy link

codecov bot commented Aug 18, 2021

Codecov Report

Merging #182 (9caa301) into main (9cdbd73) will increase coverage by 0.02%.
The diff coverage is 95.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #182      +/-   ##
==========================================
+ Coverage   97.37%   97.39%   +0.02%     
==========================================
  Files           9        9              
  Lines        1940     1955      +15     
==========================================
+ Hits         1889     1904      +15     
  Misses         51       51              
Impacted Files Coverage Δ
cassis/xmi.py 96.47% <ø> (-0.04%) ⬇️
cassis/cas.py 96.83% <90.00%> (+0.09%) ⬆️
tests/test_cas.py 100.00% <100.00%> (ø)
tests/test_xmi.py 100.00% <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 9cdbd73...9caa301. Read the comment docs.

#179)

- Turn on ID generation during FS scan in general because the FS scan internally uses a map in which the ID is the key and if the IDs are not uniquely generated, then the result of the method is incomplete.
- Add consistency checks fo _find_all_fs to detect e.g. duplicate FS IDs
- Fixed a test which introduced a duplicate FS ID
@reckart reckart merged commit 50fcd66 into main Aug 18, 2021
@reckart reckart deleted the bugfix/174-FSes-that-are-only-transitively-referenced-cannot-be-serialized branch August 18, 2021 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant