Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Demo Mode for sfpowerscripts (#520)
Browse files Browse the repository at this point in the history
* Mock release command

* Refactor dinto a demo player class

* Allow DemoReelPlayer errors to break execution

Remove try/catch block

* Revert changes to ChangelogImpl

* Resolve path

Co-authored-by: Alan Ly <[email protected]>
  • Loading branch information
azlam-abdulsalam and aly76 authored May 19, 2021
1 parent 83f33cf commit 25db638
Show file tree
Hide file tree
Showing 28 changed files with 696 additions and 2 deletions.
3 changes: 3 additions & 0 deletions demoreel/quickbuild/buildprocess1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Packages currently processed:{1} ESObjects
Awaiting Dependencies to be resolved:{1} ESSpaceMgmtLWC
Package creation initiated for ESObjects
10 changes: 10 additions & 0 deletions demoreel/quickbuild/buildprocess2
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

ESObjects package created in 00:00:39
-- Package Details:--
-- Package Version Number: 50.1.5.6
-- Package Version Id: 04t2s000000cC2QAAU
-- Package Test Coverage: 0
-- Package Coverage Check Passed: false
-- Apex In Package: No
-- Profiles In Package: No
-- Metadata Count: 45
4 changes: 4 additions & 0 deletions demoreel/quickbuild/buildprocess3
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

Packages currently processed:{1} ESSpaceMgmtLWC
Awaiting Dependencies to be resolved:{0}
Package creation initiated for ESSpaceMgmtLWC
10 changes: 10 additions & 0 deletions demoreel/quickbuild/buildprocess4
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

ESSpaceMgmtLWC package created in 00:00:28
-- Package Details:--
-- Package Version Number: 50.0.4.23
-- Package Version Id: 04t2s000000cC2pAAE
-- Package Test Coverage: 0
-- Package Coverage Check Passed: false
-- Apex In Package: Yes
-- Profiles In Package: No
-- Metadata Count: 32
10 changes: 10 additions & 0 deletions demoreel/quickbuild/buildprocesscomplete
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

Packages currently processed:{0}
Awaiting Dependencies to be resolved:{0}



Generating Artifacts and Tags....
----------------------------------------------------------------------------------------------------
2 packages created in 00:01:05 minutes with {0} errors
----------------------------------------------------------------------------------------------------
17 changes: 17 additions & 0 deletions demoreel/quickbuild/commandBanner
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
██████████ █████ █████ █████████ █████████ ████
░░███░░░░███ ░░███ ░░███ ███░░░░░░ ███░░░░░███ ░░███
░███ ░░███ ░░███ ███ ░███ ██████ ░███ ░░░ ██████ ██████ ░███ ██████
░███ ░███ ░░█████ ░███░███░███░░█████████ ███░░███ ░░░░░███ ░███ ███░░███
░███ ░███ ███░███ ░███░███░███ ░░░░░░░░███░███ ░░░ ███████ ░███ ░███████
░███ ███ ███ ░░███ ░███░░░ ░███ ███ ░███░███ ███ ███░░███ ░███ ░███░░░
██████████ █████ █████░░█████████ ░░█████████ ░░██████ ░░████████ █████░░██████
░░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░░░░░ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░ ░░░░░░



-----------sfpowerscripts orchestrator ------------------
command: quickbuild
Build Packages Only Changed: true
Config File Path: config/project-scratch-def.json
Artifact Directory: artifacts
---------------------------------------------------------
32 changes: 32 additions & 0 deletions demoreel/quickbuild/demo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"sequence": [
{
"filepath": "commandBanner",
"postDelay": 3000
},
{
"filepath": "packageschedule.md",
"postDelay": 10000
},
{
"filepath": "buildprocess1",
"postDelay": 20000
},
{
"filepath": "buildprocess2",
"postDelay": 10000
},
{
"filepath": "buildprocess3",
"postDelay": 20000
},
{
"filepath": "buildprocess4",
"postDelay": 10000
},
{
"filepath": "buildprocesscomplete",
"postDelay": 10000
}
]
}
6 changes: 6 additions & 0 deletions demoreel/quickbuild/packageschedule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Packages scheduled for build

| Package | Reason to be built | Last Known Tag |
|-------------------------|-----------------------------------|------------------------------|
| ESObjects | Change in Code/Config | ESObjects_v50.0.5.4 |
| ESSpaceMgmtLWC | Change in Code/Config | EESSpaceMgmtLWC_50.0.5.17 |
6 changes: 6 additions & 0 deletions demoreel/release/baseCodeBanner
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-------------------------Installing Package------------------------------------
Name: ESBaseCodeLWC
Type: unlocked
Version Number: 50.0.6.16
Metadata Count: 23
-------------------------------------------------------------------------------
6 changes: 6 additions & 0 deletions demoreel/release/baseStylesBanner
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-------------------------Installing Package------------------------------------
Name: ESBaseStylesLWC
Type: unlocked
Version Number: 50.0.6.16
Metadata Count: 12
-------------------------------------------------------------------------------
37 changes: 37 additions & 0 deletions demoreel/release/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Updating sit org with release-1.0-1(0)...

