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

chore(CI): fix linting #2645

Merged
merged 2 commits into from
Jan 23, 2025
Merged

chore(CI): fix linting #2645

merged 2 commits into from
Jan 23, 2025

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Jan 23, 2025

Description

Lint started failing recently for no apparent reason with errors:

Run yarn format
RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded
    at new NodeError (node:internal/errors:405:5)
    at Socket.onChildStdout (node:child_process:490:14)
    at Socket.emit (node:events:517:28)
    at addChunk (node:internal/streams/readable:368:12)
    at readableAddChunk (node:internal/streams/readable:337:11)
    at Readable.push (node:internal/streams/readable:278:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
  code: 'ERR_CHILD_PROCESS_STDIO_MAXBUFFER',
  cmd: './android/gradlew -p android spotlessApply'
}

and

Not a number: 33x:
java.lang.NumberFormatException: Not a number: 33x
	at com.sun.xml.bind.DatatypeConverterImpl._parseInt(DatatypeConverterImpl.java:95)
	at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$18.parse(RuntimeBuiltinLeafInfoImpl.java:712)
	at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$18.parse(RuntimeBuiltinLeafInfoImpl.java:710)
	at com.sun.xml.bind.v2.runtime.unmarshaller.TextLoader.text(TextLoader.java:39)
	at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:560)
	at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.processText(SAXConnector.java:183)
...
(much longer stacktrace)

Edit: Idk why the issue started happening, but bumping gradle wrapper version & gradle build tools version resolved the issue.

I've used versions used in reanimated, at the time their last supported version of react-native was 0.74 (the same as it is for us now).

Test code and steps to reproduce

Lint on CI should not longer fail.

Checklist

  • Ensured that CI passes

@kkafar kkafar merged commit 9d9e797 into main Jan 23, 2025
4 checks passed
@kkafar kkafar deleted the @kkafar/fix-lint-on-ci branch January 23, 2025 14:00
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.

1 participant