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

Fix #383 - serializer now skips fields with null value secrets #386

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

pawelprazak
Copy link
Collaborator

@pawelprazak pawelprazak commented Feb 10, 2024

Fixes #383

The actual fix done by @lbialy

@pawelprazak pawelprazak changed the title Attempt to fix #383 Fix #383 - serializer now skips fields with null value secrets Feb 14, 2024
@pawelprazak pawelprazak marked this pull request as ready for review February 14, 2024 08:53
@pawelprazak pawelprazak force-pushed the pprazak/fix-383 branch 4 times, most recently from dbda104 to ba650a0 Compare February 14, 2024 12:09
@pawelprazak pawelprazak added the kind/bug Some behavior is incorrect or out of spec label Feb 14, 2024
@pawelprazak pawelprazak added this to the 0.2.1 milestone Feb 14, 2024
@pawelprazak pawelprazak added the P1 Bugs severe enough to be the next item assigned to an engineer label Feb 14, 2024
Copy link
Collaborator

@lbialy lbialy left a comment

Choose a reason for hiding this comment

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

I have some nitpicks but nothing major. Fix at your leisure and let's get core libs to 0.2.1.

@@ -405,6 +405,11 @@ DO NOT remove dependencies from `project.scala`, because they are necessary in b

## Troubleshooting

If you susspect the issue is related to serialization, try to skip the preview (dry run is known to be problematic):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo

@@ -52,7 +52,8 @@ trait EffectBesomModule extends BesomSyntax:
config <- Config.forProject(runInfo.project)
featureSupport <- FeatureSupport(monitor)
_ <- logger.trace(s"Environment:\n${sys.env.toSeq.sortBy(_._1).map((k, v) => s"$k: $v").mkString("\n")}")
_ <- logger.debug(s"Resolved feature support, spawning context and executing user program.")
_ <- logger.debug(s"Resolved feature support: ${pprint(featureSupport)}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is pprint() returning a String or Unit? I am not sure if it just prints to stdout or converts into pretty printed string?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it returns a Str and a toString is called, we already use it this way in the code so I did the same for consistency

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok, my mistake then

@@ -26,6 +25,9 @@ object EncoderTest:

case class PlainCaseClass(data: String, moreData: Int) derives Encoder
case class OptionCaseClass(data: Option[String], moreData: Option[Int]) derives Encoder
case class InputOptionalCaseClass(value: Output[Option[String]], data: Output[Option[Map[String, Output[String]]]])
derives Encoder,
ArgsEncoder
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's up with formatting here? 😁

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

scalafmt had it's own idea ;)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Lolwut

@pawelprazak pawelprazak merged commit ddb9027 into main Feb 14, 2024
2 checks passed
@pawelprazak pawelprazak deleted the pprazak/fix-383 branch February 14, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec P1 Bugs severe enough to be the next item assigned to an engineer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kubernetes Secret requires both stringData and data to work properly
2 participants