Skip to content

Conversation

@simbo1905
Copy link
Owner

No description provided.

@openhands-ai
Copy link

openhands-ai bot commented Sep 22, 2025

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • CI
    • CI

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #50 at branch `clean-branch-20250922013948`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines +49 to +63
static void extractTestData() throws IOException {
if (!Files.exists(ZIP_FILE)) {
throw new RuntimeException("Test data ZIP file not found: " + ZIP_FILE.toAbsolutePath());
}

// Create target directory
Files.createDirectories(TARGET_SUITE_DIR.getParent());

// Extract ZIP file
try (ZipInputStream zis = new ZipInputStream(new FileInputStream(ZIP_FILE.toFile()))) {
ZipEntry entry;
while ((entry = zis.getNextEntry()) != null) {
if (!entry.isDirectory() && (entry.getName().startsWith("draft2020-12/") || entry.getName().startsWith("remotes/"))) {
Path outputPath = TARGET_SUITE_DIR.resolve(entry.getName());
Files.createDirectories(outputPath.getParent());

Choose a reason for hiding this comment

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

[P1] Fix ZIP extraction to match prefixed entries

The new extractTestData skips every entry in json-schema-test-suite-data.zip because it only processes names starting with draft2020-12/ or remotes/. The bundled ZIP actually stores files under json-schema-test-suite/draft2020-12/... (see unzip -l), so none of the entries ever match the filter. As a result, no files are extracted and the final existence check throws RuntimeException("Extraction completed but target directory not found…"), breaking JsonSchemaCheckIT. Adjust the prefix detection (e.g., strip the leading folder) so the suite is unpacked before running tests.

Useful? React with 👍 / 👎.

@simbo1905 simbo1905 merged commit b58781e into main Sep 22, 2025
2 of 4 checks passed
@simbo1905 simbo1905 deleted the clean-branch-20250922013948 branch September 22, 2025 00:50
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