Skip to content

Conversation

@boingoing
Copy link
Contributor

No description provided.

// * Does not add anything to the file description

// ChakraCore RELEASE and PRERELEASE flags
#define CHAKRA_CORE_VERSION_RELEASE 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you change this? My understanding is that it is set to 1 since 1.7 is a release branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are correct, this was an oversight.

@dilijev
Copy link
Contributor

dilijev commented Nov 10, 2017

Commenting for the record that the size of this diff is mostly line ending normalizations to test files:

With line ending changes:

>git diff --shortstat b00660633
 347 files changed, 690861 insertions(+), 689686 deletions(-)

Without line ending changes:

>git diff --shortstat -w b00660633
 347 files changed, 1637 insertions(+), 462 deletions(-)

@boingoing boingoing requested a review from tcare November 10, 2017 04:51
*.h text eol=lf diff=cpp
*.inl text eol=lf diff=cpp
*.vcproj text eol=crlf diff=xml
*.vcxproj text eol=crlf diff=xml
Copy link
Contributor

Choose a reason for hiding this comment

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

so far, AFAIK, we've been treating these files as LF with no ill effects.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1, where did this change originate from?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds like @Penguinwizzard recommended this spec as a way to help git deal with merge conflicts on line endings -- and it possibly had the opposite from the intended effect. :P

Copy link
Contributor

Choose a reason for hiding this comment

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

There's an easy way to strip line ending changes from a PR. I'll have to dig it up from email somewhere.

*.inl text eol=lf diff=cpp
*.vcproj text eol=crlf diff=xml
*.vcxproj text eol=crlf diff=xml
*.sln text eol=crlf diff=xml
Copy link
Contributor

Choose a reason for hiding this comment

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

*.sln text eol=crlf [](start = 0, length = 19)

yes, AFAIK, sln requires CRLF

return labelDone;
}


Copy link
Contributor

Choose a reason for hiding this comment

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

nit: added unnecessary newline

// NOTE: If there is a merge conflict the correct fix is to make a new GUID.

// {C6C1CBF8-B232-4E4C-8681-34E404F78F16}
// {F856871A-E536-4CA1-83E6-819E26C7DC99}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note (in case it wasn't already done this way) that if there is a merge conflict in this file, please generate a new GUID.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a new GUID. 👍

}
#endif
#endif

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unnecessary extra line

#endif
};
#endif

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unnecessary extra line

@dilijev
Copy link
Contributor

dilijev commented Nov 10, 2017

LGTM but I question the need to take these line ending changes in the test files. I'd say we re-normalize them to what they were before unless there's a good reason to change.

/cc @tcare

@Penguinwizzard
Copy link
Contributor

The issue with the test files is that they're currently specified as "-crlf"; this doesn't mean "not crlf", but means "-text", and as such disables any git normalization and has them explicitly use the user's platform's eol normalization. We should likely have them set as "text eol=lf".

@tcare
Copy link
Contributor

tcare commented Nov 10, 2017

Changing line endings should not be a part of this PR. Let's address this during downtime in December along with other invasive .gitattributes changes I want to make.

@tcare
Copy link
Contributor

tcare commented Nov 10, 2017

Do we have a list of changes for this PR?

@dilijev
Copy link
Contributor

dilijev commented Nov 10, 2017

@Penguinwizzard as always, I'll add that because some of our (especially parser-related) JS tests are sensitive to line endings and other whitespace, a blanket policy for line endings in JS files might be ill-advised. However, OTOH I'm not sure why we never bothered to move all such files to their own directory and make a specific policy for that.

@tcare
Copy link
Contributor

tcare commented Nov 10, 2017

@dilijev is right, normalizing line endings in .js files will introduce false negatives for scanner tests.

@dilijev dilijev closed this Nov 10, 2017
@dilijev dilijev reopened this Nov 10, 2017
@chakrabot chakrabot merged commit 036fe50 into chakra-core:release/1.7 Nov 10, 2017
chakrabot pushed a commit that referenced this pull request Nov 10, 2017
Merge pull request #4195 from boingoing:mergeback_rs3_17
@dilijev
Copy link
Contributor

dilijev commented Nov 11, 2017

introduce false negatives

The reason everyone is skittish about improving our test code is we don't when a change might cause the test to stop covering the intended code path. Too bad we don't have a way to determine that a test is testing the right things, and to protect against test coverage regression. (Code coverage isn't quite the same thing, but would be a start.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants