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

Big refactor #12

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Big refactor #12

merged 2 commits into from
Feb 20, 2024

Conversation

jagedn
Copy link
Collaborator

@jagedn jagedn commented Feb 17, 2024

This is a refactor of the current project due we're mixing API lib + custom http

It removes lot of comments and unnecessary (by the moment) code

  • use java library
  • remove non used code and config

- use java library
- remove non used code and config

Signed-off-by: Jorge Aguilera <jagedn@gmail.com>
@jagedn
Copy link
Collaborator Author

jagedn commented Feb 17, 2024

I would like to include more tests in order to cover specific situations

by the moment I've included an unique test to run a "full pipeline" using a mockWebServer

@tomiles
Copy link
Collaborator

tomiles commented Feb 18, 2024

@jagedn very nice refactor 👍 looking much more readable now.
Made just one remark on the storage/volume stuff above, but we can handle that with a separate PR once we can test on a more production like nomad cluster.

Copy link
Member

@abhi18av abhi18av left a comment

Choose a reason for hiding this comment

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

Hi Jorge,

Thanks for this big "merge" PR - the codebase does look much better!

I have made some minor comments and requests, but we can also address them in a later PR as well.

Note to future readers:

  1. We've made the decision to still explore the OpenAPI spec generated Java SDK
  2. The library we're using is published here on Clojars https://clojars.org/org.clojars.abhi18av/nomad-client-java

* @author Jorge Aguilera <jagedn@gmail.com>
*/

class MockScriptRunner extends ScriptRunner {
Copy link
Member

Choose a reason for hiding this comment

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

@jagedn , for future - I think that it'd be great to have some latency option within the mock server given that the real-world cluster network might not be reliable. What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, good idea

with mock server we can simulate lot of responses and test all this kind of situations

Signed-off-by: Jorge Aguilera <jagedn@gmail.com>
@abhi18av abhi18av linked an issue Feb 20, 2024 that may be closed by this pull request
16 tasks
@abhi18av abhi18av removed a link to an issue Feb 20, 2024
16 tasks
@jagedn jagedn merged commit 710c207 into master Feb 20, 2024
@jagedn jagedn deleted the refactor branch February 20, 2024 07:25
@jagedn jagedn restored the refactor branch July 2, 2024 14:32
@jagedn jagedn deleted the refactor branch July 2, 2024 14:33
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.

3 participants