Comments (7)
While having the comments posted into the gh pr is "fine" and good if the length is smaller <64k, I think you should give me a file reference to the whole log and allow me to make it an action run artifact instead! I can open the whole thing, no matter how many characters, as I please!
Here's a thought: Always give me the file reference so I can make it into an artifact, as mentioned, AND take the first 64k characters and put into the comment as you are attempting to do today - but also CLEARLY state that there is more which did not fit here.
I think it would be worse to start adding many gh pr comments, because it will be difficult to read and the length of it all makes it less useful. If the output is so lengthy, then it is better to use it as an artifact!
Does that make sense?
from azops.
That is excellent! I will try this out and let you know. I would propose you document how to turn that into an artefact! And I also propose you put as much as possible into on GH comment, but not multiple comments. I'd rather you reference the full file instead. I think multiple comments will look weird
from azops.
Sorry, that does not work. When the result is too long the file is NOT generated at all.
I get the message here from the if-statement. You are referring to a code line in the else section.
We'd need a code change to always generate the file content, regardless if it is too long for a GH comment!
You are right, apparently I was too quick when scrolling through the references yesterday. We'll make sure to fix that in our next release.
from azops.
Thanks for the feedback, @noopman.
The limitation is attributed to the ADO/GitHub comment constraints.
#417
https://github.com/orgs/community/discussions/41331
We are contemplating posting larger WhatIf outputs by dividing them into N comments instead of not posting at all. Your thoughts?
We do, in fact, create a file named output.json
containing the raw WhatIf output. Consequently, if you wish, you have the option to upload and store that file elsewhere as well.
https://github.com/Azure/AzOps/blob/main/src/internal/functions/Set-AzOpsWhatIfOutput.ps1#L89
from azops.
I also find it weird that GH has not documented the comment length requirement.
from azops.
While having the comments posted into the gh pr is "fine" and good if the length is smaller <64k, I think you should give me a file reference to the whole log and allow me to make it an action run artifact instead! I can open the whole thing, no matter how many characters, as I please!
Here's a thought: Always give me the file reference so I can make it into an artifact, as mentioned, AND take the first 64k characters and put into the comment as you are attempting to do today - but also CLEARLY state that there is more which did not fit here.
I think it would be worse to start adding many gh pr comments, because it will be difficult to read and the length of it all makes it less useful. If the output is so lengthy, then it is better to use it as an artifact!
Does that make sense?
See my updated comment, we actually do have a hardcoded file reference for the output. We can certainly document this if it helps.
from azops.
Sorry, that does not work. When the result is too long the file is NOT generated at all.
I get the message here from the if-statement. You are referring to a code line in the else section.
We'd need a code change to always generate the file content, regardless if it is too long for a GH comment!
from azops.
Related Issues (20)
- Long runtime (2hrs+) AzOps pull pipeline HOT 6
- Support Single Template with Multiple Parameter Files HOT 1
- Parallel Deployments Support HOT 3
- Shared/Central parameters support HOT 1
- Preview apiVersion in generated ARM templates - do we need to filter versions? HOT 4
- Folder names prefixed with "." HOT 2
- Add support for App insights logging
- This repo is missing a license file HOT 1
- This repo is missing important files HOT 1
- Deletion of bicep file with parameter file - JSON serialization HOT 10
- WhatIf report fails with Cannot bind argument to parameter 'FilePath' because it is null HOT 2
- Ability to configure which subscriptions to track HOT 2
- RP Microsoft.Management missing from Subscription during Initialize HOT 4
- Issue evaluating jq version HOT 2
- Parallel Deployments with Multiple Parameter Files fail with file in use HOT 2
- Add Aure Policy Metadata Version Support HOT 7
- PolicySetDefinition empty defaultValue is removed HOT 1
- AllowMultipleTemplateParameterFiles: Updating a Bicep template and deleting a parameter file in the same PR causes the deleted parameter file to redeploy HOT 1
- Using AllowMultipleTemplateParameterFiles, when the suffix appears multiple times in the file path, the corresponding template file cannot be resolved HOT 1
- Duplicate conflicting deployments performed when enabling DeployAllMultipleTemplateParameterFiles and ParallelDeployMultipleTemplateParameterFiles HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azops.