Closed muriukialex closed 9 months ago
It seems, it does not properly find the specs, so the spec names are not absolute. I added a fix, to be released soon. BUT: you are using Cypress v7 that is very very old. I would upgrade ASAP to the new Cypress version, ok.
Also: could you post the DEBUG logs? It seems you only have partial logs, I would like to see which specs it finds
It seems, it does not properly find the specs, so the spec names are not absolute. I added a fix, to be released soon. BUT: you are using Cypress v7 that is very very old. I would upgrade ASAP to the new Cypress version, ok.
Alright, my team and I have been contemplating doing the upgrade.
Also: could you post the DEBUG logs? It seems you only have partial logs, I would like to see which specs it finds
Posting the logs in a bit.
Interestingly enough, after setting the SPLIT_SUMMARY
yml env config to false
, the error vanished
- name: Run server and tests
uses: cypress-io/github-action@v6
env:
SPLIT: ${{ strategy.job-total }}
SPLIT_INDEX: ${{ strategy.job-index }}
SPLIT_SUMMARY: false # here
DEBUG: cypress-split
with:
install: false
working-directory: dashboard
browser: ${{ matrix.browser }}
config: baseUrl=${{ matrix.base-url }}, port= ${{ matrix.port }}
command: npm run cypress
Yeah, I think it was crashing because the relative name was undefined, which caused the summary to throw an error, so I fixed it in https://github.com/bahmutov/cypress-split/commit/a9125bdd76b19c5fdbe104f43d3f6b4251c44c3f
Also: could you post the DEBUG logs? It seems you only have partial logs, I would like to see which specs it finds
Run cypress-io/github-action@v6
Skipping install because install parameter is false
Using custom test command: npm run cypress
run tests command "npm run cypress"
current working directory "/home/runner/work/smsl-frontend/smsl-frontend/dashboard"
/opt/hostedtoolcache/node/18.18.0/x64/bin/npm run cypress
> dashboard@0.1.0 cypress
> PORT=3001 npm run dev & npx cypress run
> dashboard@0.1.0 dev
> react-scripts start
It looks like this is your first time using Cypress: 7.7.0
[STARTED] Task without title.
[SUCCESS] Task without title.
Opening Cypress...
(node:3054) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:3054) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...
cypress-split Cypress config env +0ms
cypress-split { CACHE_FOLDER: '/home/runner/.cache/Cypress' } +0ms
cypress-split current working directory /home/runner/work/smsl-frontend/smsl-frontend/dashboard +2ms
cypress-split project root folder /home/runner/work/smsl-frontend/smsl-frontend/dashboard +1ms
cypress-split: there are 127 found specs
cypress-split: chunk 1 of 4
cypress-split get chunk { specs: [ 'cypress/integration/BulkData/BulkDataOutbox.spec.js', 'cypress/integration/account-verification/email-confirmation.spec.js', 'cypress/integration/account-verification/email-verification.spec.js', 'cypress/integration/account-verification/phone-verification.spec.js', 'cypress/integration/accounts/account-switching.spec.js', 'cypress/integration/analytics/account-analytics.spec.js', 'cypress/integration/apiKeys/apiKeys.spec.js', 'cypress/integration/banners/banners.spec.js', 'cypress/integration/billing/airtel.spec.js', 'cypress/integration/billing/mpesa.spec.js', 'cypress/integration/billing/paypal_transaction.spec.js', 'cypress/integration/billing/pricing_tier_balance.spec.js', 'cypress/integration/billing/transactions.spec.js', 'cypress/integration/billing/walkthrough.spec.js', 'cypress/integration/blockContactUpdate/block.spec.js', 'cypress/integration/blocklist/blocklist.spec.js', 'cypress/integration/contacts/contacts.draft.spec.js', 'cypress/integration/contacts/contacts.page.spec.js', 'cypress/integration/contacts/create_contact.spec.js', 'cypress/integration/contacts/delete_contacts.spec.js', 'cypress/integration/contacts/edit_contact.spec.js', 'cypress/integration/contacts/list_contacts.spec.js', 'cypress/integration/contacts/upload_contacts.spec.js', 'cypress/integration/contacts/upload_contacts_draft.spec.js', 'cypress/integration/enterprise/index.spec.js', 'cypress/integration/enterprise/summary.spec.js', 'cypress/integration/expiredSession/index.spec.js', 'cypress/integration/groups/creategroup.spec.js', 'cypress/integration/groups/deletegroup.spec.js', 'cypress/integration/groups/group.draft.spec.js', 'cypress/integration/groups/groupdetails.spec.js', 'cypress/integration/groups/selectcontacts.spec.js', 'cypress/integration/groups/update_group.spec.js', 'cypress/integration/groups/viewgroups.spec.js', 'cypress/integration/header/header.spec.js', 'cypress/integration/inbox/delete_inbox.spec.js', 'cypress/integration/inbox/draft.inbox.spec.js', 'cypress/integration/inbox/inbox.spec.js', 'cypress/integration/inbox/update_inbox.spec.js', 'cypress/integration/login/login.spec.js', 'cypress/integration/logout/logout.spec.js', 'cypress/integration/maintainanceMode/maintanance.spec.js', 'cypress/integration/messagedetails/messagedetails.spec.js', 'cypress/integration/outbox/outbox.overview.js', 'cypress/integration/pagenotfound/index.spec.js', 'cypress/integration/pending-drafts/banner.spec.js', 'cypress/integration/pending-drafts/list.spec.js', 'cypress/integration/registration/registration.spec.js', 'cypress/integration/resetpassword/change_password.spec.js', 'cypress/integration/resetpassword/request_password_reset.spec.js', 'cypress/integration/scheduled-bulk-data_details/dates.spec.js', 'cypress/integration/scheduled-bulk-data_details/details.spec.js', 'cypress/integration/scheduled-message-details/dates.spec.js', 'cypress/integration/scheduled-message-details/details.spec.js', 'cypress/integration/scheduledBulkData/ScheduledOutbox.spec.js', 'cypress/integration/sendsms/compose.message.spec.js', 'cypress/integration/sendsms/custom.date.spec.js', 'cypress/integration/sendsms/discard.spec.js', 'cypress/integration/sendsms/drafts.spec.js', 'cypress/integration/sendsms/final.confirmation.spec.js', 'cypress/integration/sendsms/pre-populate-sheduling.spec.js', 'cypress/integration/sendsms/previousdraft.selection.spec.js', 'cypress/integration/sendsms/repeated.recipients.spec.js', 'cypress/integration/sendsms/review.recipients.spec.js', 'cypress/integration/sendsms/reviewmessage.spec.js', 'cypress/integration/sendsms/schedule.spec.js', 'cypress/integration/sendsms/select-all-contacts.spec.js', 'cypress/integration/sendsms/select.contacts.spec.js', 'cypress/integration/sendsms/summary.spec.js', 'cypress/integration/sendsms/upload.spec.js', 'cypress/integration/settings/change_password.spec.js', 'cypress/integration/singleAttachmentView/single.attachment.spec.js', 'cypress/integration/billing/lowBalance/create_lowbalance.spec.js', 'cypress/integration/billing/lowBalance/list_lowbalance.spec.js', 'cypress/integration/billing/lowBalance/update_lowbalance.spec.js', 'cypress/integration/blocklist/addtoblocklist/manual.spec.js', 'cypress/integration/bulkdata/sendBulkData/confirmNsend-bulkdata-transaction.spec.js', 'cypress/integration/bulkdata/sendBulkData/discard-bulkData-transaction.spec.js', 'cypress/integration/bulkdata/sendBulkData/review-bulkdata-recipients.spec.js', 'cypress/integration/bulkdata/sendBulkData/schedule-bulkDataTransaction.spec.js', 'cypress/integration/bulkdata/sendBulkData/select-bulkdata-recipients.spec.js', 'cypress/integration/enterprise/accountdetails/account.assign_sender_ids.spec.js', 'cypress/integration/enterprise/accountdetails/account.deassign_sender_ids.spec.js', 'cypress/integration/enterprise/accountdetails/account.groups.spec.js', 'cypress/integration/enterprise/accountdetails/account.keywords.spec.js', 'cypress/integration/enterprise/accountdetails/account.messages.spec.js', 'cypress/integration/enterprise/accountdetails/account.senderids.spec.js', 'cypress/integration/enterprise/accountdetails/account.shortcodes.spec.js', 'cypress/integration/enterprise/accountdetails/account.spec.js', 'cypress/integration/enterprise/accountdetails/account.transactions.spec.js', 'cypress/integration/enterprise/accountdetails/account.users.spec.js', 'cypress/integration/enterprise/accountdetails/adduser.spec.js', 'cypress/integration/enterprise/accountdetails/updateuser.spec.js', 'cypress/integration/enterprise/accounts/createaccount.spec.js', 'cypress/integration/enterprise/accounts/listaccounts.spec.js', 'cypress/integration/enterprise/accounts/updateaccounts.spec.js', 'cypress/integration/enterprise/messages/organization.messages.spec.js', 'cypress/integration/enterprise/settings/enterprise.avatar.update.spec.js', 'cypress/integration/enterprise/settings/enterprise.profile.spec.js', 'cypress/integration/enterprise/users/invite.spec.js', ... 27 more items ], splitN: 4, splitIndex: 0 } +10ms
cypress-split: specs from the current directory /home/runner/work/smsl-frontend/smsl-frontend/dashboard
cypress-split split specs +7ms
cypress-split [
cypress-split 'cypress/integration/BulkData/BulkDataOutbox.spec.js',
cypress-split 'cypress/integration/account-verification/email-confirmation.spec.js',
cypress-split 'cypress/integration/account-verification/email-verification.spec.js',
cypress-split 'cypress/integration/account-verification/phone-verification.spec.js',
cypress-split 'cypress/integration/accounts/account-switching.spec.js',
cypress-split 'cypress/integration/analytics/account-analytics.spec.js',
cypress-split 'cypress/integration/apiKeys/apiKeys.spec.js',
cypress-split 'cypress/integration/banners/banners.spec.js',
cypress-split 'cypress/integration/billing/airtel.spec.js',
cypress-split 'cypress/integration/billing/mpesa.spec.js',
cypress-split 'cypress/integration/billing/paypal_transaction.spec.js',
cypress-split 'cypress/integration/billing/pricing_tier_balance.spec.js',
cypress-split 'cypress/integration/billing/transactions.spec.js',
cypress-split 'cypress/integration/billing/walkthrough.spec.js',
cypress-split 'cypress/integration/blockContactUpdate/block.spec.js',
cypress-split 'cypress/integration/blocklist/blocklist.spec.js',
cypress-split 'cypress/integration/contacts/contacts.draft.spec.js',
cypress-split 'cypress/integration/contacts/contacts.page.spec.js',
cypress-split 'cypress/integration/contacts/create_contact.spec.js',
cypress-split 'cypress/integration/contacts/delete_contacts.spec.js',
cypress-split 'cypress/integration/contacts/edit_contact.spec.js',
cypress-split 'cypress/integration/contacts/list_contacts.spec.js',
cypress-split 'cypress/integration/contacts/upload_contacts.spec.js',
cypress-split 'cypress/integration/contacts/upload_contacts_draft.spec.js',
cypress-split 'cypress/integration/enterprise/index.spec.js',
cypress-split 'cypress/integration/enterprise/summary.spec.js',
cypress-split 'cypress/integration/expiredSession/index.spec.js',
cypress-split 'cypress/integration/groups/creategroup.spec.js',
cypress-split 'cypress/integration/groups/deletegroup.spec.js',
cypress-split 'cypress/integration/groups/group.draft.spec.js',
cypress-split 'cypress/integration/groups/groupdetails.spec.js',
cypress-split 'cypress/integration/groups/selectcontacts.spec.js'
cypress-split ] +0ms
k spec
-- -------------------------------------------------------------------
1 cypress/integration/BulkData/BulkDataOutbox.spec.js
2 cypress/integration/account-verification/email-confirmation.spec.js
3 cypress/integration/account-verification/email-verification.spec.js
4 cypress/integration/account-verification/phone-verification.spec.js
5 cypress/integration/accounts/account-switching.spec.js
6 cypress/integration/analytics/account-analytics.spec.js
7 cypress/integration/apiKeys/apiKeys.spec.js
8 cypress/integration/banners/banners.spec.js
9 cypress/integration/billing/airtel.spec.js
10 cypress/integration/billing/mpesa.spec.js
11 cypress/integration/billing/paypal_transaction.spec.js
12 cypress/integration/billing/pricing_tier_balance.spec.js
13 cypress/integration/billing/transactions.spec.js
14 cypress/integration/billing/walkthrough.spec.js
15 cypress/integration/blockContactUpdate/block.spec.js
16 cypress/integration/blocklist/blocklist.spec.js
17 cypress/integration/contacts/contacts.draft.spec.js
18 cypress/integration/contacts/contacts.page.spec.js
19 cypress/integration/contacts/create_contact.spec.js
20 cypress/integration/contacts/delete_contacts.spec.js
21 cypress/integration/contacts/edit_contact.spec.js
22 cypress/integration/contacts/list_contacts.spec.js
23 cypress/integration/contacts/upload_contacts.spec.js
24 cypress/integration/contacts/upload_contacts_draft.spec.js
25 cypress/integration/enterprise/index.spec.js
26 cypress/integration/enterprise/summary.spec.js
27 cypress/integration/expiredSession/index.spec.js
28 cypress/integration/groups/creategroup.spec.js
29 cypress/integration/groups/deletegroup.spec.js
30 cypress/integration/groups/group.draft.spec.js
31 cypress/integration/groups/groupdetails.spec.js
32 cypress/integration/groups/selectcontacts.spec.js
cypress-split setting the spec pattern to +15ms
cypress-split [
cypress-split 'cypress/integration/BulkData/BulkDataOutbox.spec.js',
cypress-split 'cypress/integration/account-verification/email-confirmation.spec.js',
cypress-split 'cypress/integration/account-verification/email-verification.spec.js',
cypress-split 'cypress/integration/account-verification/phone-verification.spec.js',
cypress-split 'cypress/integration/accounts/account-switching.spec.js',
cypress-split 'cypress/integration/analytics/account-analytics.spec.js',
cypress-split 'cypress/integration/apiKeys/apiKeys.spec.js',
cypress-split 'cypress/integration/banners/banners.spec.js',
cypress-split 'cypress/integration/billing/airtel.spec.js',
cypress-split 'cypress/integration/billing/mpesa.spec.js',
cypress-split 'cypress/integration/billing/paypal_transaction.spec.js',
cypress-split 'cypress/integration/billing/pricing_tier_balance.spec.js',
cypress-split 'cypress/integration/billing/transactions.spec.js',
cypress-split 'cypress/integration/billing/walkthrough.spec.js',
cypress-split 'cypress/integration/blockContactUpdate/block.spec.js',
cypress-split 'cypress/integration/blocklist/blocklist.spec.js',
cypress-split 'cypress/integration/contacts/contacts.draft.spec.js',
cypress-split 'cypress/integration/contacts/contacts.page.spec.js',
cypress-split 'cypress/integration/contacts/create_contact.spec.js',
cypress-split 'cypress/integration/contacts/delete_contacts.spec.js',
cypress-split 'cypress/integration/contacts/edit_contact.spec.js',
cypress-split 'cypress/integration/contacts/list_contacts.spec.js',
cypress-split 'cypress/integration/contacts/upload_contacts.spec.js',
cypress-split 'cypress/integration/contacts/upload_contacts_draft.spec.js',
cypress-split 'cypress/integration/enterprise/index.spec.js',
cypress-split 'cypress/integration/enterprise/summary.spec.js',
cypress-split 'cypress/integration/expiredSession/index.spec.js',
cypress-split 'cypress/integration/groups/creategroup.spec.js',
cypress-split 'cypress/integration/groups/deletegroup.spec.js',
cypress-split 'cypress/integration/groups/group.draft.spec.js',
cypress-split 'cypress/integration/groups/groupdetails.spec.js',
cypress-split 'cypress/integration/groups/selectcontacts.spec.js'
cypress-split ] +0ms
cypress-split setting test files +2ms
└────────────────────────────────────────────────────────────────────────────────────────────────┘
cypress-split shouldWriteSummary true +50ms
Could not find spec results for cypress/integration/BulkData/BulkDataOutbox.spec.js
Could not find spec results for cypress/integration/account-verification/email-confirmation.spec.js
Could not find spec results for cypress/integration/account-verification/email-verification.spec.js
Could not find spec results for cypress/integration/account-verification/phone-verification.spec.js
Could not find spec results for cypress/integration/accounts/account-switching.spec.js
Could not find spec results for cypress/integration/analytics/account-analytics.spec.js
Could not find spec results for cypress/integration/apiKeys/apiKeys.spec.js
Could not find spec results for cypress/integration/banners/banners.spec.js
Could not find spec results for cypress/integration/billing/airtel.spec.js
Could not find spec results for cypress/integration/billing/mpesa.spec.js
Could not find spec results for cypress/integration/billing/paypal_transaction.spec.js
Could not find spec results for cypress/integration/billing/pricing_tier_balance.spec.js
Could not find spec results for cypress/integration/billing/transactions.spec.js
Could not find spec results for cypress/integration/billing/walkthrough.spec.js
Could not find spec results for cypress/integration/blockContactUpdate/block.spec.js
Could not find spec results for cypress/integration/blocklist/blocklist.spec.js
Could not find spec results for cypress/integration/contacts/contacts.draft.spec.js
Could not find spec results for cypress/integration/contacts/contacts.page.spec.js
Could not find spec results for cypress/integration/contacts/create_contact.spec.js
Could not find spec results for cypress/integration/contacts/delete_contacts.spec.js
Could not find spec results for cypress/integration/contacts/edit_contact.spec.js
Could not find spec results for cypress/integration/contacts/list_contacts.spec.js
Could not find spec results for cypress/integration/contacts/upload_contacts.spec.js
Could not find spec results for cypress/integration/contacts/upload_contacts_draft.spec.js
Could not find spec results for cypress/integration/enterprise/index.spec.js
Could not find spec results for cypress/integration/enterprise/summary.spec.js
Could not find spec results for cypress/integration/expiredSession/index.spec.js
Could not find spec results for cypress/integration/groups/creategroup.spec.js
Could not find spec results for cypress/integration/groups/deletegroup.spec.js
Could not find spec results for cypress/integration/groups/group.draft.spec.js
Could not find spec results for cypress/integration/groups/groupdetails.spec.js
Could not find spec results for cypress/integration/groups/selectcontacts.spec.js
An error was thrown in your plugins file while executing the handler for the 'after:run' event.
The error we received was:
TypeError: Cannot destructure property 'header' of 'cell' as it is undefined.
at /home/runner/work/smsl-frontend/smsl-frontend/dashboard/node_modules/@actions/core/src/summary.ts:238:20
at Array.map (<anonymous>)
at /home/runner/work/smsl-frontend/smsl-frontend/dashboard/node_modules/@actions/core/src/summary.ts:233:12
at Array.map (<anonymous>)
at Summary.addTable (/home/runner/work/smsl-frontend/smsl-frontend/dashboard/node_modules/@actions/core/src/summary.ts:231:8)
at Object.handler (/home/runner/work/smsl-frontend/smsl-frontend/dashboard/node_modules/cypress-split/src/index.js:351:14)
at invoke (/home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:22:16)
at /home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/lib/plugins/util.js:45:14
at tryCatcher (/home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/util.js:16:23)
at Function.Promise.attempt.Promise.try (/home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/node_modules/bluebird/js/release/method.js:39:29)
at Object.wrapChildPromise (/home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/lib/plugins/util.js:44:23)
at wrapChildPromise (/home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:112:10)
at execute (/home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:125:14)
at EventEmitter.<anonymous> (/home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/lib/plugins/child/run_plugins.js:202:5)
at EventEmitter.emit (events.js:315:20)
at process.<anonymous> (/home/runner/.cache/Cypress/7.7.0/Cypress/resources/app/packages/server/lib/plugins/util.js:19:22)
Error: The process '/opt/hostedtoolcache/node/18.18.0/x64/bin/npm' failed with exit code 1
:tada: This issue has been resolved in version 1.15.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Below is an error I get after using the
cypress-split
package to run my cypress tests for my GitHub actions workflowHere's the error
I'm using cypress version
7.4.0
and the cypress-split version1.13.0
Here's the way I have my Github workflow code
npm run cypress
runs this script commandAttached below is my Github workflow file for more context
Any assistance with be well appreciated @bahmutov @vallme2003 @Baune8D