Promotion failed - new custom object fields and aura bundle
Promotion of work item from development sandbox to staging sandbox failed.
To Reproduce Steps to reproduce the behavior:
Work item: AuraDefinitionBundle | CHANGE | FlexiPage | CHANGE | Layout | CHANGE | CustomField | ADD | CustomField | ADD | CustomField | ADD | CustomField | ADD |
What Happened The deployment of the work items into the next stage failed. What can you do about it? View Details for more information on the failure. Details:
Unexpected error: { "status": 1, "result": { "checkOnly": false, "completedDate": "2021-08-06T16:05:41.000Z", "createdBy": "0054I000006wKpt", "createdByName": "Viktor Vrabel", "createdDate": "2021-08-06T14:55:43.000Z", "details": { "componentSuccesses": [ { "changed": "true", "componentType": "CustomField", "created": "true", "createdDate": "2021-08-06T14:55:52.000Z", "deleted": "false", "fileName": "objects/CMS_Custom__c.object", "fullName": "CMS_Custom__c.Focus_keyphrase__c", "id": "00N3H000001A3H2UAK", "success": "true" }, { "changed": "true", "componentType": "CustomField", "created": "true", "createdDate": "2021-08-06T14:55:52.000Z", "deleted": "false", "fileName": "objects/CMS_Custom__c.object", "fullName": "CMS_Custom__c.Meta_description__c", "id": "00N3H000001A3H3UAK", "success": "true" }, { "changed": "true", "componentType": "CustomField", "created": "true", "createdDate": "2021-08-06T14:55:52.000Z", "deleted": "false", "fileName": "objects/CMS_Custom__c.object", "fullName": "CMS_Custom__c.SEO_tilte__c", "id": "00N3H000001A3H4UAK", "success": "true" }, { "changed": "true", "componentType": "CustomField", "created": "true", "createdDate": "2021-08-06T14:55:52.000Z", "deleted": "false", "fileName": "objects/CMS_Custom__c.object", "fullName": "CMS_Custom__c.Slug__c", "id": "00N3H000001A3H5UAK", "success": "true" }, { "changed": "true", "componentType": "AuraDefinitionBundle", "created": "true", "createdDate": "2021-08-06T14:56:01.000Z", "deleted": "false", "fileName": "aura/CMS_custom_preview", "fullName": "CMS_custom_preview", "id": "0Ab3H0000000fklSAA", "success": "true" }, { "changed": "true", "componentType": "Layout", "created": "false", "createdDate": "2021-08-06T14:56:01.000Z", "deleted": "false", "fileName": "layouts/CMS_Custom__c-CMS Custom Layout.layout", "fullName": "CMS_Custom__c-CMS Custom Layout", "id": "00h3H000000GpFMQA0", "success": "true" }, { "changed": "true", "componentType": "FlexiPage", "created": "false", "createdDate": "2021-08-06T14:56:01.000Z", "deleted": "false", "fileName": "flexipages/CMS_Custom_Record_Page.flexipage", "fullName": "CMS_Custom_Record_Page", "id": "0M03H0000004kdNSAQ", "success": "true" }, { "changed": "true", "componentType": "", "created": "false", "createdDate": "2021-08-06T14:56:01.000Z", "deleted": "false", "fileName": "package.xml", "fullName": "package.xml", "success": "true" } ], "runTestResult": { "codeCoverage": [ { "id": "01p4I00000AN2ZrQAL", "locationsNotCovered": [ { "column": "0", "line": "4", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "6", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "7", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "8", "numExecutions": "0", "time": "-1.0" } ], "name": "DataTableForChatTranscriptPage", "namespace": { "$": { "xsi:nil": "true" } }, "numLocations": "4", "numLocationsNotCovered": "4", "type": "Class" }, { "id": "01p58000008l9b6AAA", "name": "HH_HHObject_TDTM", "namespace": "npsp", "numLocations": "8", "numLocationsNotCovered": "0", "type": "Class" }, { "id": "01q58000000kLiRAAU", "name": "TDTM_RecurringDonation", "namespace": "npsp", "numLocations": "2", "numLocationsNotCovered": "0", "type": "Trigger" }, { "id": "01p58000008l9ZUAAY", "name": "ACCT_ViewOverride_CTRL", "namespace": "npsp", "numLocations": "7", "numLocationsNotCovered": "0", "type": "Class" }, { "id": "01p4I00000AN8EzQAL", "locationsNotCovered": [ { "column": "0", "line": "38", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "40", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "48", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "50", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "53", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "55", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "58", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "60", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "61", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "62", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "64", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "67", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "69", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "72", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "74", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "77", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "79", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "80", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "81", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "83", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "91", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "93", "numExecutions": "0", "time": "-1.0" } ], "name": "fflib_Objects", "namespace": "npsp", "numLocations": "29", "numLocationsNotCovered": "22", "type": "Class" }, { "id": "01p58000008l9blAAA", "locationsNotCovered": { "column": "0", "line": "80", "numExecutions": "0", "time": "-1.0" }, "name": "OPP_PrimaryContact_BATCH", "namespace": "npsp", "numLocations": "20", "numLocationsNotCovered": "1", "type": "Class" }, { "id": "01p58000009kIe7AAE", "locationsNotCovered": [ { "column": "0", "line": "60", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "66", "numExecutions": "0", "time": "-1.0" }, { "column": "0", "line": "67", "numExecutions": "0", "time": "-1.0" }, { "c…
@TheMixDevOps It looks like this might be due to test coverage failures. Can you open the target (staging) org and go to Setup > Deployment Status to see more information on the deployment failure? This should give you some more information on the cause of the failure. We are aware that the errors aren't coming out clearly in DevOps Center and are working on fixing that.
Correct. Found about 353 apex code failures. They are completely unrelated to what I was deploying, but in the end I did my deployment successfully via changeset without failures.
Yep that is due to #27 not providing you with options on which test classes you run, and you have managed packages (fflib) so it's never going to work with the current way DevOps Center is built unfortunately.
On Tue, 10 Aug 2021, 3:44 am TheMixDevOps, @.***> wrote:
Correct. Found about 353 apex code failures. They are completely unrelated to what I was deploying, but in the end I did my deployment successfully via changeset without failures.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/forcedotcom/devops-center-feedback/issues/81#issuecomment-895414503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWUIN5B27P2OMV5L6OKCVLT4AHYPANCNFSM5BWHVILA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
The issue of not being able to only run local tests has been resolved in package version 2.12 of the DevOps Center. The issue of the output of test coverage failures not being very clear will be addressed in a later release.
Part of Work Item we have Global Action and page layout elements while promoting to production Promotion Options we selected as Default and it is giving following error INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations Please advise