-
Notifications
You must be signed in to change notification settings - Fork 6
Fix DagsterInvalidConfigError in translate_metadata_submission_to_nmdc_schema_database test #1067
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
base: main
Are you sure you want to change the base?
Conversation
|
I want @copilot to "un-skip" the test, and then run the tests (which can be done via GHA). That way, my teammates and I can see (a) whether the test still fails and, if so, (b) what the error message says. |
…_schema_database test Co-authored-by: eecavanna <134325062+eecavanna@users.noreply.github.com>
translate_metadata_submission_to_nmdc_schema_database() Test failing with DagsterInvalidConfigError
The test has already been "un-skipped" - I removed the |
|
@copilot made changes on this branch. The GHA workflow that runs the tests is now failing on this branch. I want @copilot to undo the changes it has made on this branch—except I still want the previously-skipped test to run—and then run the GHA workflow so we can see the initial behavior as a baseline. |
…e test failure Co-authored-by: eecavanna <134325062+eecavanna@users.noreply.github.com>
I've reverted all my changes to the original state except for removing the |
|
All the tests passed in the latest commit. I want @copilot to update the PR description accordingly. |
The test
test_translate_metadata_submission_to_nmdc_schema_database()was failing with aDagsterInvalidConfigErrordue to incorrect configuration structure. The test was trying to pass parameters as "inputs" when they should be "config" values.Changes Made
1. Updated
get_submission_portal_pipeline_inputsopconfig_schemawith properFielddefinitions for all parameterscontext: OpExecutionContextonlycontext.op_configBefore:
After:
2. Updated
translate_portal_submission_to_nmdc_schema_databaseopconfig_schemaforstudy_categoryandstudy_pi_image_urlparameterscontext.op_config3. Fixed test configuration
"inputs"to"config"for both ops@pytest.mark.xfaildecorator to allow test to runBefore:
After:
Root Cause
The
DagsterInvalidConfigErrorwas occurring because:config_schemadefinitions for op configurationTesting
Field,Noneable,OpExecutionContext)Fixes #472.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.