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

Add missing types to argument-parsers.ts #6248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

broadwaylamb
Copy link

No description provided.

Copy link
Member

@jeremy-rifkin jeremy-rifkin left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to improve the typing here! One quick comment and I think most of the changes look good at first glance.

@@ -431,7 +431,7 @@ export class BaseCompiler implements ICompiler {
const key = this.getCompilerCacheKey(compiler, args, optionsForCache);
let result = await this.env.compilerCacheGet(key as any);
if (!result) {
result = await this.env.enqueue(async () => await this.exec(compiler, args, options));
result = await this.env.enqueue(async () => await this.exec(compiler, args, <ExecutionOptions>options));
Copy link
Member

Choose a reason for hiding this comment

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

It'd be best to unwrap() here. Even though it's definitely not undefined we've been using unwrap as a checked non-null/undefined assertion so we can get better diagnostics if things ever go wrong in the future.

@OfekShilon
Copy link
Member

Please resolve the failing tests: https://github.com/compiler-explorer/compiler-explorer/actions/runs/8298115382/job/22724586111?pr=6248

You should be able to reproduce them locally by running make test.

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

Successfully merging this pull request may close these issues.

None yet

3 participants