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

Enable Checkpoints by default #664

Merged
merged 3 commits into from
Oct 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test_script:
"Running npm run test:without-system-tests..."
"--------------------------------------------"
npm run test:without-system-tests
npm run coverage:system-tests
#npm run coverage:system-tests
npm run aggregateJUnit
junit-merge -d junit-aggregate -o junit-aggregate.xml
$NpmTestsExitCode = $LastExitCode
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
"test:integration": "lerna run test:integration --concurrency 1 --stream",
"test:without-system-tests":
"lerna exec --ignore system-tests --concurrency 1 --stream --bail=false -- npm run test",
"test:system-tests":
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to remove this? It seems benign and safer to leave this in and just use the commented out technique up there.

Copy link
Contributor

@allileong allileong Oct 8, 2018

Choose a reason for hiding this comment

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

@vazexqi In https://github.com/forcedotcom/salesforcedx-vscode/pull/559/files, I removed this line because I thought that the test script would run all scripts in the package.json that began with "test:*", and I wanted to prevent the system-tests from being run. However, I see that in the .appveyor.yml, line 43 runs test:without-system-tests so I'm a bit confused. If the autobuild is already running the script that ignores system tests, then is it the npm run coverage:system-tests that invokes the system tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm also not sure if comments in a package.json are a thing. From what I've read there's no comment syntax for the entries that isn't hacky. Removal and re-addition seem like the way to go here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vazexqi things are ready but I'm not going to submit until you say so.

Copy link
Contributor

Choose a reason for hiding this comment

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

@allileong

If the autobuild is already running the script that ignores system tests, then is it the npm run coverage:system-tests that invokes the system tests?

Yes, it is coverage:system-tests that invokes the system tests. This can be seen at https://github.com/forcedotcom/salesforcedx-vscode/blob/develop/package.json#L37 where it will invoke the system tests.

@JimSuplizio
In the interest of time, let's proceed with what we have and restore it back in "W-5507653 - User Story - Re-enable UI system-tests in AppVeyor".

"lerna run test --scope system-tests --concurrency 1 --stream",
"coverage:system-tests":
"lerna run coverage --scope system-tests --concurrency 1 --stream",
"vscode:package":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"properties": {
"salesforcedx-vscode-apex-replay-debugger-checkpoints.enabled": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Won't it be better to just remove this whole properties? That's what we did before after we are ready to GA something that was guarded.

Or, do you

  1. Think that is too risky?
  2. Envision that you might want to actually have some people be able to toggle between the two?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vazexqi we (the team) had talked about this in standup earlier this week. We decided that leaving the flag in, for the moment, was the way we wanted to handle this right now. We are ultimately going to remove this but with the current timeline this was the safest change.

"type": "boolean",
"default": false,
"default": true,
"description": "%replay-debugger_checkpoints_enabled%"
}
}
Expand Down