From a231bf1742104118162b79b4267f6d0cffe967c2 Mon Sep 17 00:00:00 2001 From: Nadia Bugarin Date: Wed, 7 Aug 2024 16:42:10 -0700 Subject: [PATCH 1/2] Added csproj for smoke test --- nuget/dependency-solver/project.csproj | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nuget/dependency-solver/project.csproj diff --git a/nuget/dependency-solver/project.csproj b/nuget/dependency-solver/project.csproj new file mode 100644 index 00000000..0ff41b0a --- /dev/null +++ b/nuget/dependency-solver/project.csproj @@ -0,0 +1,9 @@ + + + net8.0 + + + + + + From 78b37689ac6303a03dd087d272a96a607ff7cbec Mon Sep 17 00:00:00 2001 From: Nadia Bugarin Date: Wed, 7 Aug 2024 16:46:10 -0700 Subject: [PATCH 2/2] Added smoke test yaml --- tests/smoke-nuget-dependency-solver.yaml | 141 +++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 tests/smoke-nuget-dependency-solver.yaml diff --git a/tests/smoke-nuget-dependency-solver.yaml b/tests/smoke-nuget-dependency-solver.yaml new file mode 100644 index 00000000..93fb8a40 --- /dev/null +++ b/tests/smoke-nuget-dependency-solver.yaml @@ -0,0 +1,141 @@ +input: + job: + package-manager: nuget + allowed-updates: + - dependency-name: CS-Script.Core + experiments: + nuget_dependency_solver: true + ignore-conditions: + - dependency-name: CS-Script.Core + version-requirement: '>2.0.0' + source: + provider: github + repo: dependabot/smoke-tests + directory: /nuget/dependency-solver + branch: feature-DependencySolver + commit: a231bf1742104118162b79b4267f6d0cffe967c2 + credentials: + - host: github.com + password: $LOCAL_GITHUB_ACCESS_TOKEN + type: git_source + username: x-access-token +output: + - type: update_dependency_list + expect: + data: + dependencies: + - name: CS-Script.Core + requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 1.3.1 + source: null + version: 1.3.1 + - name: Microsoft.CodeAnalysis.Analyzers + requirements: [] + version: 2.9.6 + - name: Microsoft.CodeAnalysis.Common + requirements: [] + version: 3.4.0 + - name: Microsoft.CodeAnalysis.CSharp + requirements: [] + version: 3.4.0 + - name: Microsoft.CodeAnalysis.CSharp.Scripting + requirements: [] + version: 3.4.0 + - name: Microsoft.CodeAnalysis.Scripting.Common + requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 3.4.0 + source: null + version: 3.4.0 + - name: Microsoft.Extensions.DependencyModel + requirements: [] + version: 3.1.2 + dependency_files: + - /nuget/dependency-solver/project.csproj + - type: create_pull_request + expect: + data: + base-commit-sha: a231bf1742104118162b79b4267f6d0cffe967c2 + dependencies: + - name: CS-Script.Core + previous-requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 1.3.1 + source: null + previous-version: 1.3.1 + requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 2.0.0 + source: + nuspec_url: https://api.nuget.org/v3-flatcontainer/cs-script.core/2.0.0/cs-script.core.nuspec + source_url: null + type: nuget_repo + url: https://api.nuget.org/v3/index.json + version: 2.0.0 + directory: /nuget/dependency-solver + - name: Microsoft.CodeAnalysis.Scripting.Common + previous-requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 3.4.0 + source: null + previous-version: 3.4.0 + requirements: + - file: /nuget/dependency-solver/project.csproj + groups: + - dependencies + requirement: 3.6.0 + source: + nuspec_url: https://api.nuget.org/v3-flatcontainer/microsoft.codeanalysis.scripting.common/3.6.0/microsoft.codeanalysis.scripting.common.nuspec + source_url: null + type: nuget_repo + url: https://api.nuget.org/v3/index.json + version: 3.6.0 + directory: /nuget/dependency-solver + updated-dependency-files: + - content: | + + + net8.0 + + + + + + + content_encoding: utf-8 + deleted: false + directory: /nuget/dependency-solver + name: project.csproj + operation: update + support_file: false + type: file + pr-title: Bump CS-Script.Core and Microsoft.CodeAnalysis.Scripting.Common in /nuget/dependency-solver + pr-body: "Bumps [CS-Script.Core](https://github.com/oleg-shilo/cs-script.core) and [Microsoft.CodeAnalysis.Scripting.Common](https://github.com/dotnet/roslyn). These dependencies needed to be updated together.\nUpdates `CS-Script.Core` from 1.3.1 to 2.0.0\n
\nRelease notes\n

