8000 Add `citations` key to `metadata` schema by edan-bainglass · Pull Request #499 · aiidalab/aiidalab · GitHub
[go: up one dir, main page]

Skip to content

Add citations key to metadata schema - #499

Merged
edan-bainglass merged 6 commits into
aiidalab:mainfrom
edan-bainglass:fix-citations-handler
Apr 18, 2026
Merged

edan-bainglass merged 6 commits into
aiidalab:mainfrom
edan-bainglass:fix-citations-handler

Conversation

@edan-bainglass
@edan-bainglass edan-bainglass commented Apr 10, 2026 •
Copy link
Copy Markdown
Member

Missed in #488

Changes

  • Add citations entry to metadata schema
  • Fix typo in citations extraction from metadata
  • Fix schema URLs to upcoming 26.04.0 release

@danielhollas tests won't pass, as there is no 26.04.0 release, we need to merge and release 26.04.0. IMO, this system is far from ideal. Unclear what the rational was behind it. Let's discuss to see if it can be improved.

Note that I am still trying to figure out how to test this locally. Need to go through the docs.

@codecov
codecov Bot commented Apr 10, 2026 •
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.25%. Comparing base (29badaa) to head (4512f31).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #499      +/-   ##
==========================================
+ Coverage   72.23%   72.25%   +0.01%     
==========================================
  Files          18       18              
  Lines        1628     1629       +1     
==========================================
+ Hits         1176     1177       +1     
  Misses        452      452              
Flag Coverage Δ
py-3.12 72.25% <100.00%> (+0.01%) ⬆️
py-3.9 72.25% <100.00%> (+0.01%) ⬆️

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.

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

@danielhollas
Copy link
Copy Markdown
Contributor

@danielhollas tests won't pass, as there is no 26.04.0 release, we need to merge and release 26.04.0. IMO, this system is far from ideal. Unclear what the rational was behind it. Let's discuss to see if it can be improved.

I would like to see the tests pass here at least once before merging. For that you could point the schemas to main branch (or this branch, if there are fixes here) and then we switch just before merging? Agreed that this seems far from ideal :-)

@edan-bainglass
edan-bainglass commented Apr 16, 2026 •
Copy link
Copy Markdown
Member Author

I would like to see the tests pass here at least once before merging. For that you could point the schemas to main branch (or this branch, if there are fixes here) and then we switch just before merging? Agreed that this seems far from ideal :-)

Done! All tests pass!

Interestingly tests/test_appclass.py::test_prereleases failed on 3.12 in the first attempt - passed on a retry. Possibly flaky. Something to keep in mind (will open an issue you already did here 👍).

If no further comments, let's get this one merged (after I revert the schema references), then do a release 🙏

@danielhollas
Copy link
Copy Markdown
Contributor

#492

@edan-bainglass
Copy link
Copy Markdown
Member Author

#492

Right 👍 Linked in my comment 🙂

@edan-bainglass
Copy link
Copy Markdown
Member Author

@danielhollas ping me when you're good with this. I'll then revert the schema pointers and we merge/release 🙏

@danielhollas danielhollas left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! I'm good with this.

Before making a release, I'd like to get in a small bugfix #426. I still need to test it but otherwise should be ready to review.

@edan-bainglass
edan-bainglass force-pushed the fix-citations-handler branch from cb7bd05 to 4512f31 Compare April 17, 2026 14:56
@edan-bainglass
Copy link
Copy Markdown
Member Author

@danielhollas how about permanently pinning the schemas to main? Wouldn't this be easiest?

@danielhollas
Copy link
Copy Markdown
Contributor

@danielhollas how about permanently pinning the schemas to main? Wouldn't this be easiest?

Not a fan, because merging a problematic commit here could bring down the registry, because the version pinning that we do in aiidalab-registry would no longer work. Let's keep the version pinning as is now (i.e. pin to future version, and accept that the test will fail, and make a release). We can resolve this in the future (or switch to something completely different like pydantic schemas?). But I don't feel strongly here, do what you think is best.

@edan-bainglass
edan-bainglass commented Apr 17, 2026 •
Copy link
Copy Markdown
Member Author

Not a fan, because merging a problematic commit here could bring down the registry, because the version pinning that we do in aiidalab-registry would no longer work. Let's keep the version pinning as is now (i.e. pin to future version, and accept that the test will fail, and make a release). We can resolve this in the future (or switch to something completely different like pydantic schemas?). But I don't feel strongly here, do what you think is best.

I'll restore the future version pin. We can discuss this setup at a later time 🙂

@edan-bainglass
edan-bainglass merged commit 1f7f95b into aiidalab:main Apr 18, 2026
1 of 3 checks passed
@danielhollas
Copy link
Copy Markdown
Contributor

@danielhollas how about permanently pinning the schemas to main?

So I have a counterproposal but in a similar vein: instead of pinning to the tag, what if we pin to a specific commit? That doesn't fully resolve the chicken-and-egg problem, but I think it does make it slightly better, since then you can have a green CI within the same PR. Pinning to a commit is also inherently safer since tags are mutable and can be deleted. Obviously still not great, but perhaps a bit of an improvement? Ideally this also needs to be documented, somewhere in the code maybe? (I guess problem with json is it can't have comments?)

This was referenced May 11, 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.

2 participants

0