[![sit-Release-1.0-1(0)-green](https://img.shields.io/static/v1?label=sit&message=Release-1.0-1(0)&color=green)](#7df66f58e93be435fcb22019c2efe0827f2862ad)
<a id=7df66f58e93be435fcb22019c2efe0827f2862ad></a>
# Release-1.0-1
### Artifacts :package:
- **ESBaseCodeLWC** v50.0.6.16 (2bc11f53)

- **ESBaseStylesLWC** v50.0.6.16 (2bc11f53)

### Work Items :gem:
- SAM-6
- SAM-158
- SAM-162
- SAM-178

### Commits :book:

#### ESBaseCodeLWC
| Date | Time | Commit ID | Commit Message |
| ---------- | -------- | --------- | ---------------------------------------------------------------------------- |
| 25/01/2021 | 11:01:55 | c8dbab13 | Add persist credential to PR (#6) |
| 19/10/2020 | 17:30:31 | d7124579 | feat: winter '21 release updates (#178) |
| 28/09/2020 | 17:52:59 | e4fd5b2c | Setup sa11y and implement accessibility tests (#162) |
| 05/09/2020 | 02:10:49 | 9ca5cf96 | feat:object agnostic design for apex code for Customer List component (#158) |



#### ESBaseStylesLWC
| Date | Time | Commit ID | Commit Message |
| ---------- | -------- | --------- | ------------------------------------------------------------------- |
| 19/10/2020 | 17:30:31 | d7124579 | feat: winter '21 release updates (#178) |



Pushing changelog files to sfp_changelog_develop
Successfully generated changelog
19 changes: 19 additions & 0 deletions demoreel/release/commandBanner
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
██████████ █████ █████ █████████ █████████ ████
░░███░░░░███ ░░███ ░░███ ███░░░░░░ ███░░░░░███ ░░███
░███ ░░███ ░░███ ███ ░███ ██████ ░███ ░░░ ██████ ██████ ░███ ██████
░███ ░███ ░░█████ ░███░███░███░░█████████ ███░░███ ░░░░░███ ░███ ███░░███
░███ ░███ ███░███ ░███░███░███ ░░░░░░░░███░███ ░░░ ███████ ░███ ░███████
░███ ███ ███ ░░███ ░███░░░ ░███ ███ ░███░███ ███ ███░░███ ░███ ░███░░░
██████████ █████ █████░░█████████ ░░█████████ ░░██████ ░░████████ █████░░██████
░░░░░░░░░░ ░░░░░ ░░░░░ ░░░░░░░░░ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░ ░░░░░░



-----------sfpowerscripts orchestrator ------------------
command: release
Target Org: SIT
Release Definition: releasedef.yml
Artifact Directory: /Users/root/Workspaces/devops/easy-spaces-lwc/artifacts
Skip Packages If Already Installed: false
Dry-run: false
---------------------------------------------------------
70 changes: 70 additions & 0 deletions demoreel/release/demo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"sequence": [
{
"filepath": "commandBanner",
"postDelay": 3000
},
{
"filepath": "fetchArtifacts.md",
"postDelay": 20000
},
{
"filepath": "deploymentPlan.md",
"postDelay": 2000
},
{
"filepath": "generatingChangelog.md"
},
{
"preDelay": 20000,
"filepath": "changelog.md"
},
{
"filepath": "mcBanner",
"postDelay": 2000
},
{
"filepath": "inprogress",
"repeat": 10,
"preDelay": 3000
},
{
"filepath": "successMC"
},
{
"filepath": "baseStylesBanner",
"postDelay": 2000
},
{
"filepath": "installBaseStyles.md",
"postDelay": 2000
},
{
"filepath": "inprogress",
"repeat": 5,
"preDelay": 3000
},
{
"filepath": "successBaseStyles"
},
{
"filepath": "baseCodeBanner",
"postDelay": 2000
},
{
"filepath": "installBaseCode.md",
"postDelay": 2000
},
{
"filepath": "inprogress",
"repeat": 8,
"postDelay": 3000
},
{
"filepath": "successBaseCode"
},
{
"filepath": "footer"
}
]
}
16 changes: 16 additions & 0 deletions demoreel/release/deploymentPlan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Deployment Plan

| Package | Incoming Version | Version in org | To be installed? |
|-------------------------|------------------|----------------|------------------|
| ESObjects | 50.0.6.16 | 50.0.6.16 | No |
| ESBaseStylesLWC | 50.0.6.16 | 50.0.6.16 | No |
| ESBaseCodeLWC | 50.0.6.16 | 50.0.5.1 | Yes |
| ESSpaceMgmtLWC | 50.0.5.17 | 50.0.5.16 | Yes |


Dependencies

| Package | Incoming Version | Version in org | To be installed? | Parent |
|-----------------|------------------|----------------|------------------|---------------|
| Marketing Cloud | 231.0.0.1 | 230.0.0.0 | Yes | ESBaseCodeLWC |
| Salesforce CPQ | 230.6.0.1 | 230.6.0.1 | No | ESBaseCodeLWC |
8 changes: 8 additions & 0 deletions demoreel/release/fetchArtifacts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Fetching Artifacts...

| Artifacts | Version |
|-----------------|-----------|
| esbasestyleslwc | 50.0.6.16 |
| esspacemgmtlwc | 50.0.5.17 |
| esbasecodelwc | 50.0.6.16 |
| esobjects | 50.0.6.16 |
13 changes: 13 additions & 0 deletions demoreel/release/footer
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
----------------------------------------------------------------------------------------------------

Package Dependencies
1 succeeded
1 skipped
0 failed

Deployment
2 succeeded
0 failed

Elapsed Time: 00:05:09
----------------------------------------------------------------------------------------------------
1 change: 1 addition & 0 deletions demoreel/release/generatingChangelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Generating changelog...
1 change: 1 addition & 0 deletions demoreel/release/inprogress
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Waiting for the package install request to complete. Status = IN_PROGRESS
29 changes: 29 additions & 0 deletions demoreel/release/installBaseCode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
The following metadata will be deployed:

| Metadata Type | API Name |
|--------------------------|-----------------------------------------------------------|
| AuraDefinitionBundle | openRecordAction |
| AuraDefinitionBundle | selectObject |
| ApexClass | CustomerServices |
| ApexClass | CustomerServicesTest |
| ApexClass | MarketServices |
| ApexClass | MarketServicesTest |
| ApexClass | TestDataFactory |
| CustomMetadata | Customer_Fields.Contact_Customer_Fields |
| CustomMetadata | Customer_Fields.Lead_Customer_Fields |
| Layout | Customer_Fields__mdt-Customer Fields Layout |
| LightningComponentBundle | errorPanel |
| LightningComponentBundle | ldsUtils |
| LightningMessageChannel | Flow_Status_Change |
| LightningMessageChannel | Tile_Selection |
| CustomObject | Customer_Fields__mdt |
| CustomField | Customer_Fields__mdt.Customer_City__c |
| CustomField | Customer_Fields__mdt.Customer_Draft_Status_Values__c |
| CustomField | Customer_Fields__mdt.Customer_Email__c |
| CustomField | Customer_Fields__mdt.Customer_Name__c |
| CustomField | Customer_Fields__mdt.Customer_Reservation_Status_Value__c |
| CustomField | Customer_Fields__mdt.Customer_State__c |
| CustomField | Customer_Fields__mdt.Customer_Status__c |
| CustomField | Customer_Fields__mdt.Sobject_Type__c |

Generated Command sfdx force:package:install --package 04t2s000000cC1cAAE -u SIT --noprompt --publishwait=10 --wait=120 --securitytype=AdminsOnly --upgradetype=Mixed --apexcompile=package
18 changes: 18 additions & 0 deletions demoreel/release/installBaseStyles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The following metadata will be deployed:

| Metadata Type | API Name |
|--------------------------|------------------------|
| AuraDefinitionBundle | AppPage_3_9 |
| AuraDefinitionBundle | AppPage_4_8 |
| BrandingSet | LEXTHEMINGEasy_Spaces |
| ContentAsset | EasySpacesTile01 |
| ContentAsset | EasySpaces_Logo1 |
| ContentAsset | EasySpaces_Page_Dark1 |
| ContentAsset | easy_spaces_tile_small |
| LightningExperienceTheme | Easy_Spaces |
| LightningComponentBundle | imageGallery |
| LightningComponentBundle | imageTile |
| LightningComponentBundle | pill |
| LightningComponentBundle | pillList |

Generated Command sfdx force:package:install --package 04t2s000000cC1NAAU -u SIT --noprompt --publishwait=10 --wait=120 --securitytype=AdminsOnly --upgradetype=Mixed --apexcompile=package
4 changes: 4 additions & 0 deletions demoreel/release/mcBanner
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-------------------------Installing Dependency------------------------------------
Name: Marketing Cloud
Version Number: 231.0.0.1
-------------------------------------------------------------------------------
Loading

0 comments on commit 25db638

Please sign in to comment.