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

logs incomplete comparing kubectl logs xxx #9573

Closed
jibuji opened this issue Sep 12, 2022 · 1 comment · Fixed by #9575
Closed

logs incomplete comparing kubectl logs xxx #9573

jibuji opened this issue Sep 12, 2022 · 1 comment · Fixed by #9575
Labels
area/cli The `argo` CLI type/bug

Comments

@jibuji
Copy link
Contributor

jibuji commented Sep 12, 2022

Summary

What happened/what you expected to happen?

Logs incomplete comparing kubectl logs xxx

What version are you running?

argo v3.2.9

Diagnostics

Paste the smallest workflow that reproduces the bug. We must be able to run the workflow.

apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
  generateName: hello-world-
  labels:
    test: "true"
spec:
  entrypoint: whalesay
  arguments:
    parameters:
    - name: hello
      value: world
  templates:
  - name: whalesay
    script:
      image: docker/whalesay:latest
      command: [bash]
      source: |
        echo "this will be shown"
        for((j=0;j<=10;j+=1))
        do
          b=""
          for((i=0;i<=100;i+=1))
          do
              printf "progress %3d: [%-100s] %3d%%\r" $j $b $i
              sleep 0.002
              b+='#'
          done
        done
        echo "this won't be shown in argo logs"

Logs from the argo cli:

argo315 logs hello-world-ktfw4 -n argo

hello-world-ktfw4: time="2022-09-12T08:54:35.491Z" level=info msg="capturing logs" argo=true
hello-world-ktfw4: this will be shown

Logs from in your kubectl logs:

kubectl logs hello-world-ktfw4 -n argo -c main

time="2022-09-12T08:54:35.491Z" level=info msg="capturing logs" argo=true
this will be shown
progress   1: [#####################2022-09-12T16:54:36.690118203+08:00 ############                                              progress   2: [#########################################################2022-09-12T16:54:37.181210511+08:00 #########             progress   3: [#############################################################################################2022-09-12T16:54:37.78progress   5: [#######2022-09-12T16:54:38.252760981+08:00 #########################                                               progress   6: [###########################################2022-09-12T16:54:38.732911680+08:00 ######################              progress   7: [###############################################################################2022-09-12T16:54:39.176877542+08:00 progress2022-09-12T16:54:39.627235787+08:00    9: [###############################                                                progress  10: [#############################2022-09-12T16:54:39.640302442+08:00 ###################################               this won't be shown in argo logs################################################################################################] 100%

image


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@jibuji jibuji changed the title logs incomplete comparing logs incomplete comparing kubectl logs xxx Sep 12, 2022
@stale
Copy link

stale bot commented Oct 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions.

@stale stale bot added the problem/stale This has not had a response in some time label Oct 1, 2022
alexec pushed a commit that referenced this issue Oct 10, 2022
Signed-off-by: pengfei.ji <pengfei.ji@galixir.com>
Co-authored-by: pengfei.ji <pengfei.ji@galixir.com>
juchaosong pushed a commit to juchaosong/argo-workflows that referenced this issue Nov 3, 2022
Signed-off-by: pengfei.ji <pengfei.ji@galixir.com>
Co-authored-by: pengfei.ji <pengfei.ji@galixir.com>
Signed-off-by: juchao <juchao@coscene.io>
@agilgur5 agilgur5 added area/cli The `argo` CLI and removed problem/stale This has not had a response in some time labels Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli The `argo` CLI type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants