Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: run REPL preview test regardless of terminal type #34798

Closed
wants to merge 2 commits into from

Conversation

Trott
Copy link
Member

@Trott Trott commented Aug 16, 2020

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Aug 16, 2020
@nodejs-github-bot

This comment has been minimized.

Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests should fail if the env is set to dumb. If they don't, then that's something to fix.

@Trott
Copy link
Member Author

Trott commented Aug 16, 2020

These tests should fail if the env is set to dumb. If they don't, then that's something to fix.

Yeah, my hope is that the tests fail here (which is why I have this in draft mode) and then pass if we spawn a subprocess with a different TERM setting and possibly a few other modifications to the test.

@Trott Trott marked this pull request as ready for review August 19, 2020 14:22
@Trott Trott requested a review from BridgeAR August 19, 2020 14:23
@Trott
Copy link
Member Author

Trott commented Aug 19, 2020

@nodejs/repl

@Trott

This comment has been minimized.

@Trott
Copy link
Member Author

Trott commented Aug 19, 2020

Yeah, my hope is that the tests fail here (which is why I have this in draft mode) and then pass if we spawn a subprocess with a different TERM setting and possibly a few other modifications to the test.

Turns out it didn't need to do any spawning. Since the output never goes to the actual terminal anyway, we can set the TERM environment variable to whatever we want and run the test normally.

@Trott

This comment has been minimized.

@Trott
Copy link
Member Author

Trott commented Aug 20, 2020

@Trott
Copy link
Member Author

Trott commented Aug 20, 2020

@jasnell jasnell added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 20, 2020
@github-actions github-actions bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 20, 2020
@github-actions
Copy link
Contributor

Commit Queue failed
- Loading data for nodejs/node/pull/34798
✔  Done loading data for nodejs/node/pull/34798
----------------------------------- PR info ------------------------------------
Title      test: run REPL preview test regardless of terminal type (#34798)
Author     Rich Trott  (@Trott)
Branch     Trott:terminal-type -> nodejs:master
Labels     author ready, test
Commits    2
 - test: run REPL preview test regardless of terminal type
 - fixup! test: run REPL preview test regardless of terminal type
Committers 1
 - Rich Trott 
PR-URL: https://github.com/nodejs/node/pull/34798
Reviewed-By: Ruben Bridgewater 
Reviewed-By: James M Snell 
Reviewed-By: Mary Marchini 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/34798
Reviewed-By: Ruben Bridgewater 
Reviewed-By: James M Snell 
Reviewed-By: Mary Marchini 
--------------------------------------------------------------------------------
   ℹ  Last Full PR CI on 2020-08-20T02:19:41Z: https://ci.nodejs.org/job/node-test-pull-request/32864/
- Querying data of job/node-test-pull-request/32864/
✔  Build data downloaded
   ℹ  This PR was created on Sun, 16 Aug 2020 17:37:52 GMT
   ✔  Approvals: 3
   ✔  - Ruben Bridgewater (@BridgeAR) (TSC): https://github.com/nodejs/node/pull/34798#pullrequestreview-470512232
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/34798#pullrequestreview-470592782
   ✔  - Mary Marchini (@mmarchini) (TSC): https://github.com/nodejs/node/pull/34798#pullrequestreview-471078394
--------------------------------------------------------------------------------
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/master up to date...
From https://github.com/nodejs/node
 * branch              master     -> FETCH_HEAD
✔  origin/master is now up-to-date
- Downloading patch for 34798
✔  Downloaded patch to /home/runner/work/node/node/.ncu/34798/patch
--------------------------------------------------------------------------------
Applying: test: run REPL preview test regardless of terminal type
Applying: fixup! test: run REPL preview test regardless of terminal type
   ✔  Patches applied
There are 2 commits in the PR
Please run the following commands to complete landing

$ git rebase origin/master -i -x "git node land --amend" --autosquash
$ git node land --continue

@richardlau
Copy link
Member

Commit queue failed as at the moment it can only handle single commit pull requests (I forgot this too in another PR). This could be landed manually, but it could also be a good candidate to test out nodejs/node-core-utils#473. cc @mmarchini

mmarchini pushed a commit that referenced this pull request Aug 20, 2020
PR-URL: #34798
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Mary Marchini <[email protected]>
@mmarchini
Copy link
Contributor

Landed in 6130cdd

@mmarchini mmarchini closed this Aug 20, 2020
BethGriggs pushed a commit that referenced this pull request Aug 24, 2020
PR-URL: #34798
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Mary Marchini <[email protected]>
@danielleadams danielleadams mentioned this pull request Aug 25, 2020
addaleax pushed a commit that referenced this pull request Sep 22, 2020
PR-URL: #34798
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Mary Marchini <[email protected]>
addaleax pushed a commit that referenced this pull request Sep 22, 2020
PR-URL: #34798
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Mary Marchini <[email protected]>
@codebytere codebytere mentioned this pull request Sep 28, 2020
@targos targos removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Sep 5, 2021
@Trott Trott deleted the terminal-type branch April 14, 2022 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants