mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-07 23:19:48 -06:00
* dependency: update Electron to 34 * setup workflows to run against binary branch and on all tests * changelog entry * node version did bump minorly * Update base-internal image to match new node version * fix typo * changelog updates * bumping to newest version just released today - hopefully solves glibc error * fix cy in cy * remove extra register_ts_node require * updated lockfile * upgrade better-sqlite3 * changelog * update electron in top level package.json * ts issue, update to use binary workflow for e35, update ancillary deps * update gh issue templates * bump missed image names and engines field * node 22 * snapgen? * ts issue, log errors even if err.stderr/stdout is null * more logging * defer http-proxy common.js due to regexp issue in v8 13.4.* - 13.8.91 * update images for node 22.15.1, use bullseye instead of buster for bettersqlite * use bullseye image for glibc2.31 build of bettersqlite * use electron-36 publish binary branch * node-abi update, set http-proxy deferred in darwin * update .node-version * attempt to patch http-proxy to immediately defer http-proxy/lib/http-proxy/common.js * empty commit [run ci] * better patch? * changelog * changelog * Updates v8 snapshots to fix windows build (#31918) * use node 22 in the v8 snapshot update workflow * index on windows-v8-snapshots:a013464197use node 22 in the v8 snapshot update workflow * index on windows-v8-snapshots:a013464197use node 22 in the v8 snapshot update workflow * index on windows-v8-snapshots:a013464197use node 22 in the v8 snapshot update workflow * run workflows on windows/mac --------- Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> * update protocol system test snapshots (#31925) * use snapshot to verify the error message on invalid json (#31926) * chore: account for all node: internal stacks when trying to calculate the code frame. Accounts additionally for node:diagnostics_channel (#31935) * Fixes electron 36 integrity checks (#31956) * update the fs.readFileSync integrity check expectation * maybe this fn is missing from the expected stack? * more debug, change the stack up a little * actual fn name is traceSync * logging * logging * remove logging from integrity check * maybe circle api changed? * correct params * inspect stack frames for differences * have to manually serialize the stack frames * change expectation * update expected global keys * additional allow list * update key allow list * increase zipfile size limit on non-windows builds * revert logging changes * Update scripts/binary/binary-integrity-check-source.js * increase timeout to 120s for darwin fsevents/native module test (#31975) * print out stdout for darwin test * try and fix test * update readme re: browsers-internal images, ensure module_api_spec binary test uses correct electron version * Update .circleci/workflows.yml Co-authored-by: Bill Glesias <bglesias@gmail.com> * Update .circleci/workflows.yml Co-authored-by: Bill Glesias <bglesias@gmail.com> * trigger 15.0.0 binary pipeline rather than electron-36 specific one * Update cli/CHANGELOG.md Co-authored-by: Bill Glesias <bglesias@gmail.com> * Update cli/CHANGELOG.md --------- Co-authored-by: Jennifer Shehane <jennifer@cypress.io> Co-authored-by: Ryan Manuel <ryanm@cypress.io> Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com> Co-authored-by: cypress-bot[bot] <+cypress-bot[bot]@users.noreply.github.com> Co-authored-by: Bill Glesias <bglesias@gmail.com>
46 lines
1.7 KiB
JavaScript
46 lines
1.7 KiB
JavaScript
const fs = require('fs-extra')
|
|
const os = require('os')
|
|
const path = require('path')
|
|
const fetch = require('node-fetch')
|
|
const { getNextVersionForBinary } = require('../get-next-version')
|
|
|
|
;(async () => {
|
|
const pipelineInfoFilePath = path.join(os.homedir(), 'triggered_pipeline.json')
|
|
|
|
const { nextVersion } = await getNextVersionForBinary()
|
|
|
|
const body = JSON.stringify({
|
|
branch: 'release/15.0.0',
|
|
parameters: {
|
|
temp_dir: os.tmpdir(),
|
|
sha: process.env.CIRCLE_SHA1,
|
|
job_name: process.env.CIRCLE_JOB,
|
|
triggered_workflow_id: process.env.CIRCLE_WORKFLOW_ID,
|
|
triggered_job_url: process.env.CIRCLE_BUILD_URL,
|
|
branch: 'release/15.0.0',
|
|
should_persist_artifacts: Boolean(process.env.SHOULD_PERSIST_ARTIFACTS),
|
|
binary_version: nextVersion,
|
|
},
|
|
})
|
|
|
|
try {
|
|
console.log('Triggering new pipeline in cypress-publish-binary project...')
|
|
const response = await fetch('https://circleci.com/api/v2/project/github/cypress-io/cypress-publish-binary/pipeline', { method: 'POST', headers: { 'Circle-Token': process.env.CIRCLE_TOKEN, 'content-type': 'application/json' }, body })
|
|
const pipeline = await response.json()
|
|
|
|
console.log(pipeline)
|
|
|
|
console.log(`Triggered pipeline: https://app.circleci.com/pipelines/github/cypress-io/cypress-publish-binary/${pipeline.number}`)
|
|
|
|
try {
|
|
console.log(`Saving pipeline info in ${pipelineInfoFilePath} ...`)
|
|
|
|
await fs.writeFile(path.resolve(pipelineInfoFilePath), JSON.stringify(pipeline))
|
|
} catch (error) {
|
|
throw new Error(`error writing triggered pipeline info ${error}`)
|
|
}
|
|
} catch (error) {
|
|
throw new Error(`error triggering new pipeline ${error}`)
|
|
}
|
|
})()
|