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

MWPW-152082 Utils to Scripts #220

Merged
merged 1 commit into from
Jul 11, 2024
Merged

MWPW-152082 Utils to Scripts #220

merged 1 commit into from
Jul 11, 2024

Conversation

Copy link

aem-code-sync bot commented Jun 28, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.21%. Comparing base (c642703) to head (63be5fe).
Report is 40 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #220      +/-   ##
==========================================
+ Coverage   95.43%   96.21%   +0.77%     
==========================================
  Files          11       11              
  Lines         899     1082     +183     
==========================================
+ Hits          858     1041     +183     
  Misses         41       41              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +8 to +22
['https://business.stage.adobe.com', 'https://main--milo--adobecom.hlx.live/libs'],
['https://business.stage.adobe.com?milolibs=foo', 'https://foo--milo--adobecom.hlx.live/libs'],
['https://business.stage.adobe.com?milolibs=awesome--milo--forkedowner', 'https://awesome--milo--forkedowner.hlx.live/libs'],
['https://main--bacom--adobecom.hlx.page/', 'https://main--milo--adobecom.hlx.live/libs'],
['https://main--bacom--adobecom.hlx.page/?milolibs=foo', 'https://foo--milo--adobecom.hlx.live/libs'],
['https://main--bacom--adobecom.hlx.page/?milolibs=local', 'http://localhost:6456/libs'],
['https://main--bacom--adobecom.hlx.page/?milolibs=awesome--milo--forkedowner', 'https://awesome--milo--forkedowner.hlx.live/libs'],
['https://main--bacom--adobecom.hlx.live/', 'https://main--milo--adobecom.hlx.live/libs'],
['https://main--bacom--adobecom.hlx.live/?milolibs=foo', 'https://foo--milo--adobecom.hlx.live/libs'],
['https://main--bacom--adobecom.hlx.live/?milolibs=local', 'http://localhost:6456/libs'],
['https://main--bacom--adobecom.hlx.live/?milolibs=awesome--milo--forkedowner', 'https://awesome--milo--forkedowner.hlx.live/libs'],
['http://localhost:3000', 'https://main--milo--adobecom.hlx.live/libs'],
['http://localhost:3000?milolibs=foo', 'https://foo--milo--adobecom.hlx.live/libs'],
['http://localhost:3000?milolibs=local', 'http://localhost:6456/libs'],
['http://localhost:3000?milolibs=awesome--milo--forkedowner', 'https://awesome--milo--forkedowner.hlx.live/libs'],
Copy link
Contributor

Choose a reason for hiding this comment

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

You could probably cut down the number of test cases here. We know that the code will proceed to set the branch variable based on the hostname containing .hlx, local, or .stage.. You could check each of those once, and then choose one to check that the branch functionality is working as expected.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wouldn't want to base the test on how the code is written and I want to make sure all of these cases are covered. This test is not fetching resources or doing anything expensive, we could add many more test cases if we so wanted and probably should for lower environments.

@Brandon32 Brandon32 merged commit 00ae915 into stage Jul 11, 2024
6 of 7 checks passed
@Brandon32 Brandon32 deleted the bmarshal/utils-to-scripts branch July 11, 2024 16:18
beekerr pushed a commit to beekerr/bacom that referenced this pull request Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants