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

Constraints refactor to introduce a specific models package #68

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

abhi18av
Copy link
Member

Hi @jagedn 👋

While testing the #66 PR, I realized that we are using the Spec names quite often within the main source code, however as per Groovy best practices, maybe we should reserve that name only for tests.

With that in mind, I have refactored your PR to introduce a nextflow.nomad.models to accommodate all the utility classes which we need to model the configuration layer for the plugin.

Please let me know what do you think about the new structure overall?

image

@abhi18av abhi18av self-assigned this Jul 15, 2024
@abhi18av abhi18av requested a review from jagedn July 15, 2024 13:27
@jagedn
Copy link
Collaborator

jagedn commented Jul 15, 2024

ok, Spec is very used also in DSL terminology but you're right , better to use Spec for Spock Specification and avoid confusion

(so, do I need to cancel my PR and we continue into yours right?)

@abhi18av
Copy link
Member Author

@jagedn , no you can just merge into your branch and then delete this :)

We'll continue working on your branch and merge it finally to master

@jagedn jagedn merged commit e6d3dd3 into constraints Jul 15, 2024
2 checks passed
@jagedn jagedn deleted the constraints-refactor branch July 15, 2024 16:07
@jagedn
Copy link
Collaborator

jagedn commented Jul 15, 2024

ahhh true, your PR is against my branch

jagedn pushed a commit that referenced this pull request Jul 15, 2024
* refactor the package organization to create a separate package for models

* Refactor the test folder and add license headers
@abhi18av abhi18av linked an issue Jul 15, 2024 that may be closed by this pull request
abhi18av added a commit that referenced this pull request Jul 15, 2024
* implement ConstraintNodeSpec

Signed-off-by: Jorge Aguilera <jorge@edn.es>

* implement ConstraintAttrSpec

Signed-off-by: Jorge Aguilera <jorge@edn.es>

* Constraints refactor to introduce a specific models package (#68)

* refactor the package organization to create a separate package for models

* Refactor the test folder and add license headers

* move contraintsbuilder to model

Signed-off-by: Jorge Aguilera <jorge@edn.es>

* refactor and new "raw" dsl to include open constraints

Signed-off-by: Jorge Aguilera <jorge@edn.es>

* iterate upon the constraint config [ci skip]

* fix nomadlab typos

Signed-off-by: Jorge Aguilera <jorge@edn.es>

* use cloud cache in sun-nomadlab [ci skip]

---------

Signed-off-by: Jorge Aguilera <jorge@edn.es>
Co-authored-by: Abhinav Sharma <abhi18av@users.noreply.github.com>
Co-authored-by: Abhinav Sharma <abhi18av@gmail.com>
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.

A mini-DSL for specifying constraints and affinities
2 participants