Sourced from CS-Script.Core's releases.

\n
\n

Release v2.0.0.0

\n

The first .NET5 release

\n

This is the first CS-Script.Core release that targets .NET 5.\nThis build is to be re-versioned as v4.0.0.0 and published on https://github.com/oleg-shilo/cs-script as "CS-Script".

\n

After that the repository will be decommissioned and the product will be fully managed from https://github.com/oleg-shilo/cs-script

\n
\n

Deployment

\n

Ubuntu (terminal)

\n
repo=https://github.com/oleg-shilo/cs-script.core/releases/download/v2.0.0.0/; file=cs-script_2.0-0.deb; rm $file; wget $repo$file; sudo dpkg -i $file\n
\n

Windows (choco)

\n
choco install cs-script.core --version=2.0.0.0 \n
\n

Manual\nJust unpack the corresponding 7z file and start using the script engine executable cscs.\nIf you prefer you can build a shim exe css for an easy launch of the script engine process:

\n
cscs -self-exe\n
\n

The same shim/symbolic link is created if you are installing the CS-Script as a package.

\n
\n

Changes

\n

CLI

\n
    \n
  • New commands:\n
      \n
    • -server - for managing build server
    • \n
    • -vscode - to open script in VSCode
    • \n
    • -vs - to script project in Visual Studio
    • \n
    • -self-test - for testing the engine on the target system
    • \n
    • -self-exe - for building css launcher for manual deployment
    • \n
    • -engine:<csc|dotnet>
    • \n
    • -new:toplevel - CLI parameter
    • \n
    • -profile - for testing script loading performance
    • \n
    • -speed - for compiler performance testing
    • \n
    \n
  • \n
  • Added css
  • \n
  • Added creation of code.header on first use of CLI command -code
  • \n
  • Added complex (multi-file) commands support (e.g. css -self-test-run)
  • \n
  • Implemented build server
  • \n
  • Implemented hot-loading for csc engine.
  • \n
  • Normalized all \\n and \\r\\n CLI output by using Environment.NewLine
  • \n
  • Added reporting using of incompatible csc compiler for scripts requiring XAML compilation
  • \n
\n

CSScriptLib

\n
    \n
  • Implemented //css_winapp for WinForm and WPF applications
  • \n
\n\n
\n

... (truncated)

\n
\n
\nCommits\n
    \n
  • 9a9169d Merge pull request #19 from oleg-shilo/NET5_preview
  • \n
  • 14e7f17 # Release v2.0.0.0
  • \n
  • 9a15acb - Added CSScriptLib support for VB syntax
  • \n
  • d4f0d35 - Added VB support
  • \n
  • eb39154 - Published on Choco
  • \n
  • e32e090 # Release v1.4.5.0-NET5-RC5
  • \n
  • 064fc4f - Added css -server:restart CLI parameter
  • \n
  • 726580b - Fixed "composite-commands" on Linux
  • \n
  • 01ca9b9 - Addressed all compiler warnings
  • \n
  • 356ea91 # Release v1.4.5.0-NET5-RC5
  • \n
  • Additional commits viewable in compare view
  • \n
\n
\n
\n\nUpdates `Microsoft.CodeAnalysis.Scripting.Common` from 3.4.0 to 3.6.0\n
\nRelease notes\n

Sourced from Microsoft.CodeAnalysis.Scripting.Common's releases.

\n
\n

.NET 5.0 Preview 2

\n

Release Notes\nInstall Instructions

\n\n
\n
\n
\nCommits\n\n
\n
\n" + commit-message: |- + Bump CS-Script.Core and Microsoft.CodeAnalysis.Scripting.Common + + Bumps [CS-Script.Core](https://github.com/oleg-shilo/cs-script.core) and [Microsoft.CodeAnalysis.Scripting.Common](https://github.com/dotnet/roslyn). These dependencies needed to be updated together. + + Updates `CS-Script.Core` from 1.3.1 to 2.0.0 + - [Release notes](https://github.com/oleg-shilo/cs-script.core/releases) + - [Commits](https://github.com/oleg-shilo/cs-script.core/compare/v1.3.1...v2.0.0.0) + + Updates `Microsoft.CodeAnalysis.Scripting.Common` from 3.4.0 to 3.6.0 + - [Release notes](https://github.com/dotnet/roslyn/releases) + - [Changelog](https://github.com/dotnet/roslyn/blob/main/docs/Breaking%20API%20Changes.md) + - [Commits](https://github.com/dotnet/roslyn/commits/v3.6.0) + - type: mark_as_processed + expect: + data: + base-commit-sha: a231bf1742104118162b79b4267f6d0cffe967c2