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

Optimize build and deploy #811

Merged
merged 6 commits into from
Oct 1, 2024
Merged

Optimize build and deploy #811

merged 6 commits into from
Oct 1, 2024

Conversation

purplecabbage
Copy link
Member

@purplecabbage purplecabbage commented Aug 22, 2024

Description

This changes the default for flag --force-build to false
RuntimeLib will include additional checks to not build actions it has already built, and not deploy actions already deployed. In order for users to see these benefits, the defaults are to use the optimized workflow and reduce time to build/deploy/run

If an action has changed, it will be built during app build/deploy/run
If an action has changed ( or action inputs including from $env or action descriptors ) it will be deployed during app deploy/run

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (74ebd4d) to head (9368cdb).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #811   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           56        56           
  Lines         3242      3243    +1     
  Branches       616       617    +1     
=========================================
+ Hits          3242      3243    +1     

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

src/commands/app/build.js Outdated Show resolved Hide resolved
src/lib/run-dev.js Show resolved Hide resolved
src/commands/app/build.js Show resolved Hide resolved
src/commands/app/deploy.js Show resolved Hide resolved
@@ -108,6 +108,9 @@ class Run extends BaseCommand {
}

const verboseOutput = flags.verbose || flags.local || headlessApp
// we should evaluate this, a lot of output just disappears in the spinner text and
// using verbose dumps ALL of parcel's output, so this become unreadable
// we need a middle ground. -jm
Copy link
Member

Choose a reason for hiding this comment

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

perhaps log to file like the old --local run? search for OW_LOCAL_LOG_FILE

@@ -91,6 +91,8 @@ function createChangeHandler (watcherOptions) {
try {
aioLogger.debug(`${filePath} has changed. Redeploying actions.`)
const filterActions = getActionNameFromPath(filePath, watcherOptions)
// this is happening, but its not showing up because verbose is usually off
// this might be more important and worthy of signalling to the user
Copy link
Member

Choose a reason for hiding this comment

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

I think this is important if we can define the importance of the "non-action file" is (more files are covered by your new changes) - the user might not know why their changes are not showing up otherwise

src/lib/run-dev.js Show resolved Hide resolved
@purplecabbage purplecabbage merged commit 0cab61f into master Oct 1, 2024
8 checks passed
@purplecabbage purplecabbage deleted the opt-deploy branch October 1, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants