-
Notifications
You must be signed in to change notification settings - Fork 0
Skip a SourceFileSet that belongs to another language #77
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
eab0f06
Skip a SourceFileSet that belongs to another language
alexander-yevsyukov bf4ba73
Bump version -> `2.0.0-SNAPSHOT.058`
alexander-yevsyukov 2007dcb
Add memory on stale compiler in integration tests after a version bump
alexander-yevsyukov 263139d
Update dependency reports
alexander-yevsyukov 3be5fac
Keep per-file lookup in UuidJavaRenderer; address review nits
alexander-yevsyukov a19c44b
Re-trigger CI to clear a flaky build-cache failure
alexander-yevsyukov a1e2a46
Bump Compiler -> `2.0.0-SNAPSHOT.057`
alexander-yevsyukov 5293eab
Update dependency reports
alexander-yevsyukov ab70f14
Update `config`
alexander-yevsyukov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
.agents/memory/project/integration-tests-stale-compiler-after-version-bump.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- | ||
| name: integration-tests-stale-compiler-after-version-bump | ||
| description: After a version bump, an incremental `integrationTest` can silently launch the OLD compiler — clean-build it. | ||
| metadata: | ||
| type: project | ||
| since: 2026-06-30 | ||
| --- | ||
|
|
||
| After bumping `compilerVersion` in `version.gradle.kts`, an **incremental** | ||
| `./gradlew integrationTest` can silently exercise the **previous** compiler | ||
| version, masking or falsely reproducing bugs. | ||
|
|
||
| The Compiler Gradle plugin records its own version in a generated resource | ||
| (`version.txt` / `META-INF/io.spine/…compiler-gradle-plugin.meta`), and | ||
| `io.spine.tools.compiler.gradle.plugin.Plugin.version` reads it to decide which | ||
| `compiler-cli-all:<version>` the consumer launches (`LaunchSpineCompiler`). That | ||
| resource is **not reliably regenerated** on an incremental build when only the | ||
| version changes, so a freshly published `…-N` plugin can still embed `…-(N-1)` | ||
| and launch the older CLI from Maven Local — even though the `…-N` `compiler-api` | ||
| / `compiler-cli-all` jars themselves contain the new bytecode. | ||
|
|
||
| **Why:** the version-bump step changes `version.gradle.kts` but the metadata | ||
| task's up-to-date check (and the build cache) may not treat that as an input, so | ||
| the stale resource survives. CI never hits this because it builds clean. | ||
|
|
||
| **How to apply:** after a version bump, verify integration with a clean build — | ||
| `./gradlew clean integrationTest --no-build-cache` — not an incremental one. To | ||
| diagnose which compiler a consumer actually launches, run | ||
| `cd tests && ./gradlew :consumer:dependencies --configuration spineCompilerRawArtifact` | ||
| and confirm the resolved `compiler-cli-all` version matches `version.gradle.kts`. | ||
| To confirm a published jar has the expected code, `javap -l -p` the bundled | ||
| `io/spine/tools/compiler/render/*.class` and compare line numbers. The compiler | ||
| runs as the `compiler-cli-all` fat jar via the CLI, not the plain api jar. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
buildSrc/src/main/kotlin/io/spine/dependency/storage/H2.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /* | ||
| * Copyright 2026, TeamDev. All rights reserved. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * https://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Redistribution and use in source and/or binary forms, with or without | ||
| * modification, must retain the above copyright notice and the following | ||
| * disclaimer. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| */ | ||
|
|
||
| package io.spine.dependency.storage | ||
|
|
||
| /** | ||
| * The H2 Database Engine — a fast, in-memory/embedded SQL database used for exercising | ||
| * the JDBC storage in tests. | ||
| * | ||
| * @see <a href="https://github.com/h2database/h2database">H2 Database Engine at GitHub</a> | ||
| * @see <a href="https://h2database.com/">H2 Database Engine site</a> | ||
| */ | ||
| @Suppress("unused", "ConstPropertyName") | ||
| object H2 { | ||
| private const val version = "2.4.240" | ||
| const val lib = "com.h2database:h2:$version" | ||
| } |
40 changes: 40 additions & 0 deletions
40
buildSrc/src/main/kotlin/io/spine/dependency/storage/Hikari.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /* | ||
| * Copyright 2026, TeamDev. All rights reserved. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * https://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Redistribution and use in source and/or binary forms, with or without | ||
| * modification, must retain the above copyright notice and the following | ||
| * disclaimer. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
| * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
| * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| */ | ||
|
|
||
| package io.spine.dependency.storage | ||
|
|
||
| /** | ||
| * HikariCP — a fast, lightweight JDBC connection pool. | ||
| * | ||
| * The JDBC storage uses it to pool database connections. | ||
| * | ||
| * @see <a href="https://github.com/brettwooldridge/HikariCP">HikariCP at GitHub</a> | ||
| */ | ||
| @Suppress("unused", "ConstPropertyName") | ||
| object Hikari { | ||
| private const val version = "7.1.0" | ||
| const val lib = "com.zaxxer:HikariCP:$version" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.