Skip to content

Conversation

@isc-jlechtne
Copy link
Collaborator

@isc-jlechtne isc-jlechtne commented Oct 10, 2025

This PR addresses #935

This is for creating a new generic resource processor to cover bundling an artifact with a package and deploying it to a final location on install.

Behavior on packaging:

  • Always attempts to download the artifact.
  • Artifact untarred and moved to a location under the module root

Behavior on activation:

  • Check if artifact files exist under the module root. If they don't, download and move them there (as in packaging)
  • With untarred files under module root, move them to their final deployed location. This location is specified by DeployDirectory or DevDirectory if defined and installed in dev mode.

Copy link
Collaborator

@isc-dchui isc-dchui left a comment

Choose a reason for hiding this comment

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

@isc-jlechtne Left a few comments/thoughts!

Copy link
Collaborator

@isc-eneil isc-eneil left a comment

Choose a reason for hiding this comment

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

Left my first round of comments @isc-jlechtne. Looks pretty good to me!

@isc-eneil
Copy link
Collaborator

One more note @isc-jlechtne: this could use some integration tests (not sure how you'd obscure Arti credentials so may be a bit tricky)

Copy link
Collaborator

@isc-kiyer isc-kiyer left a comment

Choose a reason for hiding this comment

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

@isc-jlechtne This is a good draft of migrating over stuff from AngularArtifact but its not yet generic for any IPM consumer (need to get out of the lens of just our use case). We can chat about it offline if you want but in its current state, this is not generally usable for pulling any arbitrary artifact from Artifactory.

Copy link
Collaborator

@isc-dchui isc-dchui left a comment

Choose a reason for hiding this comment

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

Just a few questions

Copy link
Collaborator

@isc-kiyer isc-kiyer left a comment

Choose a reason for hiding this comment

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

@isc-jlechtne few comments up but general logic looks good!

@isc-eneil
Copy link
Collaborator

Took a look-- no comments beyond those that Keshav already provided regarding using environment variables over params. Looks good! @isc-jlechtne

Copy link
Collaborator

@isc-kiyer isc-kiyer left a comment

Choose a reason for hiding this comment

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

@isc-jlechtne Looks good! Last few minor comments. We need some tests for this though so any thought as to how to add those?

@isc-jlechtne
Copy link
Collaborator Author

@isc-jlechtne Looks good! Last few minor comments. We need some tests for this though so any thought as to how to add those?

@isc-kiyer I talked with @isc-eneil yesterday and she volunteered to take on writing the tests to better swarm on this. How to write the tests without exposing credentials required for the tests, however, is something both of us did not have an initial answer for.

Copy link
Collaborator

@isc-dchui isc-dchui left a comment

Choose a reason for hiding this comment

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

Looks good, just one more thing!

Copy link
Collaborator

@isc-kiyer isc-kiyer left a comment

Choose a reason for hiding this comment

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

@isc-jlechtne few minor comments. Also, I think it would be good to work with @isc-dchui to figure out the tarball unpacking error when using FileBinaryTar since we should use one consistent approach for unpacking/packing tarballs

Copy link
Collaborator

@isc-dchui isc-dchui left a comment

Choose a reason for hiding this comment

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

Just a few small things

isc-dchui
isc-dchui previously approved these changes Oct 30, 2025
isc-eneil
isc-eneil previously approved these changes Oct 31, 2025
Copy link
Collaborator

@isc-eneil isc-eneil left a comment

Choose a reason for hiding this comment

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

@isc-jlechtne Approved assuming the very small nits are addressed.

@isc-jlechtne isc-jlechtne merged commit 1dde4ef into main Oct 31, 2025
12 checks passed
@isc-jlechtne isc-jlechtne deleted the general-artifactory-processor branch October 31, 2025 16:34
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.

6 participants