Skip to content

Conversation

@tculig
Copy link
Contributor

@tculig tculig commented Nov 24, 2025

Description

Checklist

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

himanshusinghs and others added 19 commits September 25, 2025 16:16
Earlier snyk was never scanning the vscode project because of the
combination of project auto-detection and the presence of .vscode-test
folder which contains several directories with package.json files.

This commit disables the auto-detection so that snyk run tests on the
current project.

Additionally the current project was having a problem
with a package declaring optional dependencies. These optional
dependencies were platform specific so for any platform, all the
optional dependencies will never be installed, only the ones that are
platform compatible. Snyk requires what is declared in package-lock.json
to be also present in node_modules folder which is why it would've
failed. In the same commit, we added a pre and post test hook to remove
the identified problematic optional dependencies from package-lock file
before running the test and then restore it when the test is finished.
Earlier we were running check, build and tests on each OS in our matrix
which did not allow us to test whether a build on ubuntu would work fine
on Windows / MacOS or not.

With this commit we are re-organising to check and build once on ubuntu
and use the final artifact later in the test job to run tests against.

Accordingly the test-and-build-from-fork and draft-release workflows
have been modified to adapt the same change.
…ll-tests' into VSCODE-703-add-install-tests-for-VSCode-extension
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