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

enabled TIA in multi agent #4596

Merged
merged 10 commits into from
Jun 26, 2017
Merged

enabled TIA in multi agent #4596

merged 10 commits into from
Jun 26, 2017

Conversation

acesiddhu
Copy link
Contributor

Tested

  1. Multi agent in CDP with and without TIA
  2. None mode in CDP with and without TIA
  3. Multi config mode in CDP with and without TIA

Tested
1) Multi agent in CDP with and without TIA
2) None mode in CDP with and without TIA
30 Multi config mode in CDP with and without TIA
this.registerAndConfigureAgent();
}

private publishCodeChangesIfRequired(): number{
if (this.dtaTestConfig.tiaConfig.tiaEnabled) {
Copy link

@nigurr nigurr Jun 21, 2017

Choose a reason for hiding this comment

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

if not return. keeps simple #Resolved

Copy link
Contributor Author

@acesiddhu acesiddhu Jun 21, 2017

Choose a reason for hiding this comment

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

removed return. it shuld be simple now #Resolved

this.registerAndConfigureAgent();
}

private publishCodeChangesIfRequired(): number{
if (this.dtaTestConfig.tiaConfig.tiaEnabled) {
let testselector = new testselectorinvoker.TestSelectorInvoker();
Copy link

@nigurr nigurr Jun 21, 2017

Choose a reason for hiding this comment

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

you can directly import the class or use alias #Resolved

Copy link
Contributor Author

@acesiddhu acesiddhu Jun 21, 2017

Choose a reason for hiding this comment

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

used
const testSelectorInvoker = new testselectorinvoker.TestSelectorInvoker(); #Resolved

private publishCodeChangesIfRequired(): number{
if (this.dtaTestConfig.tiaConfig.tiaEnabled) {
let testselector = new testselectorinvoker.TestSelectorInvoker();
let code = testselector.publishCodeChanges(this.dtaTestConfig.tiaConfig, null); //todo: enable custom engine
Copy link

@nigurr nigurr Jun 21, 2017

Choose a reason for hiding this comment

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

if argument is not mandatory. mark it as optional so that you don't have to pass null #Resolved

const testSettingsTemplate = '<?xml version=\"1.0\" encoding=\"UTF-8\"?>' +
'<TestSettings name=\"testSettings-5d76a195-1e43-4b90-a6ce-4ec3de87ed25\" id=\"5d76a195-1e43-4b90-a6ce-4ec3de87ed25\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\">' +
Copy link

@nigurr nigurr Jun 21, 2017

Choose a reason for hiding this comment

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

write xml content like this. no need + and escape crap

`<XML>
      <ABC/>
</XML>
`
``` #Resolved

Copy link
Contributor Author

@acesiddhu acesiddhu Jun 21, 2017

Choose a reason for hiding this comment

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

thanks 👍 #Closed

@@ -100,15 +102,31 @@ export async function updateSettingsFileAsRequired(settingsFile: string, isParal
}
}

if(isDistributedRun && tiaConfig.tiaEnabled){
let baseLineRunId = utils.Helper.readFileContentsSync(tiaConfig.baseLineBuildIdFile, 'utf-8');
if (settingsExt === testSettingsExt) {
Copy link

@nigurr nigurr Jun 21, 2017

Choose a reason for hiding this comment

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

can this be more meaningful? #Resolved

} else {
if (!isDataCollectorPresent(dataCollectorArray, dataCollectorFriendlyName)) {
tl.debug('Updating testsettings file, adding a DataCollector node');
dataCollectorArray.push(dataCollectorNodeToAdd.DataCollector);
}
}
}
}
Copy link

@nigurr nigurr Jun 21, 2017

Choose a reason for hiding this comment

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

extra spaces #Resolved

let sourcesDirectory: string;
let newprovider = 'true';
if (this.getTIALevel(tiaConfig) === 'method') {
newprovider = 'false';
Copy link

@nigurr nigurr Jun 21, 2017

Choose a reason for hiding this comment

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

where it's declared? #Closed

Copy link
Contributor Author

@acesiddhu acesiddhu Jun 21, 2017

Choose a reason for hiding this comment

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

line 21 #Closed

},
}

if (!result.RunSettings.RunConfiguration) {
Copy link
Contributor Author

@acesiddhu acesiddhu Jun 21, 2017

Choose a reason for hiding this comment

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

if [](start = 4, length = 3)

tried what we have in code coverage enabler but it didnt work. this works. #Closed

@nigurr
Copy link

nigurr commented Jun 22, 2017

Fix conflicts.

@@ -8,6 +8,9 @@ import * as settingsHelper from './settingshelper';
import * as utils from './helpers';
import * as ta from './testagent';
import * as versionFinder from './versionfinder';
import * as testselectorinvoker from './testselectorinvoker';

const testSelector = new testselectorinvoker.TestSelectorInvoker();
Copy link

Choose a reason for hiding this comment

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

directly import the class and use alias. this looks aaak :P

@acesiddhu acesiddhu merged commit 497a95c into master Jun 26, 2017
@bryanmacfarlane bryanmacfarlane deleted the users/siddhap/multiagenttia branch January 31, 2018 00:55
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.

3 participants