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

feat: use export annotation #1117

Merged
merged 1 commit into from
Mar 22, 2024
Merged

Conversation

worstell
Copy link
Contributor

@worstell worstell commented Mar 21, 2024

  • Go: Replaces ftl:verb and ftl:enum with ftl:export, removes ftl:module <name> annotation
  • Kotlin: Replaces @Verb with @Export
  • Updates runtime schema extractors to pull standalone data decls annotated with export

Design here: https://hackmd.io/i5COidF3SEynCab8VcJwng

fixes #1114

@worstell worstell force-pushed the worstell/20240320-use-export-directive branch from f77ce4e to 08cf1cc Compare March 21, 2024 05:54
@alecthomas alecthomas mentioned this pull request Mar 21, 2024
worstell added a commit that referenced this pull request Mar 21, 2024
sort of testing a hypothesis, but i suspect the build cache needs to be
rebuilt against [this](#1117)
branch in order for
[this](https://github.com/TBD54566975/ftl/actions/runs/8370343139/job/22939654513)
to pass

if this fixes the problem, we should probably figure out a better
approach to ensuring the kotlin-runtime JAR is up-to-date with the local
Kotlin when running Go tests, now that Go tests also exercise Kotlin
code
@worstell worstell force-pushed the worstell/20240320-use-export-directive branch 3 times, most recently from c3451a8 to dda78bf Compare March 21, 2024 16:27
@@ -30,6 +30,9 @@ jobs:
uses: cashapp/activate-hermit@v1
- name: Build Cache
uses: ./.github/actions/build-cache
# TODO: remove, testing this
- name: Build Kotlin
run: just build-kt-runtime
Copy link
Contributor Author

Choose a reason for hiding this comment

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

there's an issue with caching happening; Test Go fails without this step because buildengine exercises Kotlin code in the Go tests now. the cached build uses a kotlin-runtime version that's missing the necessary local changes from this PR

Copy link
Collaborator

Choose a reason for hiding this comment

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

As we discussed, this should stay here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm actually surprised the ftl development build didn't do this automatically.

- Go: Replaces `ftl:verb` and `ftl:enum` with `ftl:export`
- Kotlin: Replaces `@Verb` with `@Export`
- Updates runtime schema extractors to pull standalone data decls annotated with `export`

Design here: https://hackmd.io/i5COidF3SEynCab8VcJwng

fixes #1114
@worstell worstell force-pushed the worstell/20240320-use-export-directive branch from dda78bf to 65f7564 Compare March 22, 2024 02:04
@worstell worstell merged commit 6712969 into main Mar 22, 2024
11 checks passed
@worstell worstell deleted the worstell/20240320-use-export-directive branch March 22, 2024 02:08
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.

transition to ftl:export and allow exporting data types discretely
2 participants