GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: replace indexOf with includes and startsWith by nataly87s · Pull Request #13852 · nodejs/node

Conversation

@nataly87s

@nataly87s nataly87s commented Jun 21, 2017

Copy link
Copy Markdown

changed all the tests that the issue #12586 was relevant to

this is my first contribution #goodnessSquad

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vsemozhetbyt reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot nodejs-github-bot added addons Issues and PRs related to native addons. doc Issues and PRs related to Node.js documentation. test Issues and PRs related to Node.js core tests and test infrastructure. tools Issues and PRs related to the tools directory. labels Jun 21, 2017
benjamingr
benjamingr approved these changes Jun 21, 2017
View reviewed changes

@benjamingr benjamingr left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nice work. Please feel free to also give us any feedback about the onboarding process today.

All the changes LGTM

#goodnessSquad

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@vsemozhetbyt

vsemozhetbyt commented Jun 21, 2017

Copy link
Copy Markdown
Contributor

CI: https://ci.nodejs.org/job/node-test-pull-request/8787/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vsemozhetbyt

vsemozhetbyt commented Jun 21, 2017

Copy link
Copy Markdown
Contributor

CI seems OK, 2 unstable results due to a flaky test.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vsemozhetbyt
vsemozhetbyt approved these changes Jun 21, 2017
View reviewed changes
jasnell
jasnell approved these changes Jun 22, 2017
View reviewed changes
cjihrig
cjihrig approved these changes Jun 22, 2017
View reviewed changes
@benjamingr benjamingr mentioned this pull request Jun 22, 2017
Onboarding first time contributors nodejs/CTC#147
Closed
mhdawson
mhdawson approved these changes Jun 23, 2017
View reviewed changes
refack
refack approved these changes Jun 25, 2017
View reviewed changes
Comment thread test/parallel/test-domain-top-level-error-handler-throw.js Outdated

@refack refack Jun 25, 2017

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

(non-blocking) Nit-Lite: Just for this case I'd use

assert.strictEqual(stderrOutput.includes(domainErrHandlerExMessage), true);

for the symmetry

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tniessen

tniessen commented Jul 2, 2017

Copy link
Copy Markdown
Member

Pre-land CI: https://ci.nodejs.org/job/node-test-pull-request/8926/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen

tniessen commented Jul 2, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@nataly87s It seems like you accidentally pushed a merge commit instead of your rebased changes. This makes it difficult to run CI against your changes and also requires a manual rebase while landing this PR. I assume you added https://github.com/nodejs/node.git as the upstream repository. If you did not, you can add it like this:

git remote add upstream https://github.com/nodejs/node.git

Please follow these steps to perform a proper rebase:

git reset --hard 44cfad0a5e41c99ab3bef41e5cf5b9c4f7ed742e
git fetch upstream
git rebase upstream/master

There will likely be some conflicts at this point. Running git status shows you a list of "Unmerged paths", the files with conflicts will be marked as "both modified". After fixing the rebase conflicts in these files, you can continue:

git rebase --continue

If everything worked, you should have a single commit on top of our upstream master containing your changes. You can push the changes to your repository using

git push origin master --force

By the way, you usually don't want to create pull requests from a master branch of your own repository. Most people create a new branch for each PR, this makes it simpler to work on multiple PRs at the same time and to rebase changes.

If you need further assistance, please let me know.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen tniessen self-assigned this Jul 2, 2017
@nataly87s

nataly87s commented Jul 2, 2017

Copy link
Copy Markdown
Author

@tniessen Thanks, I'll do it as soon as I get to my laptop

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nataly87s

nataly87s commented Jul 2, 2017

Copy link
Copy Markdown
Author

@tniessen I did the merge directly in github, but i tried to do what you said anyway...
When i tried to do

git remote add origin https://github.com/nodejs/node.git

I got this message

fatal: remote origin already exists.

I usually use SourceTree for anything related to git, so I'm kinda slow with it. Sorry ¯\(ツ)/¯

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack

refack commented Jul 2, 2017

Copy link
Copy Markdown
Contributor

git remote add origin https://github.com/nodejs/node.git

you actually need to do:

git remote add upstream https://github.com/nodejs/node.git

then do

git remove -v

should look something like:

d:\code\node-cur$ git remote -v
origin  https://github.com/refack/node.git (fetch)
origin  https://github.com/refack/node.git (push)
upstream        https://github.com/nodejs/node.git (fetch)
upstream        https://github.com/nodejs/node.git (push)

but with your handle

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen

