Skip to content

Update weaver to 0.10.0#1823

Merged
kubukoz merged 1 commit intodisneystreaming:series/0.18from
majk-p:update/weaver-0.10.0
Sep 1, 2025
Merged

Update weaver to 0.10.0#1823
kubukoz merged 1 commit intodisneystreaming:series/0.18from
majk-p:update/weaver-0.10.0

Conversation

@majk-p
Copy link
Contributor

@majk-p majk-p commented Sep 1, 2025

This is prerequisite to #1821, so that the changeset for moving to new Scala Native is minimal

Comment on lines +443 to +444
val missingHeadersMessage =
s"Expected to find all of $expectedHeaders inside of $headers"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This extraction helps avoid false positive error that started happening after updating weaver:

[info] [tests] compiling 5 Scala sources to /home/majk/Code/personal/smithy4s/modules/tests/target/jvm-2.13/classes ...
[error] [tests] /home/majk/code/smithy4s/modules/tests/src/smithy4s/tests/PizzaSpec.scala:432:15: possible missing interpolator: detected interpolated identifiers `$expectedHeaders`, `$headers`
[error] [tests]       } yield {
[error] [tests]               ^
[info] [bootstrapped] compiling 1 Scala source to /home/majk/code/smithy4s/modules/bootstrapped/target/jvm-2.13/classes ...
[error] [tests] No warnings can be incurred under -Werror.
[error] [tests] two errors found
[error] [tests] (tests / Compile / compileIncremental) Compilation failed

Copy link
Member

Choose a reason for hiding this comment

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

I thought we had it fixed in typelevel/weaver-test#179 :( (I guess we all did)

filter match {

case atLine(`suiteName`, line) => { case TestName(_, indicator, _) =>
indicator.line == line
Copy link
Contributor Author

Choose a reason for hiding this comment

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

line in SourceLocation is no longer available in weaver, the field was not intended for end user API. The atLine was not used anyway so I dropped it altogether

@majk-p majk-p mentioned this pull request Sep 1, 2025
5 tasks
@majk-p majk-p force-pushed the update/weaver-0.10.0 branch from f40daff to df40c6c Compare September 1, 2025 14:20
@kubukoz kubukoz merged commit 9023bac into disneystreaming:series/0.18 Sep 1, 2025
10 checks passed
@kubukoz
Copy link
Member

kubukoz commented Sep 1, 2025

I don't understand why f40daff didn't work and df40c6c does - the former had all the commits except #1822, and EventHeader has been in smithy's prelude for literal ages (at least 6 years, long before smithy4s was a thing).

There must've been some ungodly event that resulted in the file randomly not being packaged into the jar. [core] compiling 328 Scala sources appears in both the failing and successful jobs.

There were no prior CI executions for this PR or branch, so it wasn't cache pollution either. I have no clue.

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.

3 participants