Skip to content

Fix plugin loading not triggering on server startup #1087

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

Merged
merged 4 commits into from
Apr 5, 2025
Merged

Conversation

BenjaminCharmes
Copy link
Contributor

@BenjaminCharmes BenjaminCharmes commented Apr 3, 2025

Closes #1084

insitu-nmr plugin is correctly loaded on server startup.
Updates plugin name in resources.js and NMRInsituBlock.vue

[WIP]:

  • Need to understand why these changes make tests failed

@BenjaminCharmes BenjaminCharmes changed the title [WIP] Insitu load Fix insitu-nmr plugin loading Apr 3, 2025
@BenjaminCharmes BenjaminCharmes changed the title Fix insitu-nmr plugin loading [WIP] Fix insitu-nmr plugin loading Apr 3, 2025
Copy link

codecov bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.28%. Comparing base (24569ca) to head (112a2ab).
Report is 119 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1087      +/-   ##
==========================================
+ Coverage   70.25%   70.28%   +0.02%     
==========================================
  Files          63       63              
  Lines        4129     4129              
==========================================
+ Hits         2901     2902       +1     
+ Misses       1228     1227       -1     
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/blocks/__init__.py 96.15% <100.00%> (+3.84%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ml-evs
Copy link
Member

ml-evs commented Apr 5, 2025

Found the issue with the tests! The docker container does not have setuptools installed, whereas all our local environments and presumably the CI have it installed by default, so I've added it as a runtime dependency too.

@ml-evs ml-evs changed the title [WIP] Fix insitu-nmr plugin loading Fix plugin loading on server startup Apr 5, 2025
@ml-evs ml-evs changed the title Fix plugin loading on server startup Fix plugin loading not triggering on server startup Apr 5, 2025
@ml-evs ml-evs marked this pull request as ready for review April 5, 2025 11:23
@ml-evs ml-evs requested a review from jdbocarsly as a code owner April 5, 2025 11:23
BenjaminCharmes and others added 4 commits April 5, 2025 12:23
Remove warning when block already loaded

Remove warning when block already loaded

Re-add warning when block already loaded

Always add every loaded plugin to block_plugins
Copy link

cypress bot commented Apr 5, 2025

datalab    Run #3044

Run Properties:  status check passed Passed #3044  •  git commit 5bf1368a2c ℹ️: Merge 112a2ab06fb4f51eef6994725d2964a88a85beb8 into 24569caff3f1ebe9ef3aa7ef985d...
Project datalab
Branch Review bc/insitu-load
Run status status check passed Passed #3044
Run duration 08m 29s
Commit git commit 5bf1368a2c ℹ️: Merge 112a2ab06fb4f51eef6994725d2964a88a85beb8 into 24569caff3f1ebe9ef3aa7ef985d...
Committer Ben Charmes
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 471
View all changes introduced in this branch ↗︎

@ml-evs ml-evs merged commit ec17516 into main Apr 5, 2025
17 checks passed
@ml-evs ml-evs deleted the bc/insitu-load branch April 5, 2025 12:03
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.

In situ block not loaded correctly/at all
2 participants