Rename remote queries -> variant analysis

In some user facing text.
This commit is contained in:
Andrew Eisenberg
2022-04-12 13:16:44 -07:00
parent 8b2d79a7f7
commit 83ffba2f08
5 changed files with 19 additions and 19 deletions

View File

@@ -667,11 +667,11 @@ export class CodeQLCliServer implements Disposable {
/** /**
* Generate a summary of an evaluation log. * Generate a summary of an evaluation log.
* @param endSummaryPath The path to write only the end of query part of the human-readable summary to. * @param endSummaryPath The path to write only the end of query part of the human-readable summary to.
* @param inputPath The path of an evaluation event log. * @param inputPath The path of an evaluation event log.
* @param outputPath The path to write a human-readable summary of it to. * @param outputPath The path to write a human-readable summary of it to.
*/ */
async generateLogSummary( async generateLogSummary(
inputPath: string, inputPath: string,
outputPath: string, outputPath: string,
endSummaryPath: string, endSummaryPath: string,
@@ -1255,7 +1255,7 @@ export class CliVersionConstraint {
public static CLI_VERSION_WITH_NO_PRECOMPILE = new SemVer('2.7.1'); public static CLI_VERSION_WITH_NO_PRECOMPILE = new SemVer('2.7.1');
/** /**
* CLI version where remote queries are supported. * CLI version where remote queries (variant analysis) are supported.
*/ */
public static CLI_VERSION_REMOTE_QUERIES = new SemVer('2.6.3'); public static CLI_VERSION_REMOTE_QUERIES = new SemVer('2.6.3');
@@ -1280,16 +1280,16 @@ export class CliVersionConstraint {
*/ */
public static CLI_VERSION_WITH_STRUCTURED_EVAL_LOG = new SemVer('2.8.2'); public static CLI_VERSION_WITH_STRUCTURED_EVAL_LOG = new SemVer('2.8.2');
/** /**
* CLI version that supports rotating structured logs to produce one per query. * CLI version that supports rotating structured logs to produce one per query.
* *
* Note that 2.8.4 supports generating the evaluation logs and summaries, * Note that 2.8.4 supports generating the evaluation logs and summaries,
* but 2.9.0 includes a new option to produce the end-of-query summary logs to * but 2.9.0 includes a new option to produce the end-of-query summary logs to
* the query server console. For simplicity we gate all features behind 2.9.0, * the query server console. For simplicity we gate all features behind 2.9.0,
* but if a user is tied to the 2.8 release, we can enable evaluator logs * but if a user is tied to the 2.8 release, we can enable evaluator logs
* and summaries for them. * and summaries for them.
*/ */
public static CLI_VERSION_WITH_PER_QUERY_EVAL_LOG = new SemVer('2.9.0'); public static CLI_VERSION_WITH_PER_QUERY_EVAL_LOG = new SemVer('2.9.0');
constructor(private readonly cli: CodeQLCliServer) { constructor(private readonly cli: CodeQLCliServer) {
/**/ /**/

View File

@@ -322,7 +322,7 @@ export function isCanary() {
*/ */
export const NO_CACHE_AST_VIEWER = new Setting('disableCache', AST_VIEWER_SETTING); export const NO_CACHE_AST_VIEWER = new Setting('disableCache', AST_VIEWER_SETTING);
// Settings for remote queries // Settings for variant analysis
const REMOTE_QUERIES_SETTING = new Setting('variantAnalysis', ROOT_SETTING); const REMOTE_QUERIES_SETTING = new Setting('variantAnalysis', ROOT_SETTING);
/** /**

View File

@@ -838,7 +838,7 @@ async function activateWithInstalledDistribution(
) )
); );
void logger.log('Initializing remote queries interface.'); void logger.log('Initializing variant analysis results view.');
const rqm = new RemoteQueriesManager(ctx, cliServer, qhm, queryStorageDir, logger); const rqm = new RemoteQueriesManager(ctx, cliServer, qhm, queryStorageDir, logger);
ctx.subscriptions.push(rqm); ctx.subscriptions.push(rqm);
@@ -868,7 +868,7 @@ async function activateWithInstalledDistribution(
token token
); );
} else { } else {
throw new Error('Remote queries require the CodeQL Canary version to run.'); throw new Error('Variant analysis requires the CodeQL Canary version to run.');
} }
}, { }, {
title: 'Run Variant Analysis', title: 'Run Variant Analysis',

View File

@@ -38,7 +38,7 @@ export class RemoteQueriesInterfaceManager {
private readonly analysesResultsManager: AnalysesResultsManager private readonly analysesResultsManager: AnalysesResultsManager
) { ) {
this.panelLoadedCallBacks.push(() => { this.panelLoadedCallBacks.push(() => {
void logger.log('Remote queries view loaded'); void logger.log('Variant analysis results view loaded');
}); });
} }

View File

@@ -171,7 +171,7 @@ export async function runRemoteQuery(
token: CancellationToken token: CancellationToken
): Promise<void | RemoteQuerySubmissionResult> { ): Promise<void | RemoteQuerySubmissionResult> {
if (!(await cliServer.cliConstraints.supportsRemoteQueries())) { if (!(await cliServer.cliConstraints.supportsRemoteQueries())) {
throw new Error(`Remote queries are not supported by this version of CodeQL. Please upgrade to v${cli.CliVersionConstraint.CLI_VERSION_REMOTE_QUERIES throw new Error(`Variant analysis is not supported by this version of CodeQL. Please upgrade to v${cli.CliVersionConstraint.CLI_VERSION_REMOTE_QUERIES
} or later.`); } or later.`);
} }
@@ -207,7 +207,7 @@ export async function runRemoteQuery(
if (!controllerRepo || !REPO_REGEX.test(controllerRepo)) { if (!controllerRepo || !REPO_REGEX.test(controllerRepo)) {
void logger.log(controllerRepo ? 'Invalid controller repository name.' : 'No controller repository defined.'); void logger.log(controllerRepo ? 'Invalid controller repository name.' : 'No controller repository defined.');
controllerRepo = await window.showInputBox({ controllerRepo = await window.showInputBox({
title: 'Controller repository in which to display progress and results of remote queries', title: 'Controller repository in which to display progress and results of variant analysis',
placeHolder: '<owner>/<repo>', placeHolder: '<owner>/<repo>',
prompt: 'Enter the name of a GitHub repository in the format <owner>/<repo>', prompt: 'Enter the name of a GitHub repository in the format <owner>/<repo>',
ignoreFocusOut: true, ignoreFocusOut: true,