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

r/elastic_transcoder_preset - allow setting audio.bit_rate to null + add validations #13974

Merged

Conversation

DrFaust92
Copy link
Collaborator

@DrFaust92 DrFaust92 commented Jun 27, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Relates #13527
Closes #14090
Closes #22362

Release note for CHANGELOG:

resource_aws_elastic_transcoder_preset: add plan time validations for `audio.audio_packing_mode`,  `audio.channels`,
`audio.codec`,`audio.sample_rate`, `audio_codec_options.bit_depth`, `audio_codec_options.bit_order`,
`audio_codec_options.profile`, `audio_codec_options.signed`, `audio_codec_options.signed`, 
`container`, `thumbnails.aspect_ratio`, `thumbnails.format`, `thumbnails.padding_policy`, `thumbnails.sizing_policy`,
`type`, `video.aspect_ratio`, `video.codec`, `video.display_aspect_ratio`, `video.fixed_gop`, `video.frame_rate`,   `video.max_frame_rate`,  `video.padding_policy`, `video.sizing_policy`, `video_watermarks.horizontal_align`, 
`video_watermarks.id`, `video_watermarks.sizing_policy`, `video_watermarks.target`, `video_watermarks.vertical_align`

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSElasticTranscoderPreset_'
--- PASS: TestAccElasticTranscoderPreset_disappears (70.27s)
--- PASS: TestAccElasticTranscoderPreset_audio_noBitRate (89.56s)
--- PASS: TestAccElasticTranscoderPreset_AudioCodecOptions_empty (89.66s)
--- PASS: TestAccElasticTranscoderPreset_basic (89.77s)
--- PASS: TestAccElasticTranscoderPreset_Video_frameRate (89.85s)
--- PASS: TestAccElasticTranscoderPreset_video_noCodec (93.64s)
--- PASS: TestAccElasticTranscoderPreset_description (97.92s)
--- PASS: TestAccElasticTranscoderPreset_full (166.30s)

@DrFaust92 DrFaust92 requested a review from a team June 27, 2020 21:44
@ghost ghost added size/L Managed by automation to categorize the size of a PR. service/elastic-transcoder tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Jun 27, 2020
@DrFaust92 DrFaust92 changed the title [WIP]r/elastic_transcoder_preset - add validations r/elastic_transcoder_preset - add validations Jun 28, 2020
@DrFaust92 DrFaust92 force-pushed the r/elastictranscoder_preset_validations branch from 091ceec to 1cc0466 Compare August 24, 2020 15:05
@DrFaust92 DrFaust92 changed the title r/elastic_transcoder_preset - add validations r/elastic_transcoder_preset - allow setting audio.bit_rate to null + add validations Aug 24, 2020
@DrFaust92 DrFaust92 added the bug Addresses a defect in current functionality. label Aug 24, 2020
@mgzenitech
Copy link

So anyone will ever look into this PR? Without this change, lossless audio presets for Elastic Transcoder are impossible to set up

@DrFaust92 DrFaust92 requested a review from a team as a code owner November 23, 2020 21:42
@DrFaust92
Copy link
Collaborator Author

Resolved Conflict

Base automatically changed from master to main January 23, 2021 00:58
@DrFaust92 DrFaust92 force-pushed the r/elastictranscoder_preset_validations branch from f4ac451 to de3dc1d Compare February 11, 2021 22:45
@DrFaust92 DrFaust92 force-pushed the r/elastictranscoder_preset_validations branch from de3dc1d to e997b3d Compare March 27, 2021 16:58
@DrFaust92 DrFaust92 force-pushed the r/elastictranscoder_preset_validations branch from e997b3d to 14579a2 Compare July 7, 2021 19:20
@zhelding
Copy link
Contributor

Pull request #21306 has significantly refactored the AWS Provider codebase. As a result, most PRs opened prior to the refactor now have merge conflicts that must be resolved before proceeding.

Specifically, PR #21306 relocated the code for all AWS resources and data sources from a single aws directory to a large number of separate directories in internal/service, each corresponding to a particular AWS service. This separation of code has also allowed for us to simplify the names of underlying functions -- while still avoiding namespace collisions.

