Skip to content

ADFA-3431: (fix) Release build broken due to missing core.cgt file#1113

Closed
Daniel-ADFA wants to merge 3 commits into
stagefrom
ADFA-3431
Closed

ADFA-3431: (fix) Release build broken due to missing core.cgt file#1113
Daniel-ADFA wants to merge 3 commits into
stagefrom
ADFA-3431

Conversation

@Daniel-ADFA
Copy link
Copy Markdown
Contributor

No description provided.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 24, 2026

Warning

Rate limit exceeded

@Daniel-ADFA has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 11 minutes and 27 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: da4ccf9d-fe1d-4907-9811-f1312527e247

📥 Commits

Reviewing files that changed from the base of the PR and between 2da2a57 and ed8bf39.

📒 Files selected for processing (1)
  • app/build.gradle.kts
📝 Walkthrough

Walkthrough

Updated asset resolution in createAssetsZip(arch: String) to try assets/<fileName> first, then rootDir/assets/release/<fileName> before failing; replaced the core.cgt.br release asset entry with an uncompressed core.cgt entry and updated its local path and URL.

Changes

Cohort / File(s) Summary
Build configuration
app/build.gradle.kts
Modified createAssetsZip(arch: String) to resolve each asset from assets/<fileName> with a fallback to rootDir/assets/release/<fileName> before throwing FileNotFoundException. Replaced core.cgt.br release asset entry with core.cgt ("assets/release/core.cgt", URL https://appdevforall.org/dev-assets/release/core.cgt, remotePath "core.cgt").

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • hal-eisen-adfa
  • jomen-adfa

Poem

🐰 I hop through Gradle's heap and field,
Two paths I check before I yield,
Compressed no more — a new core sings,
Quiet files and lighter springs,
Hooray for assets found and sealed!

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive No pull request description was provided by the author, making it impossible to evaluate relevance to the changeset. Add a description explaining the nature of the build issue, why the asset path was changed, and how the fallback mechanism resolves the problem.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: fixing a release build issue caused by a missing core.cgt file, which aligns with the changeset modifying the asset path and adding fallback logic.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ADFA-3431

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
app/build.gradle.kts (1)

546-548: Consider improving the error message to include both checked paths.

The fallback logic correctly checks both assets/<fileName> and assets/release/<fileName>. However, when both paths fail, the exception message only mentions the first path, which could be confusing during debugging.

Suggested improvement for clearer error messaging
-			val filePath = sourceDir.resolve(fileName).takeIf { it.exists() }
-				?: project.rootDir.resolve("assets/release/$fileName").takeIf { it.exists() }
-				?: throw FileNotFoundException(sourceDir.resolve(fileName).absolutePath)
+			val primaryPath = sourceDir.resolve(fileName)
+			val fallbackPath = project.rootDir.resolve("assets/release/$fileName")
+			val filePath = primaryPath.takeIf { it.exists() }
+				?: fallbackPath.takeIf { it.exists() }
+				?: throw FileNotFoundException(
+					"Asset '$fileName' not found at ${primaryPath.absolutePath} or ${fallbackPath.absolutePath}"
+				)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@app/build.gradle.kts` around lines 546 - 548, The FileNotFoundException
thrown when neither path exists only includes the primary path; update the
fallback logic that computes filePath (the expression using
sourceDir.resolve(fileName) and
project.rootDir.resolve("assets/release/$fileName")) to throw an exception that
includes both checked absolute paths (e.g., the source path and the fallback
assets/release path) so the error message clearly reports both candidates when
neither exists.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@app/build.gradle.kts`:
- Around line 546-548: The FileNotFoundException thrown when neither path exists
only includes the primary path; update the fallback logic that computes filePath
(the expression using sourceDir.resolve(fileName) and
project.rootDir.resolve("assets/release/$fileName")) to throw an exception that
includes both checked absolute paths (e.g., the source path and the fallback
assets/release path) so the error message clearly reports both candidates when
neither exists.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f96bf171-4075-4f76-af77-a9dfe69ad19a

📥 Commits

Reviewing files that changed from the base of the PR and between e2341b4 and a56534c.

📒 Files selected for processing (1)
  • app/build.gradle.kts

@hal-eisen-adfa
Copy link
Copy Markdown
Collaborator

Fixed elsewhere by Joel

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.

2 participants