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

[BUG] System.InvalidOperationException: Maximum object size exceeded #501

Closed
3 tasks done
anGie44 opened this issue May 25, 2022 · 2 comments · Fixed by #502
Closed
3 tasks done

[BUG] System.InvalidOperationException: Maximum object size exceeded #501

anGie44 opened this issue May 25, 2022 · 2 comments · Fixed by #502
Labels
bug Something isn't working

Comments

@anGie44
Copy link

anGie44 commented May 25, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Does this issue exist in the latest version?

  • I'm using the latest release

Describe the bug?

When running the action in our workflow, we are often seeing the error Error: The template is not valid. System.InvalidOperationException: Maximum object size exceeded

The action is used as follows:
https://github.com/hashicorp/terraform-provider-aws/blob/28802c652e04814ed25a7b563bd01bafd875231e/.github/workflows/terraform_provider.yml#L219-L221

To Reproduce

  1. Add the step in your github action workflow to run on a repository like the hashicorp/terraform-provider-aws which contains a large collection of files
  2. On pull_request triggers, the step can often (not always) fail with the above error

What OS are you seeing the problem on?

ubuntu-latest or ubuntu-20.04

Expected behavior?

The step should succeed with the outputs available in subsequent steps within the workflow.

Relevant log output

Run tj-actions/changed-files@v20.2
Run # "Set base sha..."
Run # "Calculating the previous and current SHA..."
changed-files-diff-sha
Run tj-actions/glob@v7.20
/usr/bin/git rev-parse --show-toplevel
/home/runner/work/terraform-provider-aws/terraform-provider-aws
/usr/bin/git diff --diff-filter=D --name-only eb182a5ad78b25979cdedb415053bb31a8f985ad fd447b487b74c3922206380f47a3cde1b5806164

Run bash $GITHUB_ACTION_PATH/entrypoint.sh
changed-files
Error: The template is not valid. System.InvalidOperationException: Maximum object size exceeded
   at GitHub.DistributedTask.ObjectTemplating.TemplateMemory.AddBytes(Int32 bytes)
   at GitHub.DistributedTask.ObjectTemplating.TemplateUnraveler.AllowScalar(Boolean expand, ScalarToken& scalar)
   at GitHub.DistributedTask.ObjectTemplating.TemplateEvaluator.Evaluate(DefinitionInfo definition)
   at GitHub.DistributedTask.ObjectTemplating.TemplateEvaluator.HandleMappingWithWellKnownProperties(DefinitionInfo definition, List`1 mappingDefinitions, MappingToken mapping)
   at GitHub.DistributedTask.ObjectTemplating.TemplateEvaluator.Evaluate(DefinitionInfo definition)
   at GitHub.DistributedTask.ObjectTemplating.TemplateEvaluator.HandleMappingWithAllLooseProperties(DefinitionInfo mappingDefinition, DefinitionInfo keyDefinition, DefinitionInfo valueDefinition, MappingToken mapping)
   at GitHub.DistributedTask.ObjectTemplating.TemplateEvaluator.Evaluate(DefinitionInfo definition)
   at GitHub.DistributedTask.ObjectTemplating.TemplateEvaluator.Evaluate(TemplateContext context, String type, TemplateToken template, Int32 removeBytes, Nullable`1 fileId, Boolean omitHeader)

Anything else?

References: https://github.com/hashicorp/terraform-provider-aws/runs/6598628116?check_suite_focus=true

Workarounds: revert to using v19

Code of Conduct

  • I agree to follow this project's Code of Conduct
@anGie44 anGie44 added the bug Something isn't working label May 25, 2022
@github-actions
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project to help us reach a wider audience.

@jackton1
Copy link
Member

@anGie44 Thanks for reporting this issue it should be resolved in the latest v21 release.

@jackton1 jackton1 pinned this issue May 25, 2022
@jackton1 jackton1 unpinned this issue Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants