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

Scanner does not rescan #1330

Closed
wants to merge 1 commit into from
Closed

Scanner does not rescan #1330

wants to merge 1 commit into from

Conversation

ahtrotta
Copy link
Contributor

@ahtrotta ahtrotta commented Aug 24, 2023

Fixes #1331

A recent change to @appland/scanner caused a test in vscode-appland to fail most of the time in CI, which has been causing a lot of build failures (builds fail ~75% of the time):

1 failing
  1) Scanner
       is performed as AppMaps are modified:
     Error: No Diagnostics were created for Microposts_controller_can_get_microposts_as_JSON
  	at waitFor (out/test/waitFor.js:35:23)
  	at async repeatUntil (out/test/waitFor.js:7:9)
  	at async Context.<anonymous> (out/test/integration/scanner/performAsAppMapsAreModified.test.js:55:9)

After a lot of testing, I've traced this to @appland/scanner version 1.82.0. The scanner is not re-scanning and is not regenerating the appmap-findings.json file in the test. I haven't been able to figure out exactly why this code change is causing this problem, but this is taking a long time to troubleshoot and it's difficult to run a custom version of the scanner in CI (this PR has an attempt to use appmap-js as a gitmodule but it didn't work), so I think we should just revert the offending commit.

@ahtrotta ahtrotta force-pushed the fix/scanner-does-not-rescan branch from 6287dbe to 0adfdac Compare August 24, 2023 19:23
@ahtrotta ahtrotta force-pushed the fix/scanner-does-not-rescan branch from 0adfdac to 384f077 Compare August 24, 2023 19:33
@ahtrotta ahtrotta marked this pull request as ready for review August 24, 2023 19:41
@kgilpin
Copy link
Contributor

kgilpin commented Aug 24, 2023

But why?

We should have a theory of what’s going wrong? This PR fixes a lot of redundant re-parsing of queries.

@ahtrotta
Copy link
Contributor Author

But why?

We should have a theory of what’s going wrong? This PR fixes a lot of redundant re-parsing of queries.

Okay, I'll keep trying to figure this out

kgilpin added a commit to getappmap/vscode-appland that referenced this pull request Aug 25, 2023
@kgilpin
Copy link
Contributor

kgilpin commented Aug 25, 2023

See #1334

@ahtrotta
Copy link
Contributor Author

Fixed by #1334

@ahtrotta ahtrotta closed this Aug 29, 2023
@ahtrotta ahtrotta deleted the fix/scanner-does-not-rescan branch October 18, 2023 14:40
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.

Scanner does not re-scan
2 participants