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

#49 Added export_slc_async fixture #50

Merged
merged 26 commits into from
Aug 29, 2024
Merged

Conversation

ahsimb
Copy link
Contributor

@ahsimb ahsimb commented Aug 23, 2024

closes #49

@ahsimb ahsimb added the feature Product feature label Aug 23, 2024
@ahsimb ahsimb self-assigned this Aug 23, 2024

return func
language_alias=slc_builder.language_alias)
deployer.run(container_file=export_slc, alter_system=True, allow_override=True)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question is do we need to clean up. Meaning removing the the slc and resetting the language definitions for the system. And maybe we actually want to use the file name we get from export_slc for the filename in the bucketfs. I am actually not sure if the deployer does support this at moment. However, if we do it we could cache the uploaded file.

Copy link
Collaborator

Choose a reason for hiding this comment

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

And, another question, do we wait here for the upload?

Copy link
Contributor Author

@ahsimb ahsimb Aug 29, 2024

Choose a reason for hiding this comment

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

At the moment the deployer doesn't support the cleanup. There is a ticket for that.

Yes, uploading the container is a blocking operation.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, so the cleanup is something we can improve later


The operation will be skipped if none of the backends is in use.
"""
if (not (use_onprem or use_saas)) or (slc_builder is None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe it makes also sense to add a cli option to enable building specifically also when no backend is enabled for tests that only inspect the tar archive. But, I think we can add this also later, when we see the need for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with the last statement :). We do need to test the container building and uploading, but the code for that is in the python-extension-common. We cannot use this plugin there as it would create a circular reference.

Copy link
Collaborator

Choose a reason for hiding this comment

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

PEC needs to test some general things. I meant more, if a extension needs add special things to the language container and wants to check if they are where they should be. But as we agree we can figure that out later.

@ahsimb ahsimb merged commit 6b70d66 into main Aug 29, 2024
1 check passed
@ahsimb ahsimb deleted the feature/49-slc-export-deploy branch August 29, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Product feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create export and upload fixture in the SLC plugin
2 participants