Skip to content

Reregister testproj databases around test runs#868

Merged
cklin merged 1 commit intogithub:mainfrom
cklin:reregister-testproj
May 20, 2021
Merged

Reregister testproj databases around test runs#868
cklin merged 1 commit intogithub:mainfrom
cklin:reregister-testproj

Conversation

@cklin
Copy link
Copy Markdown
Contributor

@cklin cklin commented May 18, 2021

This PR modifies the extension to reregister testproj databases around test execution.

Closes: #768

Checklist

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • @github/docs-content-codeql has been cc'd in all issues for UI or other user-facing changes made by this pull request.

Copy link
Copy Markdown
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

I think this generally looks like the right approach. See my comments inline.

Copy link
Copy Markdown
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

We can chat about my comment tomorrow if you like.

@cklin cklin marked this pull request as ready for review May 20, 2021 21:02
@cklin cklin self-assigned this May 20, 2021
@cklin cklin requested a review from a team May 20, 2021 21:09
Copy link
Copy Markdown
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

This is looking great. A few smaller comments.

@cklin cklin requested a review from a team May 20, 2021 21:42
Copy link
Copy Markdown
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

I'll approve now, assuming you update the changelog message.

To deal with the problem of CodeQL tests modifying open testproj databases,
this commit removes open databases from the extension prior to running tests,
and tries to open those databases again after tests finish running.
@cklin cklin merged commit 540cb99 into github:main May 20, 2021
@cklin cklin deleted the reregister-testproj branch May 20, 2021 23:00
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.

Better handling of *.testproj directories as databases

2 participants