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

[Snyk] Upgrade minimatch from 5.1.0 to 5.1.6 #5

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a3dcf1b
Fix execInREPL Enter to respect complete expression (#23973)
anthonykim1 Aug 19, 2024
9cd6b2d
Add GDPR comment for `repltype` (#23974)
cwebster-99 Aug 19, 2024
fdddaf9
Additional graceful handling for pixi (#23942)
anthonykim1 Aug 20, 2024
e751377
Do not truncate whitespace for multi-line string (#23977)
anthonykim1 Aug 20, 2024
8ea21a9
Handle poetry env manager from native locator (#23983)
DonJayamanne Aug 21, 2024
32d519b
Update to latest lsp for pull diagnostics (#23979)
rchiodo Aug 23, 2024
16bffde
Bump importlib-metadata from 8.1.0 to 8.4.0 (#23980)
dependabot[bot] Aug 26, 2024
460f623
Bump elliptic from 6.5.4 to 6.5.7 (#23986)
dependabot[bot] Aug 26, 2024
61bc2d5
Fix stop sending double telemetry for Terminal REPL (#23995)
anthonykim1 Aug 26, 2024
7ccf01e
Correctly track native REPL state (#23997)
anthonykim1 Aug 26, 2024
eb0ed8e
Version updates for Python Extension Release 2024.14.0 (#24040)
karthiknadig Sep 3, 2024
d9c0ce1
Update `main` to next pre-release version (#24043)
karthiknadig Sep 3, 2024
884efad
fix django manage.py path validation (#24019)
eleanorjboyd Sep 3, 2024
3343560
Fix failing multiroot test (#24049)
rchiodo Sep 4, 2024
e694910
Remove use of mocked output channel in virtual workspace (#24051)
karthiknadig Sep 4, 2024
ef7c7e3
switch to using temp file for test_ids (#24054)
eleanorjboyd Sep 5, 2024
e3a7c7a
Download `pet` from azure pipeline build (#24052)
karthiknadig Sep 5, 2024
223eca9
Better messaging for tests output in virtual or untrusted scenario (#…
karthiknadig Sep 6, 2024
34dac5c
Stable extension builds using `pet` from Azure Feed (#24063)
karthiknadig Sep 6, 2024
08e7fdf
Update engine version to match LSP client (#24065)
rchiodo Sep 9, 2024
6578d9d
Revert "Do not truncate whitespace for multi-line string" (#24096)
anthonykim1 Sep 11, 2024
216c7ed
Switch over to executeCommand from sendText (#24078)
anthonykim1 Sep 12, 2024
0ae1a5d
Add `uv.lock` to file associations (#23991)
edgarrmondragon Sep 13, 2024
144ecf6
Enable proposed APIs for `codeActionAI` (#24108)
StellaHuang95 Sep 13, 2024
b59af57
Contribute problem matcher (#24114)
anthonykim1 Sep 17, 2024
717e518
variable provider for native repl (#24094)
amunger Sep 18, 2024
8268131
Implementation of Test Coverage (#24118)
eleanorjboyd Sep 18, 2024
9a22fb4
account for inline chat widget (#24130)
amunger Sep 18, 2024
07a0755
use new context key for both repl-type editors (#24131)
amunger Sep 19, 2024
3fcb3fa
Adding PYTHONSTARTUP with shell integration to environment variable c…
anthonykim1 Sep 19, 2024
cac5bb2
Add a command copilot calls back to ensure testing is set up (#24128)
connor4312 Sep 19, 2024
62897c6
Add logging for executeCommand (#24138)
anthonykim1 Sep 19, 2024
63280be
Default PYTHONSTARTUP to opt out/off for Stable Release (#24140)
anthonykim1 Sep 19, 2024
f9bb1f1
Use new REPL notebook API (#24029)
amunger Sep 20, 2024
336a110
add experimental tag for enableShellIntegration (#24144)
anthonykim1 Sep 20, 2024
af2aa6e
Remove variableProvider suite.only from limiting other tests (#24146)
anthonykim1 Sep 21, 2024
f8b861a
Change PYTHONSTARTUP setting name to Python.terminal.shell integratio…
anthonykim1 Sep 23, 2024
8cfd2d0
Bump importlib-metadata from 8.4.0 to 8.5.0 (#24100)
dependabot[bot] Sep 23, 2024
c314bab
Fix issue with creating `.gitignore` with venvs (#24155)
karthiknadig Sep 23, 2024
1fd701a
fix: upgrade minimatch from 5.1.0 to 5.1.6
snyk-bot Sep 23, 2024
360bead
Merge branch 'main' into snyk-upgrade-a545192eaa12991d51cb02671626d675
organich Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"no-control-regex": "off",
"no-extend-native": "off",
"no-multi-str": "off",
"no-shadow": "off",
"no-param-reassign": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": [
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/smoke-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:

# Bits from the VSIX are reused by smokeTest.ts to speed things up.
- name: Download VSIX
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: ${{ inputs.artifact_name }}

Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ dist/**
package.nls.*.json
l10n/
python-env-tools/**
# coverage files produced as test output
python_files/tests/*/.data/.coverage*
python_files/tests/*/.data/*/.coverage*
src/testTestingRootWkspc/coverageWorkspace/.coverage

3 changes: 3 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"env": {
"VSC_PYTHON_CI_TEST_GREP": "" // Modify this to run a subset of the single workspace tests
},
"sourceMaps": true,
"smartStep": true,
"outFiles": ["${workspaceFolder}/out/**/*", "!${workspaceFolder}/**/node_modules**/*"],
Expand Down
46 changes: 24 additions & 22 deletions build/azure-pipeline.pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ extends:
ghCreateTag: false
standardizedVersioning: true
l10nSourcePaths: ./src/client
needsTools: true

buildPlatforms:
- name: Linux
Expand Down Expand Up @@ -98,27 +97,30 @@ extends:
- script: npx gulp prePublishBundle
displayName: Build

- script: nox --session azure_pet_checkout
displayName: Checkout python-environment-tools
env:
PYTHON_ENV_TOOLS_DEST: $(Build.SourcesDirectory)
PYTHON_ENV_TOOLS_REF: main
PYTHON_ENV_TOOLS_TEMP: $(Agent.TempDirectory)

- script: nox --session azure_pet_build_before
displayName: Enable cargo config for azure

- template: azure-pipelines/extension/templates/steps/build-extension-rust-package.yml@templates
parameters:
vsceTarget: $(vsceTarget)
binaryName: pet
signing: true
workingDirectory: $(Build.SourcesDirectory)/python-env-tools
buildWasm: false
runTest: false

- script: nox --session azure_pet_build_after
displayName: Move bin to final location
- bash: |
mkdir -p $(Build.SourcesDirectory)/python-env-tools/bin
chmod +x $(Build.SourcesDirectory)/python-env-tools/bin
displayName: Make Directory for python-env-tool binary

- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: 'Monaco'
definition: 591
buildVersionToDownload: 'latestFromBranch'
branchName: 'refs/heads/main'
targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin'
artifactName: 'bin-$(vsceTarget)'
itemPattern: |
pet.exe
pet
ThirdPartyNotices.txt

- bash: |
ls -lf ./python-env-tools/bin
chmod +x ./python-env-tools/bin/pet*
ls -lf ./python-env-tools/bin
displayName: Set chmod for pet binary

- script: python -c "import shutil; shutil.rmtree('.nox', ignore_errors=True)"
displayName: Clean up Nox
Expand Down
45 changes: 24 additions & 21 deletions build/azure-pipeline.stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,27 +92,30 @@ extends:
- script: npx gulp prePublishBundle
displayName: Build

- script: nox --session azure_pet_checkout
displayName: Checkout python-environment-tools
env:
PYTHON_ENV_TOOLS_DEST: $(Build.SourcesDirectory)
PYTHON_ENV_TOOLS_REF: release/2024.12
PYTHON_ENV_TOOLS_TEMP: $(Agent.TempDirectory)

- script: nox --session azure_pet_build_before
displayName: Enable cargo config for azure

- template: azure-pipelines/extension/templates/steps/build-extension-rust-package.yml@templates
parameters:
vsceTarget: $(vsceTarget)
binaryName: pet
signing: true
workingDirectory: $(Build.SourcesDirectory)/python-env-tools
buildWasm: false
runTest: false

- script: nox --session azure_pet_build_after
displayName: Move bin to final location
- bash: |
mkdir -p $(Build.SourcesDirectory)/python-env-tools/bin
chmod +x $(Build.SourcesDirectory)/python-env-tools/bin
displayName: Make Directory for python-env-tool binary

- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: 'Monaco'
definition: 593
buildVersionToDownload: 'latestFromBranch'
branchName: 'refs/heads/release/2024.14'
targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin'
artifactName: 'bin-$(vsceTarget)'
itemPattern: |
pet.exe
pet
ThirdPartyNotices.txt

- bash: |
ls -lf ./python-env-tools/bin
chmod +x ./python-env-tools/bin/pet*
ls -lf ./python-env-tools/bin
displayName: Set chmod for pet binary

- script: python -c "import shutil; shutil.rmtree('.nox', ignore_errors=True)"
displayName: Clean up Nox
Expand Down
2 changes: 2 additions & 0 deletions build/functional-test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# List of requirements for functional tests
versioneer
numpy
pytest
pytest-cov
4 changes: 4 additions & 0 deletions build/test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ namedpipe; platform_system == "Windows"

# typing for Django files
django-stubs

# for coverage
coverage
pytest-cov
74 changes: 1 addition & 73 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def delete_dir(path: pathlib.Path, ignore_errors=None):

shutil.rmtree(os.fspath(path))


@nox.session()
def install_python_libs(session: nox.Session):
requirements = [
Expand Down Expand Up @@ -63,79 +64,6 @@ def install_python_libs(session: nox.Session):
if pathlib.Path("./python_files/lib/temp").exists():
shutil.rmtree("./python_files/lib/temp")

@nox.session()
def azure_pet_checkout(session: nox.Session):
branch = os.getenv("PYTHON_ENV_TOOLS_REF", "main")

# dest dir should be <vscode-python repo root>/python-env-tools
dest_dir = (pathlib.Path(os.getenv("PYTHON_ENV_TOOLS_DEST")) / "python-env-tools").resolve()

# temp dir should be <agent temp dir>
temp_dir = (pathlib.Path(os.getenv("PYTHON_ENV_TOOLS_TEMP")) / "python-env-tools").resolve()
session.log(f"Cloning python-environment-tools to {temp_dir}")
temp_dir.mkdir(0o766, parents=True, exist_ok=True)

try:
with session.cd(temp_dir):
session.run("git", "init", external=True)
session.run(
"git",
"remote",
"add",
"origin",
"https://github.com/microsoft/python-environment-tools",
external=True,
)
session.run("git", "fetch", "origin", branch, external=True)
session.run(
"git", "checkout", "--force", "-B", branch, f"origin/{branch}", external=True
)
delete_dir(temp_dir / ".git")
delete_dir(temp_dir / ".github")
delete_dir(temp_dir / ".vscode")
(temp_dir / "CODE_OF_CONDUCT.md").unlink()
shutil.move(os.fspath(temp_dir), os.fspath(dest_dir))
except PermissionError as e:
print(f"Permission error: {e}")
if not dest_dir.exists():
raise
finally:
delete_dir(temp_dir, ignore_errors=True)


@nox.session()
def azure_pet_build_before(session: nox.Session):
source_dir = pathlib.Path(pathlib.Path.cwd() / "python-env-tools").resolve()
config_toml_disabled = source_dir / ".cargo" / "config.toml.disabled"
config_toml = source_dir / ".cargo" / "config.toml"
if config_toml_disabled.exists() and not config_toml.exists():
config_toml.write_bytes(config_toml_disabled.read_bytes())


@nox.session()
def azure_pet_build_after(session: nox.Session):
source_dir = pathlib.Path(pathlib.Path.cwd() / "python-env-tools").resolve()
ext = sysconfig.get_config_var("EXE") or ""
bin_name = f"pet{ext}"

abs_bin_path = None
for root, _, files in os.walk(os.fspath(source_dir / "target")):
bin_path = pathlib.Path(root) / "release" / bin_name
if bin_path.exists():
abs_bin_path = bin_path.absolute()
break

assert abs_bin_path

dest_dir = pathlib.Path(pathlib.Path.cwd() / "python-env-tools").resolve()
if not pathlib.Path(dest_dir / "bin").exists():
pathlib.Path(dest_dir / "bin").mkdir()
bin_dest = dest_dir / "bin" / bin_name
shutil.copyfile(abs_bin_path, bin_dest)

if sys.platform != "win32":
os.chmod(os.fspath(bin_dest), 0o755)


@nox.session()
def native_build(session: nox.Session):
Expand Down
Loading