Skip to content

Replace error with warning for unmapped instance folders#82

Merged
ehennestad merged 11 commits intomainfrom
hotfix-instance-library-breaks
Mar 26, 2026
Merged

Replace error with warning for unmapped instance folders#82
ehennestad merged 11 commits intomainfrom
hotfix-instance-library-breaks

Conversation

@ehennestad
Copy link
Copy Markdown
Collaborator

Fix issue #81

Replace a hard error for unimplemented instance folder names with a warning that is emitted only once per unique folder name. Introduces a containers.Map (hasWarned) to track which folder names have already triggered the warning and uses the identifier 'OPENMINDS:InstanceLibrary:createInstanceTable:MissingTypeMapping'. This avoids aborting execution for unmapped folders while preventing repeated duplicate warnings.

Remove concatenation of structs. Structs might have different fields, and the concatenation would fail. Only need name and potentially label, so explicitly get these instead of relying on struct concatenation
Replace a hard error for unimplemented instance folder names with a warning that is emitted only once per unique folder name. Introduces a containers.Map (hasWarned) to track which folder names have already triggered the warning and uses the identifier 'OPENMINDS:InstanceLibrary:createInstanceTable:MissingTypeMapping'. This avoids aborting execution for unmapped folders while preventing repeated duplicate warnings.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 26, 2026

Test Results (R2021b)

568 tests  ±0   568 ✅ ±0   1m 29s ⏱️ -1s
 16 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 62b5c51. ± Comparison against base commit 048b729.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
testReadTheDocLinks ‑ testSchemaDocLinkUBERONParcellation
testReadTheDocLinks ‑ testSchemaDocLinkBiologicalSex

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 26, 2026

Test Results (R2024b)

568 tests  ±0   568 ✅ ±0   1m 29s ⏱️ -1s
 16 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 62b5c51. ± Comparison against base commit 048b729.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
testReadTheDocLinks ‑ testSchemaDocLinkUBERONParcellation
testReadTheDocLinks ‑ testSchemaDocLinkBiologicalSex

♻️ This comment has been updated with latest results.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.78%. Comparing base (048b729) to head (62b5c51).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #82      +/-   ##
==========================================
+ Coverage   75.73%   75.78%   +0.04%     
==========================================
  Files         349      349              
  Lines        3734     3741       +7     
==========================================
+ Hits         2828     2835       +7     
  Misses        906      906              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ehennestad ehennestad merged commit efd54e2 into main Mar 26, 2026
8 checks passed
@ehennestad ehennestad mentioned this pull request Mar 26, 2026
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.

1 participant