We recognize that many pull requests have been open for some time without yet being addressed by our maintainers. Therefore, we want to make it clear that resolving these conflicts in no way affects the prioritization of a particular pull request. Once a pull request has been prioritized for review, the necessary changes will be made by a maintainer -- either directly or in collaboration with the pull request author.

For a more complete description of this refactor, including examples of how old filepaths and function names correspond to their new counterparts: please refer to issue #20000.

For a quick guide on how to amend your pull request to resolve the merge conflicts resulting from this refactor and bring it in line with our new code patterns: please refer to our Service Package Refactor Pull Request Guide.

@DrFaust92 DrFaust92 added the service/elastictranscoder Issues and PRs that pertain to the elastictranscoder service. label Jan 15, 2022
@DrFaust92 DrFaust92 force-pushed the r/elastictranscoder_preset_validations branch from 14579a2 to 356a3c8 Compare January 15, 2022 23:22
@github-actions github-actions bot added size/XL Managed by automation to categorize the size of a PR. and removed size/L Managed by automation to categorize the size of a PR. labels Jan 15, 2022
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccElasticTranscoderPreset_' PKG=elastictranscoder
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/elastictranscoder/... -v -count 1 -parallel 20  -run=TestAccElasticTranscoderPreset_ -timeout 180m
=== RUN   TestAccElasticTranscoderPreset_basic
=== PAUSE TestAccElasticTranscoderPreset_basic
=== RUN   TestAccElasticTranscoderPreset_video_noCodec
=== PAUSE TestAccElasticTranscoderPreset_video_noCodec
=== RUN   TestAccElasticTranscoderPreset_audio_noBitRate
=== PAUSE TestAccElasticTranscoderPreset_audio_noBitRate
=== RUN   TestAccElasticTranscoderPreset_disappears
=== PAUSE TestAccElasticTranscoderPreset_disappears
=== RUN   TestAccElasticTranscoderPreset_AudioCodecOptions_empty
=== PAUSE TestAccElasticTranscoderPreset_AudioCodecOptions_empty
=== RUN   TestAccElasticTranscoderPreset_description
=== PAUSE TestAccElasticTranscoderPreset_description
=== RUN   TestAccElasticTranscoderPreset_full
=== PAUSE TestAccElasticTranscoderPreset_full
=== RUN   TestAccElasticTranscoderPreset_Video_frameRate
=== PAUSE TestAccElasticTranscoderPreset_Video_frameRate
=== CONT  TestAccElasticTranscoderPreset_basic
=== CONT  TestAccElasticTranscoderPreset_full
=== CONT  TestAccElasticTranscoderPreset_AudioCodecOptions_empty
=== CONT  TestAccElasticTranscoderPreset_disappears
=== CONT  TestAccElasticTranscoderPreset_description
=== CONT  TestAccElasticTranscoderPreset_Video_frameRate
=== CONT  TestAccElasticTranscoderPreset_audio_noBitRate
=== CONT  TestAccElasticTranscoderPreset_video_noCodec
--- PASS: TestAccElasticTranscoderPreset_disappears (22.77s)
--- PASS: TestAccElasticTranscoderPreset_description (25.54s)
--- PASS: TestAccElasticTranscoderPreset_audio_noBitRate (28.79s)
--- PASS: TestAccElasticTranscoderPreset_AudioCodecOptions_empty (28.79s)
--- PASS: TestAccElasticTranscoderPreset_video_noCodec (28.80s)
--- PASS: TestAccElasticTranscoderPreset_Video_frameRate (28.82s)
--- PASS: TestAccElasticTranscoderPreset_basic (31.36s)
--- PASS: TestAccElasticTranscoderPreset_full (44.93s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/elastictranscoder	50.581s

@ewbankkit
Copy link
Contributor

@DrFaust92 Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 90ea27e into hashicorp:main Feb 13, 2022
@github-actions github-actions bot added this to the v4.1.0 milestone Feb 13, 2022
@DrFaust92 DrFaust92 deleted the r/elastictranscoder_preset_validations branch February 14, 2022 07:59
@github-actions
Copy link

This functionality has been released in v4.1.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/elastictranscoder Issues and PRs that pertain to the elastictranscoder service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
5 participants