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

Refactor Value Entity to use codegen #8

Closed

Conversation

octonato
Copy link
Member

@octonato octonato commented May 31, 2021

Not yet to merge since docs are referencing the samples.

TODO

  • make CI build the maven project instead using current SDK snapshot
  • refactor integration test to use skeleton from codegen

Comment on lines 208 to 211
- samples-tests:
filters: # required since publish jobs have tag filters and dependencies
tags:
only: /.*/
Copy link
Member Author

Choose a reason for hiding this comment

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

may need clean-up.

Comment on lines 150 to 153
sbt publishM2
export SDK_VERSION=`sbt sdk/version | tail -n 1 | cut -c8-100`
cd samples/java-valueentity-shopping-cart
mvn -Dakkaserverless-sdk.version=$SDK_VERSION clean verify -Pit
Copy link
Member Author

Choose a reason for hiding this comment

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

Still very hacky.

It's annoying to publishM2 for each sample test.

I need to test further, but an alternative is to have job that creates a version.sbt fixing the version to some build id from CircleCI. We run publishM2 once and we run the other sample jobs using the same fixed version.

@octonato octonato force-pushed the rgc/codegen-value-entity-sample branch from 35c0afa to 1738119 Compare June 1, 2021 13:25
@octonato octonato marked this pull request as ready for review June 1, 2021 13:25
@octonato
Copy link
Member Author

octonato commented Jun 1, 2021

This is ready for review, but not for immediate merge.

Merging this will probably break the docs since it touches the example used for the Value Entity.

I will keep refactoring the other samples and will send PRs on top of this one.

@octonato
Copy link
Member Author

octonato commented Jun 1, 2021

Superseded by #10

@octonato octonato closed this Jun 1, 2021
@octonato octonato deleted the rgc/codegen-value-entity-sample branch June 1, 2021 13:34
octonato pushed a commit that referenced this pull request Jun 11, 2021
Introduces CD and depends on published codegen
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.

None yet

1 participant