Skip to content

Conversation

magnusbaeck
Copy link
Member

@magnusbaeck magnusbaeck commented Jul 24, 2021

Applicable Issues

Fixes #258

Description of the Change

The data.image member of EiffelEnvironmentDefinedEvent is ambiguous and doesn't keep the Eiffel DAG together even though the entities described in its values can certainly be described with Eiffel events. Mark the member as discouraged and add a new RUNTIME_ENVIRONMENT link type that can link to ArtC or CD. The target events can e.g. describe Docker or VM images, JVM distribution archives, or compositions of operating system packages installed on the host.

Alternate Designs

The issue suggests the link type name IMAGE, but that's too specific and isn't a good fit for compositions of packages. I'm not terribly happy with RUNTIME_ENVIRONMENT either but it's the best I came up with.

Benefits

Environments can use the Eiffel DAG. This makes the environment definition less ambiguous and more expressive.

Possible Drawbacks

None.

Sign-off

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or

(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or

(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.

(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

Signed-off-by: Magnus Bäck <[email protected]>

@e-backmark-ericsson
Copy link
Member

Sounds reasonable. Need some more time to digest the idea though, and to review the PR.

t-persson
t-persson previously approved these changes Aug 10, 2021
Copy link
Contributor

@t-persson t-persson left a comment

Choose a reason for hiding this comment

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

I approve this from my side, but we still have to wait for @e-backmark-ericsson and co to digest and approve this (i.e. do not merge :) )

The data.image member of EiffelEnvironmentDefinedEvent is ambiguous and
doesn't keep the Eiffel DAG together even though the entities described
in its values can certainly be described with Eiffel events. Discourage
from use of that member and add a new RUNTIME_ENVIRONMENT link type that
can link to ArtC or CD. The target events can e.g. describe Docker or
VM images, JVM distribution archives, or compositions of operating
system packages installed on the host.
@magnusbaeck magnusbaeck changed the title ED: Replace data.image with RUNTIME_ENVIRONMENT link type ED: Complement data.image with RUNTIME_ENVIRONMENT link type Sep 7, 2021
@magnusbaeck
Copy link
Member Author

@t-persson @e-backmark-ericsson @m-linner-ericsson
I've updated this PR after our discussions last week to soften the language and not deprecate data.image, just discourage its use.

@t-persson
Copy link
Contributor

This is okay for me.

Copy link
Member

@m-linner-ericsson m-linner-ericsson left a comment

Choose a reason for hiding this comment

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

Sounds like what we talked about in the TC meeting. @e-backmark-ericsson: Do you agree?

@magnusbaeck magnusbaeck merged commit 6ffca23 into eiffel-community:master Sep 16, 2021
@magnusbaeck magnusbaeck deleted the runtime-env branch September 16, 2021 13:56
e-backmark-ericsson pushed a commit to e-backmark-ericsson/eiffel that referenced this pull request Apr 13, 2022
…community#264)

The data.image member of EiffelEnvironmentDefinedEvent is ambiguous and
doesn't keep the Eiffel DAG together even though the entities described
in its values can certainly be described with Eiffel events. Discourage
from use of that member and add a new RUNTIME_ENVIRONMENT link type that
can link to ArtC or CD. The target events can e.g. describe Docker or
VM images, JVM distribution archives, or compositions of operating
system packages installed on the host.
@magnusbaeck magnusbaeck added the protocol All protocol changes label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

protocol All protocol changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace EnvironmentDefined's data.image with new link type

4 participants