important-bird-21355
05/18/2022, 7:27 PMpackage-lock.json
file in the root folder
Run cypress-io/github-action@v2
16
/usr/bin/docker exec b3d7e6c302caf9aa33aaecf1ef88e5dae194e0a7758f8ef63d055be204f8eb72 sh -c "cat /etc/*release | grep ^ID"
17
internal/fs/utils.js:269
18
throw err;
19
^
20
21
Error: ENOENT: no such file or directory, open '/__w/mimisbrunnr/mimisbrunnr/package-lock.json'
important-bird-21355
05/18/2022, 7:40 PMworking-directory
is what I was looking forimportant-bird-21355
05/18/2022, 9:18 PM- name: Run acceptance tests with Cypress π
uses: cypress-io/github-action@v2
with:
working-directory: e2e
browser: chrome
record: true
parallel: true
config: pageLoadTimeout=100000,baseUrl=http://localhost:1080
start: npm run app_server
wait-on: 'http://localhost:1080'
wait-on-timeout: 120
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
MIX_ENV: acceptance_tests
DEBUG: '@cypress/github-action'
you can see that baseUrl
and wait-on
pointing to the same url. Now, I can see that main app successfully responses to at least one request:important-bird-21355
05/18/2022, 9:18 PMWarning: 2022-05-18T21:04:34.089Z @cypress/github-action Separated 1 start commands npm run app_server
start server "npm run app_server command "npm run app_server"
current working directory "/__w/mimisbrunnr/mimisbrunnr/e2e"
2022-05-18T21:04:34.090Z @cypress/github-action parsed command: npm run app_server
waiting on "http://localhost:1080" with timeout of 60 seconds
Warning: 2022-05-18T21:04:34.091Z @cypress/github-action Waiting for urls http://localhost:1080
2022-05-18T21:04:34.092Z @cypress/github-action Waiting for url http://localhost:1080
Warning: 2022-05-18T21:04:34.092Z @cypress/github-action total ping timeout 90000
2022-05-18T21:04:34.092Z @cypress/github-action individual ping timeout 30000ms
Warning: 2022-05-18T21:04:34.092Z @cypress/github-action retries limit 3
2022-05-18T21:04:34.107Z @cypress/github-action got error {"name":"RequestError","code":"ECONNREFUSED","timings":{"start":1652907874098,"socket":1652907874099,"lookup":1652907874100,"error":1652907874101,"phases":{"wait":1,"dns":1,"total":3}}}
Warning: 2022-05-18T21:04:34.107Z @cypress/github-action 15ms undefined undefined ECONNREFUSED attempt 1
2022-05-18T21:04:34.108Z @cypress/github-action found command "/usr/local/bin/npm"
Warning: 2022-05-18T21:04:34.108Z @cypress/github-action with arguments run app_server
2022-05-18T21:04:34.108Z @cypress/github-action running "/usr/local/bin/npm" run app_server in /__w/mimisbrunnr/mimisbrunnr/e2e
Warning: 2022-05-18T21:04:34.108Z @cypress/github-action waiting for the command to finish? false
/usr/local/bin/npm run app_server
> gjallarhorn@1.0.0 app_server
> cd ../main && mix phx.server
important-bird-21355
05/18/2022, 9:19 PMwarning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell)
2022-05-18T21:04:35.109Z @cypress/github-action got error {"name":"RequestError","code":"ECONNREFUSED","timings":{"start":1652907875108,"socket":1652907875108,"lookup":1652907875108,"error":1652907875109,"phases":{"wait":0,"dns":0,"total":1}}}
Warning: 2022-05-18T21:04:35.109Z @cypress/github-action 1017ms undefined undefined ECONNREFUSED attempt 2
21:04:35.419 [info] Running MimisbrunnrWeb.Endpoint with cowboy 2.9.0 at 127.0.0.1:1080 (http)
21:04:35.428 [info] Access MimisbrunnrWeb.Endpoint at http://localhost:1080
[+] Starting static assets build with esbuild. Build mode development...
[+] Starting static assets build with esbuild. Build mode development...
21:04:36.251 request_id=FvBO9LpFQLx0rPYAAAFx [info] GET /
21:04:36.339 request_id=FvBO9LpFQLx0rPYAAAFx [info] Sent 200 in 87ms
2022-05-18T21:04:36.348Z @cypress/github-action pinging http://localhost:1080 has finished ok after 2256ms
important-bird-21355
05/18/2022, 9:19 PMWarning: 2022-05-18T21:04:36.349Z @cypress/github-action Running Cypress tests using NPM module API
2022-05-18T21:04:36.349Z @cypress/github-action requiring cypress dependency, cwd is /__w/mimisbrunnr/mimisbrunnr
Warning: 2022-05-18T21:04:36.349Z @cypress/github-action working directory /__w/mimisbrunnr/mimisbrunnr/e2e
2022-05-18T21:04:36.351Z @cypress/github-action resolved cypress /__w/mimisbrunnr/mimisbrunnr/e2e/node_modules/cypress/index.js
Warning: 2022-05-18T21:04:36.721Z @cypress/github-action Cypress config "pageLoadTimeout=100000,baseUrl=http://localhost:1080"
2022-05-18T21:04:36.722Z @cypress/github-action Determining build id by asking GitHub about run 2348169225
Warning: 2022-05-18T21:04:36.841Z @cypress/github-action Resource not accessible by integration
2022-05-18T21:04:36.841Z @cypress/github-action HttpError: Resource not accessible by integration
Warning: at /__w/_actions/cypress-io/github-action/v2/dist/index.js:58740:21
at processTicksAndRejections (internal/process/task_queues.js:97:5)
Warning: at async getCiBuildId (/__w/_actions/cypress-io/github-action/v2/dist/index.js:6230:18)
at async runTests (/__w/_actions/cypress-io/github-action/v2/dist/index.js:6468:33)
Error: Resource not accessible by integration
What exactly resource is not accessible by the integration?important-bird-21355
05/18/2022, 9:45 PM- name: Run acceptance tests with Cypress
run: npm run ci
working-directory: e2e
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
MIX_ENV: acceptance_tests
START_SERVER_AND_TEST_INSECURE: 1
DEBUG: start-server-and-test
acceptable-stone-76122
05/19/2022, 4:02 AMfresh-doctor-14925
05/19/2022, 9:02 AMcypress open
or cypress run
?fresh-doctor-14925
05/19/2022, 9:04 AM@here
on these channels. It's noisy and people are usually willing to help without such nudges πacceptable-stone-76122
05/19/2022, 10:13 AMfresh-doctor-14925
05/19/2022, 10:24 AMacceptable-stone-76122
05/19/2022, 10:26 AMadventurous-dream-20049
05/19/2022, 2:28 PMpowerful-translator-20726
05/20/2022, 3:58 PMpowerful-translator-20726
05/20/2022, 6:42 PMkind-minister-59159
05/23/2022, 7:58 PMgorgeous-bird-50464
05/24/2022, 1:44 AMgorgeous-bird-50464
05/24/2022, 1:45 AMYour Record Key ... is not valid with this projectId: ...
gorgeous-bird-50464
05/24/2022, 1:47 AMtall-carpenter-24673
05/24/2022, 1:53 PMpurple-appointment-88654
05/24/2022, 2:44 PMgray-easter-54566
05/24/2022, 7:22 PMexperimentalSessionAndOrigin
config option aims to solve this with`cy.origin` , but it currently does not work due to frame busting issues within google's javascript. The team has planned to look into the issue and is planning to have this supported in the future.bitter-apple-86316
05/25/2022, 9:01 AMbitter-apple-86316
05/25/2022, 9:01 AMnumerous-kangaroo-93739
05/25/2022, 3:19 PMlemon-oyster-64925
05/25/2022, 4:24 PMbest-honey-68720
05/25/2022, 4:34 PMprehistoric-restaurant-72560
05/26/2022, 9:23 AMfresh-doctor-14925
05/26/2022, 10:00 AM