Thread
#general
    a

    acceptable-byte-95884

    6 months ago
    Hey Everyone, I'm using Github Actions to show previews on my pull requests, and the entirety of the output is quite verbose making the output really messy. On console, it's very concise and clean. There is any way to reduce the verbosity of
    preview
    the command on pull-request? Or even suppress everything except the result and errors? Here is my workflow on Github
    pull_request.yml
    .
    name: Pulumi
    on:
      - pull_request
    jobs:
      preview:
        name: Preview
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v2
          - uses: actions/setup-node@v2
            with:
              node-version: 14.x
          - name: Configure AWS Credentials
            uses: aws-actions/configure-aws-credentials@v1
            with:
              aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
              aws-region: ${{ secrets.AWS_REGION }}
              aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          - run: npm install
          - uses: pulumi/actions@v3
            with:
              command: preview
              work-dir: applications
              stack-name: production
              comment-on-pr: true
              github-token: ${{ secrets.GITHUB_TOKEN }}
            env:
              PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
    Size comparison of output, an example of the output in the thread. And comparison of github/action and cli in image. Thank you very much for any help
    Previewing update (some-company/production)
    
    View Live: <https://app.pulumi.com/some-company/some-app/production/previews/12312012031-1-23-1-31-3-1231231>
    
    
    pulumi:pulumi:Stack some-app-production running 
    awsx:x:ecs:Cluster default-cluster  
    aws:lb:ApplicationLoadBalancer some-app-web-traffic  
    awsx:x:ecs:FargateService some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    aws:iam:User imgix-user  [diff: ~provider]
    aws:acm:Certificate some-app-certificate  [diff: ~provider]
    aws:s3:Bucket some-app-bucket  [diff: ~provider]
    aws:ses:DomainIdentity some-app-domain-identity  [diff: ~provider]
    aws:iam:User some-app-user  [diff: ~provider]
    aws:iam:Role some-app-task-task  [diff: ~provider]
    aws:iam:Role some-app-task-execution  [diff: ~provider]
    aws:ecr:Repository some-app-image  [diff: ~provider]
    awsx:lb:ApplicationTargetGroup some-app-target-group  
    aws:cloudwatch:LogGroup some-app-task  [diff: ~provider]
    awsx:lb:ApplicationListener some-app-web-listener  
    awsx:x:ec2:SecurityGroup default-cluster  
    aws:ecs:Cluster default-cluster  [diff: ~provider]
    aws:ecr:LifecyclePolicy some-app-image  [diff: ~provider]
    aws:iam:AccessKey imgix-access-key  [diff: ~provider]
    awsx:x:ec2:IngressSecurityGroupRule some-app-web-listener-external-0-ingress  
    awsx:x:ec2:EgressSecurityGroupRule some-app-web-listener-external-0-egress  
    awsx:x:ec2:IngressSecurityGroupRule default-cluster-ssh  
    awsx:x:ec2:IngressSecurityGroupRule default-cluster-containers  
    awsx:x:ec2:EgressSecurityGroupRule default-cluster-egress  
    aws:iam:RolePolicyAttachment some-app-task-task-0cbb1231  [diff: ~provider]
    aws:iam:RolePolicyAttachment some-app-task-task-b5aeb6b6  [diff: ~provider]
    aws:iam:RolePolicyAttachment some-app-task-execution-51ed644a  
    aws:iam:RolePolicyAttachment some-app-task-execution-4a42f520  
    aws:ses:DomainDkim some-app-domain-dkim  [diff: ~provider]
    aws:iam:UserPolicy some-app-user-policy  [diff: ~provider]
    aws:iam:AccessKey some-app-access-key  [diff: ~provider]
    aws:iam:UserPolicy imgix-user-policy  [diff: ~provider]
    awsx:x:ecs:FargateTaskDefinition some-app-task  Building image '.'...
    awsx:x:ec2:Vpc default-vpc  
    aws:route53:Record some-app-amazonses-dkim-record-1  
    aws:route53:Record some-app-amazon-SES-verification-record  [diff: ~provider]
    aws:route53:Record some-app-amazonses-dkim-record-0  
    aws:route53:Record <http://some-app-record-some-app.some-company.com.br|some-app-record-some-app.some-company.com.br>  [diff: ~provider]
    aws:route53:Record some-app-amazonses-dkim-record-2  
    aws:ses:DomainIdentityVerification some-app-domain-identity-verification  
    aws:acm:CertificateValidation some-app-certificate-validation  
    pulumi:pulumi:Stack some-app-production running read aws:ec2:Subnet default-vpc-public-0
    awsx:x:ec2:Subnet default-vpc-public-0  
    pulumi:pulumi:Stack some-app-production running read aws:ec2:Subnet default-vpc-public-1
    awsx:x:ec2:Subnet default-vpc-public-1  
    pulumi:pulumi:Stack some-app-production running read aws:ec2:Vpc default-vpc
    pulumi:pulumi:Stack some-app-production running read aws:ec2:Subnet default-vpc-public-0
    pulumi:pulumi:Stack some-app-production running read aws:ec2:Subnet default-vpc-public-1
    aws:rds:SubnetGroup some-app-db-subnets  
    pulumi:pulumi:Stack some-app-production running read aws:ec2:Vpc default-vpc
    aws:ec2:SecurityGroup default-cluster  
    aws:lb:TargetGroup some-app-target-group  
    aws:s3:BucketPolicy bucketPolicy  
    aws:ec2:SecurityGroupRule default-cluster-containers  
    aws:ec2:SecurityGroupRule default-cluster-ssh  
    aws:ec2:SecurityGroupRule default-cluster-egress  
    aws:ec2:SecurityGroupRule some-app-web-listener-external-0-ingress  
    aws:ec2:SecurityGroupRule some-app-web-listener-external-0-egress  
    aws:lb:LoadBalancer some-app-web-traffic  
    aws:rds:Cluster some-app-db  
    aws:lb:Listener some-app-web-listener  
    aws:route53:Record some-app-record  
    @ Previewing update....
    awsx:x:ecs:FargateTaskDefinition some-app-task  Sending build context to Docker daemon  241.2MB
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  Step 1/6 : FROM some-app/some-app:4.5.2
    awsx:x:ecs:FargateTaskDefinition some-app-task  4.5.2: Pulling from some-app/some-app
    awsx:x:ecs:FargateTaskDefinition some-app-task  53c3504f3: Already exists
    awsx:x:ecs:FargateTaskDefinition some-app-task  613d1cc01: Already exists
    awsx:x:ecs:FargateTaskDefinition some-app-task  ae5b2214b: Already exists
    awsx:x:ecs:FargateTaskDefinition some-app-task  34140df22: Already exists
    awsx:x:ecs:FargateTaskDefinition some-app-task  11e66f442: Pulling fs layer
    awsx:x:ecs:FargateTaskDefinition some-app-task  150e00c44: Pulling fs layer
    awsx:x:ecs:FargateTaskDefinition some-app-task  6214112c4: Pulling fs layer
    awsx:x:ecs:FargateTaskDefinition some-app-task  6214a12c4: Verifying Checksum
    awsx:x:ecs:FargateTaskDefinition some-app-task  6214a12c4: Download complete
    awsx:x:ecs:FargateTaskDefinition some-app-task  11e6b5e42: Verifying Checksum
    awsx:x:ecs:FargateTaskDefinition some-app-task  11e4b5e42: Download complete
    awsx:x:ecs:FargateTaskDefinition some-app-task  1502afc44: Verifying Checksum
    awsx:x:ecs:FargateTaskDefinition some-app-task  1002afc44: Download complete
    awsx:x:ecs:FargateTaskDefinition some-app-task  06f4b5e42: Pull complete
    awsx:x:ecs:FargateTaskDefinition some-app-task  e002afc44: Pull complete
    awsx:x:ecs:FargateTaskDefinition some-app-task  4125a12c4: Pull complete
    awsx:x:ecs:FargateTaskDefinition some-app-task  Digest: sha256: qwerqwreqwrqwoeriuqpwiwrepouiqwpreou
    awsx:x:ecs:FargateTaskDefinition some-app-task  Status: Downloaded newer image for some-app/some-app:4.5.2
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> d5bc26f30516
    awsx:x:ecs:FargateTaskDefinition some-app-task  Step 2/6 : RUN npm install
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> Running in 31312312312323
    @ Previewing update....
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  up to date, audited 421 packages in 3s
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  13 packages are looking for funding
    awsx:x:ecs:FargateTaskDefinition some-app-task    run `npm fund` for details
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  4 high severity vulnerabilities
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  Some issues need review, and may require choosing
    awsx:x:ecs:FargateTaskDefinition some-app-task  a different dependency.
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  Run `npm audit` for details.
    awsx:x:ecs:FargateTaskDefinition some-app-task  �[41mnpm �[0m�[41mnotice�[0m�[41m 
    awsx:x:ecs:FargateTaskDefinition some-app-task  npm notice�[0m�[41m New minor version of npm available! 1.3.1 -> 1.5.4
    awsx:x:ecs:FargateTaskDefinition some-app-task  npm�[0m�[41m notice�[0m�[41m Changelog: <<https://github.com/npm/cli/releases/tag/v1.5.4>>
    awsx:x:ecs:FargateTaskDefinition some-app-task  npm notice�[0m�[41m Run `npm install -g npm@1.5.4` to update!
    awsx:x:ecs:FargateTaskDefinition some-app-task  npm notice 
    awsx:x:ecs:FargateTaskDefinition some-app-task  �[0mRemoving intermediate container 460414bc616a
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> f02df3412225
    awsx:x:ecs:FargateTaskDefinition some-app-task  Step 3/6 : RUN npm install newrelic
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> Running in cc4421e2112c
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  added 33 packages, and audited 1011 packages in 5s
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  14 packages are looking for funding
    awsx:x:ecs:FargateTaskDefinition some-app-task    run `npm fund` for details
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  4 high severity vulnerabilities
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  Some issues need review, and may require choosing
    awsx:x:ecs:FargateTaskDefinition some-app-task  a different dependency.
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  Run `npm audit` for details.
    awsx:x:ecs:FargateTaskDefinition some-app-task  Removing intermediate container cc4421e2112c
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> 135b463f241f
    awsx:x:ecs:FargateTaskDefinition some-app-task  Step 4/6 : RUN npm install @sentry/node
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> Running in 3fe400bb22ac
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  added 12 packages, and audited 1023 packages in 3s
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  14 packages are looking for funding
    awsx:x:ecs:FargateTaskDefinition some-app-task    run `npm fund` for details
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  4 high severity vulnerabilities
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  Some issues need review, and may require choosing
    awsx:x:ecs:FargateTaskDefinition some-app-task  a different dependency.
    awsx:x:ecs:FargateTaskDefinition some-app-task  
    awsx:x:ecs:FargateTaskDefinition some-app-task  Run `npm audit` for details.
    awsx:x:ecs:FargateTaskDefinition some-app-task  Removing intermediate container 3fe400bb22ac
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> f164c4c4e46a
    awsx:x:ecs:FargateTaskDefinition some-app-task  Step 5/6 : COPY /extensions /some-app/extensions
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> d04cc411a24a
    awsx:x:ecs:FargateTaskDefinition some-app-task  Step 6/6 : CMD npx some-app start
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> Running in cbcd654df44a
    awsx:x:ecs:FargateTaskDefinition some-app-task  Removing intermediate container cbcd65123123123
    awsx:x:ecs:FargateTaskDefinition some-app-task   ---> 4f4d1222d24c
    awsx:x:ecs:FargateTaskDefinition some-app-task  Successfully built 1231232d24c
    awsx:x:ecs:FargateTaskDefinition some-app-task  Successfully tagged 123123-container:latest
    awsx:x:ecs:FargateTaskDefinition some-app-task  sha256:12131401234112234121234121234121213
    awsx:x:ecs:FargateTaskDefinition some-app-task  Image build succeeded.
    ++ aws:ecs:TaskDefinition some-app-task create replacement [diff: ~containerDefinitions]
    +- aws:ecs:TaskDefinition some-app-task replace [diff: ~containerDefinitions]
    ~  aws:ecs:Service some-app-task update [diff: ~taskDefinition]
    -- aws:ecs:TaskDefinition some-app-task delete original [diff: ~containerDefinitions]
    pulumi:pulumi:Stack some-app-production  
    
    Resources:
    ~ 1 to update
    +-1 to replace
    2 changes. 56 unchanged
    Look at the size of this log haha.
    l

    little-cartoon-10569

    6 months ago
    Are you looking in the right place? That's the full log of the workflow. Just look in the PR itself, the Pulumi bot posts a comment there.
    That's what you want to use.
    a

    acceptable-byte-95884

    6 months ago
    I'm sorry, I totally messed, I really copied the logs. Thank you. Feeling dumb as fuck haha
    @little-cartoon-10569, I am still in the fight here. I noticed that this user was able to do what I want to do. His PR comments are clean and made by the Pulumi bot, mine are clumsy and made by Github Action bot. I checked configuration files, they're almost identical. There is any point I'm missing? Take a look at this pull request to please: https://github.com/taehoio/iac/pull/33 It is because the repository is public? or some paid feature? Mine is on the left, his is on the right. I want mine to put something like on the right.
    l

    little-cartoon-10569

    6 months ago
    No I don't think so. Do you have the code of the workflows?
    Ah I found it.
    I notice that you're providing the github token explicitly, instead of letting the action grab the default one from its context...
    I'm looking for the Pulumi action in your log, I can't see it. Can you see that bit? Is it complaining about not being allow to comment on the PR?
    Since your change is so small, is it possible that it really is commenting on the PR and you're just missing it?