question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Comment body too big causing an error - any suggestion ?

See original GitHub issue

hi @peter-evans ,

first of all kudos for this action, it works so nicely !

Secondly, as i was using your action to add a big comment (TF plan output) i’ve bumped into an error like Error: Argument list too long

It it something which can be done to increase the size ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tarfeef101commented, Nov 3, 2021

entertain me: why is posting the comment not in the same workflow as generating the plan? seems like you’re making your life a lot harder by not doing that

hehe @tarfeef102 😉 i did that in first place but the previous/ main job runs on my self-hosted runner (which is EC2 + docker runner) and at that point no matter what value i’ve chosen on the ulimit stack it didn’t cut it. Hence i tried to exclude from the picture the self-runner.

Note i can’t go with running the job on non self-hosted runner because of network layout

my point is:

  • runner A actually calls terraform
  • the same runner A then takes that plan, slices it up, and uploads to GH This eliminates needing to use env vars, etc. to pass information. It can just put those steps into a script and save the plan in-memory as a variable, and upload it immediately thereafter
1reaction
tarfeef101commented, Nov 2, 2021

If you want to pass an entire plan between steps, consider this fact:

Each step in a job executes on the same runner, allowing the actions in that job to share data with each other.

You can just use files for this.

However, I suggest you just do a little scripting and call a script in a single step rather than use file I/O and multiple steps to do this. Since you’ll need to script handling giant comments anyway, you’re gonna need complex steps no matter what.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best practices for writing code comments - Stack Overflow Blog
Rule 4: Comments should dispel confusion, not cause it. Rule 5: Explain unidiomatic code in comments. Rule 6: Provide links to the original ......
Read more >
Copilot not working/Not showing suggestions? #6973 - GitHub
The problem is that when I am writing my Java classes, I am no longer getting the "class header" or even a "class...
Read more >
Advice on how to deal with customers commenting on my ...
So this is a problem I encounter frequently and I never know how to respond. I'm skinny. Not in an unhealthy way. That's...
Read more >
Dr. Dre – What's the Difference Lyrics - Genius
[Chorus: Phish] What's the difference between me and you? You talk a good one, but you don't do what you supposed to do....
Read more >
10 Most Common Bootstrap Mistakes That Developers Make
We will take a look at 10 of the most common Bootstrap mistakes, problems, and misconceptions when developers start using it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found