Skip to content

Commit

Permalink
chore: remove unused attempt backport script
Browse files Browse the repository at this point in the history
This was a very neat part of the bot at one point, but ended up creating
some noise and got disabled.

It used to try backport of patches from created & updated PRs against
the `${version}.x-staging`s and as a result, added
`lts-watch-v${version}.x` or `dont-land-on-v${version}.x` when
applicable.

When it was operationale, it tried to apply patches against Node.js
versions: 4, 6 and 7. Those version are all end-of-life now.

For the bot to try backport of patches for newer versions of Node.js,
those versions would have to be added explicitly in the bot' source code.
That has obviously not happened, assuming the reason being it wasn't
as helpful afterall.
  • Loading branch information
phillipj committed Nov 15, 2020
1 parent d4969e0 commit d1d8a30
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 254 deletions.
241 changes: 0 additions & 241 deletions scripts/attempt-backport.js

This file was deleted.

13 changes: 0 additions & 13 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@ const glob = require('glob')
const logger = require('./lib/logger')
const { spawnSync } = require('child_process')

if (process.env.NODE_REPO_DIR) {
const fs = require('fs')
global._node_repo_dir = fs.realpathSync(process.env.NODE_REPO_DIR)
const out = spawnSync('git', ['status'], { cwd: global._node_repo_dir })

if (out.status !== 0) {
logger.info(out.stdout)
logger.error(out.stderr)
logger.error('Bad NODE_REPO_DIR. Backport patch testing disabled.')
global._node_repo_dir = false
}
}

const port = process.env.PORT || 3000
const scriptsToLoad = process.env.SCRIPTS || './scripts/**/*.js'
const { app, events } = require('./app')
Expand Down

0 comments on commit d1d8a30

Please sign in to comment.