You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/02/21 09:52:33 UTC

[GitHub] [camel-k] nicolaferraro opened a new pull request #1291: Related to #1190: add more logs when patch fails

nicolaferraro opened a new pull request #1291: Related to #1190: add more logs when patch fails
URL: https://github.com/apache/camel-k/pull/1291
 
 
   <!-- Description -->
   
   
   Related to #1190
   
   <!--
   Enter your extended release note in the below block. If the PR requires
   additional action from users switching to the new release, include the string
   "action required". If no release note is required, write "NONE". 
   
   You can (optionally) mark this PR with labels "kind/bug" or "kind/feature" to make sure
   the text is added to the right section of the release notes. 
   -->
   
   **Release Note**
   ```release-note
   NONE
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1291: Related to #1190: add more logs when patch fails

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1291: Related to #1190: add more logs when patch fails
URL: https://github.com/apache/camel-k/pull/1291#issuecomment-589642389
 
 
   > Generally patching should be skipped when the patch is empty, I'm just surprised the build output leads to an empty patch, which means the build status hasn't changed after the build has run.
   
   I'm not sure why it's doing another build to be honest.. a yaml integration has been already run previously and they look similar:
   
   *first one*
   ```
   - from:
       uri: "timer:yaml"
       parameters:
         period: "5s"
       steps:
         - set-header:
             name: "m"
             constant: "string!"
         - set-body:
             simple: "Magic${header.m}"
         - to: "log:info"
   
   ```
   
   *second:*
   ```
   - from:
       uri: "timer:yaml"
       parameters:
         period: "1s"
       steps:
         - set-body:
             constant: "Hello Camel K from yaml"
         - to: "log:info"
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] astefanutti commented on issue #1291: Related to #1190: add more logs when patch fails

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #1291: Related to #1190: add more logs when patch fails
URL: https://github.com/apache/camel-k/pull/1291#issuecomment-589629522
 
 
   Yes it's very possible the patch creation is still a bit fragile, especially in edge / error cases. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1291: Related to #1190: add more logs when patch fails

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1291: Related to #1190: add more logs when patch fails
URL: https://github.com/apache/camel-k/pull/1291#issuecomment-589636537
 
 
   > Yes it's very possible the patch creation is still a bit fragile, especially in edge / error cases.
   
   Forgot the log was json in this case, but it's clear that the patch is empty:
   ```
   {"level":"error","ts":1582287788.2336826,"logger":"camel-k.builder","msg":"\n--- patch ---\n\n-------------\n","error":"Invalid JSON Patch","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\tgithub.com/go-logr/zapr@v0.1.1/zapr.go:128\ngithub.com/apache/camel-k/pkg/util/log.Logger.Error\n\tgithub.com/apache/camel-k@/pkg/util/log/log.go:74\ngithub.com/apache/camel-k/pkg/cmd/builder.exitOnError\n\tgithub.com/apache/camel-k@/pkg/cmd/builder/builder.go:108\ngithub.com/apache/camel-k/pkg/cmd/builder.Run\n\tgithub.com/apache/camel-k@/pkg/cmd/builder/builder.go:91\ngithub.com/apache/camel-k/pkg/cmd.(*builderCmdOptions).run\n\tgithub.com/apache/camel-k@/pkg/cmd/builder.go:51\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/cobra@v0.0.5/command.go:830\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/cobra@v0.0.5/command.go:914\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/cobra@v0.0.5/command.go:864\nmain.main\n\tgithub.com/apache/camel-k@/cmd/kamel/main.go:46\nruntime.main\n\truntime/proc.go:203"}
   ```
   
   Should we just skip the patch in this case or it is a signal of some other error @astefanutti ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1291: Related to #1190: add more logs when patch fails

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1291: Related to #1190: add more logs when patch fails
URL: https://github.com/apache/camel-k/pull/1291#issuecomment-589700542
 
 
   Seems to fix.. I'm merging to rebase other PRs

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro commented on issue #1291: Related to #1190: add more logs when patch fails

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1291: Related to #1190: add more logs when patch fails
URL: https://github.com/apache/camel-k/pull/1291#issuecomment-589625111
 
 
   It seems the CI error that's happening constantly is due to this specific problem.. logs should tell something this time..

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] astefanutti commented on issue #1291: Related to #1190: add more logs when patch fails

Posted by GitBox <gi...@apache.org>.
astefanutti commented on issue #1291: Related to #1190: add more logs when patch fails
URL: https://github.com/apache/camel-k/pull/1291#issuecomment-589640383
 
 
   Generally patching should be skipped when the patch is empty, I'm just surprised the build output leads to an empty patch, which means the build status hasn't changed after the build has run.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [camel-k] nicolaferraro merged pull request #1291: Related to #1190: add more logs when patch fails

Posted by GitBox <gi...@apache.org>.
nicolaferraro merged pull request #1291: Related to #1190: add more logs when patch fails
URL: https://github.com/apache/camel-k/pull/1291
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services