tniessen commented Jul 2, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Sorry, my bad, @refack is correct, origin is your own repo. I also forgot that you need to force-push to master (instead of a normal push which won't let you overwrite existing history), I edited my comment.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Nataly Shrits
test: replace indexOf with includes and startsWith
4a4090d
Refs: nodejs#12586
@nataly87s

nataly87s commented Jul 2, 2017

Copy link
Copy Markdown
Author

Ok, I did the rebase, but then

nataly-mac:node nataly$ git push origin master
To https://github.com/nataly87s/node.git
 ! [rejected]              master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/nataly87s/node.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tniessen

tniessen commented Jul 2, 2017

Copy link
Copy Markdown
Member

@nataly87s That's what I am talking about ("force push"), you need to use git push --force origin master. This allows to overwrite existing history.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nataly87s
nataly87s force-pushed the master branch from f5325d1 to 4a4090d Compare July 2, 2017 20:46
@nataly87s

nataly87s commented Jul 2, 2017

Copy link
Copy Markdown
Author

Done.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack

refack commented Jul 2, 2017

Copy link
Copy Markdown
Contributor

So git protects you from trying to push something that is not a direct extension of the current tree (something with just more commit). There are two ways to override this:

  1. git push --force-with-lease will push it git can recognize all the commits you have locally and remotely (which is what happens when you rebase)
  2. The stronger git push --force or git push -f which will push you branch anyway.

I see by now @tniessen answer, but I'm posting anyway for context and posterity...

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack

refack commented Jul 2, 2017

Copy link
Copy Markdown
Contributor

Done.

👍
image

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack

refack commented Jul 2, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

How's the weather there? It's been quite Israeli here (Boston) this week (33° with 90% humidity), but with crazy 100mm 2-hour rain storms every other day, and golf ball sized hail ⛳️ once a week.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@refack

refack commented Jul 2, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Setting it up for @tniessen to land: https://ci.nodejs.org/job/node-test-commit/10888/ 🏐

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nataly87s

nataly87s commented Jul 2, 2017

Copy link
Copy Markdown
Author

I don't know whats the temperature, but it's hot as hell.
Even the water at the beach is next to boiling hot. But at least there's AC everywhere (except the beach)

refack reacted with confused emoji refack reacted with heart emoji
All reactions
  • 😕 1 reaction
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 15, 2021
[Snyk] Fix for 1 vulnerabilities Zintexiss/node-22#60
Open
[Snyk] Fix for 1 vulnerabilities baby636/node#22
Open
[Snyk] Fix for 1 vulnerabilities Dmarch28/node#37
Open
[Snyk] Fix for 1 vulnerabilities baby636/node#23
Open
[Snyk] Security upgrade eslint from 6.8.0 to 7.16.0 baby636/node#24
Open
[Snyk] Security upgrade eslint from 5.16.0 to 7.16.0 Zintexiss/node-22#62
Open
[Snyk] Security upgrade eslint from 5.16.0 to 7.16.0 Zintexiss/node-22#63
Open
[Snyk] Fix for 1 vulnerabilities ron-a20/node#45
Open
[Snyk] Fix for 1 vulnerabilities Rednickle/node-1#32
Open
[Snyk] Fix for 1 vulnerabilities meghasfdc/node#46
Open
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#36
Open
[Snyk] Security upgrade eslint from 5.16.0 to 7.16.0 baby636/node#25
Open
[Snyk] Fix for 1 vulnerabilities Zintexiss/node-22#64
Open
[Snyk] Fix for 1 vulnerabilities baby636/node#26
Open
[Snyk] Fix for 1 vulnerabilities ryan-ally/node#41
Open
[Snyk] Fix for 1 vulnerabilities 137717unity/node#38
Open
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#14
Open
[Snyk] Fix for 1 vulnerabilities kissofire/node#47
Open
[Snyk] Fix for 1 vulnerabilities ryan-ally/node#42
Open
[Snyk] Security upgrade eslint from 5.16.0 to 7.16.0 Zintexiss/node-22#65
Open
[Snyk] Security upgrade eslint from 5.16.0 to 7.16.0 ryan-ally/node#43
Open
[Snyk] Security upgrade eslint from 5.16.0 to 7.16.0 ryan-ally/node#44
Open
[Snyk] Fix for 1 vulnerabilities sitedata/node#37
Open
[Snyk] Security upgrade eslint from 6.8.0 to 7.16.0 ryan-ally/node#45
Open
[Snyk] Security upgrade eslint from 5.16.0 to 7.16.0 ryan-ally/node#46
Open
[Snyk] Security upgrade eslint from 6.8.0 to 7.16.0 Mement-Mori/node#12
Open
[Snyk] Security upgrade eslint from 6.8.0 to 7.16.0 MaxMood96/node#13
Open
[Snyk] Security upgrade eslint from 5.16.0 to 7.16.0 baby636/node#27
Open
[Snyk] Fix for 1 vulnerabilities molllyn1/node#27
Open
@snyk-bot snyk-bot mentioned this pull request Feb 12, 2022
[Snyk] Fix for 9 vulnerabilities Iceymann18777/node#10
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@benjamingr benjamingr benjamingr approved these changes
@cjihrig cjihrig cjihrig approved these changes
+3 more reviewers
@refack refack refack approved these changes
@mhdawson mhdawson mhdawson approved these changes
@vsemozhetbyt vsemozhetbyt vsemozhetbyt approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@tniessen tniessen

Labels

addons Issues and PRs related to native addons. doc Issues and PRs related to Node.js documentation. test Issues and PRs related to Node.js core tests and test infrastructure. tools Issues and PRs related to the tools directory.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

10 participants

@nataly87s @vsemozhetbyt @tniessen @refack @jasnell @benjamingr @cjihrig @mhdawson @MylesBorins @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.