The GitHub Actions job "Publish nightly snapshots and documentation" on 
pekko-http.git/main has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).

Head commit for run:
82a03b120bf436c1d48473b32aa126a264aa8120 / He-Pin(kerr) <[email protected]>
build: enable -Xfatal-warnings for Scala 2 and -Werror for Scala 3 (#1109)

* build: enable -Xfatal-warnings for Scala 2 and -Werror for Scala 3

Motivation:
Treating warnings as errors ensures that deprecated API usage and other
code quality issues are caught at compile time rather than accumulating.

Modification:
Add -Xfatal-warnings to Scala 2 scalacOptions and -Werror to Scala 3
scalacOptions in Common.scala. Remove -Wconf:cat=deprecation:s for
Scala 3 so deprecation warnings are not silenced. Exclude
-Xfatal-warnings from Compile / doc scope to avoid doc generation
failures.

Result:
All compiler warnings are now treated as errors, enforcing higher code
quality.

Tests:
- CI will verify compilation

References:
None - build configuration improvement

* fix: suppress warnings exposed by -Xfatal-warnings/-Werror

Remove unused classTag import in HttpMessage.scala.
Add -Wconf suppressions for structural type warning (Scala 2),
synchronized warning and override-deprecated warning (Scala 3).

* fix: resolve all compilation warnings for fatal-warnings build

- Remove unused imports (classTag, postfixOps, implicitConversions, 
Failure/Success/Try)
- Add -language:implicitConversions as compiler option
- Remove unused expectError method from ConnectionPoolSettingsSpec
- Add -Wconf suppressions for: structural types, shadowed names,
  parameterless method confusion, Unit-valued patterns, infer-Any,
  overloaded implicit conversions, getClass selection, deprecation,
  refutable extractors, type specialization, type erasure,
  unreachable cases, exhaustivity, and suspicious top-level calls

* style: apply scalafmt after removing imports

* fix: fix docs module -Werror duplicate flag and add more -Wconf suppressions

Move -Xfatal-warnings in docs module to Scala 2 only to avoid duplicate
-Werror flag in Scala 3. Add suppressions for unused import and dead-code
warnings in test modules.

* fix: exclude fatal-warnings from http-scalafix-rules module

The scala.meta compiler plugin used by scalafix generates warnings
(InlineInfoAttribute) that cannot be suppressed via -Wconf. Exclude
-Xfatal-warnings and -Werror from this module's scalacOptions.

Report URL: https://github.com/apache/pekko-http/actions/runs/28344644887

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to