Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-FileCopyrightText: 2026 Xquik Contributors
# SPDX-License-Identifier: Apache-2.0

* @kriptoburak @furkanerday
5 changes: 5 additions & 0 deletions buildSrc/src/main/kotlin/x-twitter-scraper.java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ tasks.withType<JavaCompile>().configureEach {
options.release.set(8)
}

tasks.named<JavaCompile>("compileTestJava") {
// Tests use Java 26 dependencies and never enter published artifacts.
options.release.set(26)
}

tasks.withType<Zip>().configureEach {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.JvmDefaultMode
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("x-twitter-scraper.java")
Expand Down Expand Up @@ -42,6 +43,13 @@ tasks.withType<Test>().configureEach {
inputs.property("skipMockTests", System.getenv("SKIP_MOCK_TESTS")).optional(true)
}

tasks.named<KotlinCompile>("compileTestKotlin") {
compilerOptions {
freeCompilerArgs.set(emptyList())
jvmTarget.set(JvmTarget.JVM_26)
}
}

val ktfmt = configurations.create("ktfmt")
dependencies {
ktfmt("com.facebook:ktfmt:0.64")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-FileCopyrightText: 2026 Xquik contributors
//
// SPDX-License-Identifier: Apache-2.0

package com.x_twitter_scraper.api.core.http;

import com.code_intelligence.jazzer.api.FuzzedDataProvider;

final class RetryAfterFuzzInput {

private RetryAfterFuzzInput() {}

static String consume(FuzzedDataProvider data) {
return data.consumeRemainingAsString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class RetryAfterFuzzTest {

@FuzzTest(maxDuration = "30s")
fun retryAfterDelayRemainsBounded(data: FuzzedDataProvider) {
val retryAfter = data.consumeRemainingAsString()
val retryAfter = RetryAfterFuzzInput.consume(data)
val sleeper = RecordingRetrySleeper()
val transport =
SequenceHttpClient(
Expand Down