[FEATURE] show a spinner while filtering changed files of a git range
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 86/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- git, javascript, node.js
- Domain
- cli, developer-experience
Research direction
Start in lib/util/devops.js at createDeltaPkg and review lib/util/progress.js for createSpinner usage, including the Journey.js example. Run the relevant tests for delta package creation and spinner behavior; verify the spinner starts after the changed-file count, clears before the filtered-file message, and stops on errors without flooding non-TTY logs.
Written by the indexing model from the issue text.
Description
What happens
When building a delta package from a git range (mcdev build, buildTemplate/buildDefinition with --range / createDeltaPkg), mcdev prints:
22:07:37 info: Found 6595 changed files in the commit range
22:09:17 info: Identified 882 relevant file changes after filtering file types and folders. Processing related metadata now.
Between these two lines nothing is shown for 1 min 40 s in this real-world example. To the user it looks like mcdev is stuck. Only after that does the Processing changes [...] progress bar appear.
What we want
Show a loading spinner while this step runs, e.g. Filtering changed files..., and stop it right before the Identified … relevant file changes line is printed.
We already have a spinner — reuse it instead of building a new one:
lib/util/progress.js→createSpinner()/Spinner(start/stop, cleans up the line on stop)- already used in
lib/metadataTypes/Journey.jswhile waiting for journey publishing
Where
lib/util/devops.js, in createDeltaPkg:
- start the spinner right after
Util.logger.info(\Found ${diffSummary.files.length} changed files in the commit range`)` - stop it right before
Util.logger.info(\Identified ${deltaFiltered.length} relevant file changes …`)`, also on error
Probable cause of the wait (worth a look while in there)
Most of the time is likely spent in filterAssetRegroupingChanges() (same file):
- for every changed file it calls
files.find(...)over all changed files → O(n²) for 6595 files - for every matching asset pair it runs two
git rev-parsecalls, one pair after the other (awaitinside theforloop), each starting its own git process
The spinner is the quick fix for the user experience. Making this step faster (e.g. a lookup map instead of find, batched or parallel rev-parse with the existing pLimit) can be done in the same ticket or split off.
Acceptance
- a spinner is visible between the two log lines
- it is stopped and its line cleared before the next log line / progress bar, also when an error is thrown
- CI / non-TTY logs (e.g. Copado, pipelines) are not flooded with spinner frames
- tests still pass
- Dominant language
- JavaScript
- Stars
- 166
- Forks
- 50
- Avg merge
- 11h 4m
- Merged PRs (30d)
- 36
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Accenture/sfmc-devtools
-
c/INIT chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Accenture/sfmc-devtools#2793 ·
Maintainers usually reply within 1 day
-
bug c/Generic validationRule
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Accenture/sfmc-devtools#2794 ·
Maintainers usually reply within 1 day
-
bug c/automation
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Accenture/sfmc-devtools#2792 ·
Maintainers usually reply within 1 day
-
[FEATURE] transactionalPush: check options.customKeys against the app before deployPossibly taken @orshih6 claimed this 8 days ago. Openc/mobilePushApp c/transactionalPush enhancement
Difficulty 3/5 1-2 days Newbie friendliness 74/100
Accenture/sfmc-devtools#2735 ·
Maintainers usually reply within 1 day
-
c/mobileMessage c/mobilePush c/transactionalPush c/transactionalSms enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Accenture/sfmc-devtools#2733 ·
Maintainers usually reply within 1 day
All issues in Accenture/sfmc-devtools
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Life-Framework/Life-Framework#7017 ·
Maintainers usually reply within 1 day
-
agent/guide documentation help wanted stage/010-actionable
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
kubestellar/console-kb#4003 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
FilOzone/synapse-sdk#1201 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue task
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
NSC-Tech-Hub/nscth-static-website#107 ·
Maintainers usually reply within 1 day