Skip to content

Transition to multi-package repository #125

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

Closed
wants to merge 2 commits into from

Conversation

frobijn
Copy link

@frobijn frobijn commented Feb 17, 2025

Description

Do not merge this PR!

It is the first step towards a multi-package repository. The PR is to make sure we're on the right track.

Transition of this Github repository into a repository for multiple NuGet packages/class libraries that collectively are the nanoFramework.Device.Can implementation in the near future.

Most work is done to achieve the correct build infrastructure:

  • .editorconfig
  • Copied and modified the azure-pipelines.yaml from the nanoFramework.m2mqtt repository
  • Provision in yaml/nuspec to create 4 NuGet packages (Esp32 and Mcp2515 commented out in yaml):
    • nanoFramework.Device.Can.Core
    • nanoFramework.Device.Can.Esp32
    • nanoFramework.Device.Can.Mcp2515
    • nanoFramework.Device.Can.Stm32
  • Single Visual Studio solution, single version.json for all libraries/packages.
  • One project per package/library. The device dependent libraries (Esp32, Mcp2515, Stm32) have a direct dependency on the Core library. The corresponding NuGet packages depend on the Core NuGet package of the same version.
  • The solution has an additional configuration GenerateStubs - see Stub-generation.md
  • Updated README.md file

The library code in this PR is not yet up to snuff:

  • The nanoFramework.Device.Can.Core project contains a complete copy of the current nanoFramework.Device.Can library. The AssemblyNativeVersion attribute is removed for normal builds. In a subsequent PR the Stm32-specific code will be removed and optionally replaced by abstract base classes or interfaces.

  • The nanoFramework.Device.Can.Stm32 project contains a complete copy of the current nanoFramework.Device.Can library. The version in AssemblyNativeVersion is changed to an arbitrary value. In a subsequent PR only the Stm32-specific code will be retained as an implementation of the classes and interfaces from the nanoFramework.Device.Can.Core library.

  • The nanoFramework.Device.Can.Esp32 and nanoFramework.Device.Can.Mcp2515 projects are empty except for the assembly properties.

The subsequent PR that contains the correct versions of nanoFramework.Device.Can.Core and nanoFramework.Device.Can.Stm32 will also require a PR for the nf-interpreter repository as the stubs for the native components change. After the PR for both repositories are accepted and merged, the current nanoFramework.Device.Can NuGet package can be marked as deprecated.

Motivation and Context

The conclusion of the discussion on the related PR.

How Has This Been Tested?

  • The solution can be built (ignore all warnings)
  • The NuGet packages can be created and installed.

I have no idea how to test the Azure pipeline.

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue with code or algorithm)
  • New feature (non-breaking change which adds functionality to code)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Config and build (change in the configuration and build system, has no impact on code or features)
  • Dependencies (update dependencies and changes associated, has no impact on code or features)
  • Unit Tests (add new Unit Test(s) or improved existing one(s), has no impact on code or features)
  • Documentation (changes or updates in the documentation, has no impact on code or features)

Checklist:

  • My code follows the code style of this project (only if there are changes in source code).
  • My changes require an update to the documentation (there are changes that require the docs website to be updated).
  • I have updated the documentation accordingly (the changes require an update on the docs in this repo).
  • I have read the CONTRIBUTING document.
  • I have tested everything locally and all new and existing tests passed (only if there are changes in source code).
  • I have added new tests to cover my changes.

Summary by CodeRabbit

  • New Features

    • Expanded release notes now display two available NuGet packages.
    • Enhanced the CI/CD pipeline with automated build, dependency updates, and build failure notifications triggered by version tags.
  • Chores

    • Updated workflow configurations to standardize solution parameters and improve formatting.
    • Introduced dependency lock files across multiple projects to ensure consistent package versioning.

@nfbot nfbot changed the title Transition to multi-package repository. Transition to multi-package repository Feb 17, 2025
Copy link

coderabbitai bot commented Feb 17, 2025

Walkthrough

The pull request updates several CI/CD and dependency management configurations. The changelog template now lists two NuGet packages instead of one. Two GitHub Actions workflow files have been modified to add and properly format a solution parameter. The Azure Pipelines configuration has been restructured with new jobs and conditional triggers based on version tags. Additionally, new packages.lock.json files have been added for multiple projects to define dependency versions and content hashes.

Changes

File(s) Change Summary
.github/.changelog-config.json Updated the changelog template to list two NuGet packages (nanoFramework.Devices.Can.Core and nanoFramework.Device.Can.Stm32) instead of one.
.github/workflows/pr-checks.yml
.github/workflows/update-dependencies.yml
Modified GitHub Actions workflows by adding a solution parameter to the check_package_lock job and updating the solutionsToCheck parameter to use a multi-line block scalar for better readability.
azure-pipelines.yml Introduced new jobs (Build_Library, Update_Dependents, Report_Build_Failure) with conditions based on version tags to modularize the build, update, and reporting processes.
nanoFramework.Device.Can.Esp32/packages.lock.json
nanoFramework.Device.Can.Mcp2515/packages.lock.json
nanoFramework.Device.Can.Stm32/packages.lock.json
Added new dependency lock files specifying versions, requested ranges, resolved versions, and content hashes for project dependencies.

Sequence Diagram(s)

sequenceDiagram
    participant SCM as Source Control
    participant AP as Azure Pipelines
    participant BL as Build_Library
    participant UD as Update_Dependents
    participant RB as Report_Build_Failure

    SCM->>AP: Push commit or tag
    AP->>BL: Trigger Build_Library (if branch is not a version tag)
    BL-->>AP: Build result (success/failure)
    AP->>UD: Trigger Update_Dependents (based on tag/commit conditions)
    UD-->>AP: Update result (success/failure)
    AP->>RB: Evaluate job outcomes
    RB-->>AP: Report failures via Discord webhook (if any)
Loading

Suggested labels

Type: dependencies, CI: Publish Release


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
azure-pipelines.yml (4)

36-39: Variables block formatting improvement.
There are some trailing spaces within the variables block (e.g., after line 38). Cleaning these up will improve readability and help avoid potential YAML lint warnings.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 39-39: trailing spaces

(trailing-spaces)


43-92: Build_Library job configuration review.
The Build_Library job is structured well with clear conditions and step templates for building, packaging, and publishing the library. One suggestion is to address several trailing whitespace and indentation issues (for instance, around lines 67, 74, 78, 82, and 86) as noted by YAMLlint. This cleanup will enhance maintainability and prevent linting errors.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 43-43: wrong indentation: expected 2 but found 0

(indentation)


[error] 58-58: trailing spaces

(trailing-spaces)


[warning] 67-67: wrong indentation: expected 4 but found 2

(indentation)


[error] 74-74: trailing spaces

(trailing-spaces)


[error] 78-78: trailing spaces

(trailing-spaces)


[error] 82-82: trailing spaces

(trailing-spaces)


[error] 86-86: trailing spaces

(trailing-spaces)


118-130: Update_Dependents job condition clarity.
The combined conditions (checking tag prefixes, commit messages, and the UPDATE_DEPENDENTS flag) are logically sound and accommodate multiple update scenarios. As a minor note, please review the indentation and remove any trailing spaces to adhere to YAML best practices.


145-170: Report_Build_Failure job configuration.
This job effectively aggregates failures from the Build_Library and Update_Dependents jobs and reports them via Discord. To ensure a clean and error-free YAML file, please address the trailing spacing and indentation issues (notably on lines 146, 148, 160, 161, and 165) as highlighted by the static analysis.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 146-146: trailing spaces

(trailing-spaces)


[warning] 148-148: wrong indentation: expected 4 but found 2

(indentation)


[error] 160-160: trailing spaces

(trailing-spaces)


[warning] 161-161: wrong indentation: expected 4 but found 2

(indentation)


[error] 165-165: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 81298b0 and d246f04.

⛔ Files ignored due to path filters (45)
  • .editorconfig is excluded by none and included by none
  • README.md is excluded by !**/*.md and included by none
  • Stub-generation.md is excluded by !**/*.md and included by none
  • nanoFramework.Device.Can.Core.nuspec is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanController.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanControllerEventListener.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanControllerManager.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanEvent.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanMessage.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanMessageEvent.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanMessageFrameType.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanMessageIdType.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanMessageReceivedEventArgs.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/CanSettings.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/Properties/AssemblyInfo.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Core/key.snk is excluded by none and included by none
  • nanoFramework.Device.Can.Core/nanoFramework.Device.Can.Core.nfproj is excluded by none and included by none
  • nanoFramework.Device.Can.Core/packages.config is excluded by none and included by none
  • nanoFramework.Device.Can.Esp32.nuspec is excluded by none and included by none
  • nanoFramework.Device.Can.Esp32/Properties/AssemblyInfo.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Esp32/key.snk is excluded by none and included by none
  • nanoFramework.Device.Can.Esp32/nanoFramework.Device.Can.Esp32.nfproj is excluded by none and included by none
  • nanoFramework.Device.Can.Esp32/packages.config is excluded by none and included by none
  • nanoFramework.Device.Can.Mcp2515.nuspec is excluded by none and included by none
  • nanoFramework.Device.Can.Mcp2515/Properties/AssemblyInfo.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Mcp2515/key.snk is excluded by none and included by none
  • nanoFramework.Device.Can.Mcp2515/nanoFramework.Device.Can.Mcp2515.nfproj is excluded by none and included by none
  • nanoFramework.Device.Can.Mcp2515/packages.config is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32.nuspec is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanController.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanControllerEventListener.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanControllerManager.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanEvent.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanMessage.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanMessageEvent.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanMessageFrameType.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanMessageIdType.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanMessageReceivedEventArgs.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/CanSettings.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/Properties/AssemblyInfo.cs is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/key.snk is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/nanoFramework.Device.Can.Stm32.nfproj is excluded by none and included by none
  • nanoFramework.Device.Can.Stm32/packages.config is excluded by none and included by none
  • nanoFramework.Device.Can.sln is excluded by none and included by none
  • spelling_exclusion.dic is excluded by none and included by none
📒 Files selected for processing (7)
  • .github/.changelog-config.json (1 hunks)
  • .github/workflows/pr-checks.yml (1 hunks)
  • .github/workflows/update-dependencies.yml (2 hunks)
  • azure-pipelines.yml (2 hunks)
  • nanoFramework.Device.Can.Esp32/packages.lock.json (1 hunks)
  • nanoFramework.Device.Can.Mcp2515/packages.lock.json (1 hunks)
  • nanoFramework.Device.Can.Stm32/packages.lock.json (1 hunks)
✅ Files skipped from review due to trivial changes (4)
  • .github/workflows/update-dependencies.yml
  • nanoFramework.Device.Can.Stm32/packages.lock.json
  • nanoFramework.Device.Can.Mcp2515/packages.lock.json
  • nanoFramework.Device.Can.Esp32/packages.lock.json
🧰 Additional context used
🪛 YAMLlint (1.35.1)
azure-pipelines.yml

[error] 21-21: trailing spaces

(trailing-spaces)


[error] 39-39: trailing spaces

(trailing-spaces)


[warning] 43-43: wrong indentation: expected 2 but found 0

(indentation)


[error] 58-58: trailing spaces

(trailing-spaces)


[warning] 67-67: wrong indentation: expected 4 but found 2

(indentation)


[error] 74-74: trailing spaces

(trailing-spaces)


[error] 78-78: trailing spaces

(trailing-spaces)


[error] 82-82: trailing spaces

(trailing-spaces)


[error] 86-86: trailing spaces

(trailing-spaces)


[error] 139-139: trailing spaces

(trailing-spaces)


[warning] 140-140: wrong indentation: expected 4 but found 2

(indentation)


[error] 146-146: trailing spaces

(trailing-spaces)


[warning] 148-148: wrong indentation: expected 4 but found 2

(indentation)


[error] 160-160: trailing spaces

(trailing-spaces)


[warning] 161-161: wrong indentation: expected 4 but found 2

(indentation)


[error] 165-165: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: nanoFramework.Device.Can (Build_Library)
🔇 Additional comments (2)
.github/workflows/pr-checks.yml (1)

13-14: Addition of 'solution' parameter in the check_package_lock job.
The new with: solution: 'nanoFramework.Device.Can.sln' parameter brings consistency with the check_nuget_latest job and helps ensure the correct solution is targeted during package lock verification.

azure-pipelines.yml (1)

20-23: Introduced tag-based triggers for builds.
Adding the tag trigger (include: - v*) ensures that builds can be automatically initiated for version tags, which is a key part of the release process for multiple packages.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 21-21: trailing spaces

(trailing-spaces)

@@ -37,7 +37,7 @@
}
],
"sort": "ASC",
"template": "${{CHANGELOG}}\n\n**Full Changelog:** ${{RELEASE_DIFF}}\n\nThe following NuGet package is available from this release:\n\n:package: [nanoFramework.Devices.Can](https://www.nuget.org/packages/nanoFramework.Devices.Can/)",
"template": "${{CHANGELOG}}\n\n**Full Changelog:** ${{RELEASE_DIFF}}\n\nThe following NuGet packages are available from this release:\n\n:package: [nanoFramework.Devices.Can.Core](https://www.nuget.org/packages/nanoFramework.Devices.Can.Core/)\n:package: [nanoFramework.Device.Can.Stm32](https://www.nuget.org/packages/nanoFramework.Devices.Can.Stm32/)",
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Updated changelog template with multi-package information.
The revised template now details both NuGet packages—:package: [nanoFramework.Devices.Can.Core](...) and :package: [nanoFramework.Device.Can.Stm32](...)—which aligns with the multi-package repository strategy. However, please verify that the Core package’s name is consistent across the repository; the template uses "Devices" (plural) while other references use "Device" (singular).

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (9)
azure-pipelines.yml (9)

20-23: Tags Block Addition and Formatting

You've added a new tags section to trigger builds on version tags (v*), which aligns with the multi-package repository strategy. However, static analysis detected trailing spaces on line 21. Please remove the extra whitespace to adhere to YAML formatting standards.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 21-21: trailing spaces

(trailing-spaces)


55-62: Build_Library Job Variables Definition

The addition of variables (including the credentials group, buildPlatform, buildConfiguration, and solution) is well executed. However, static analysis indicates trailing spaces on line 58. Please remove the extra spaces to maintain a clean YAML file.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 58-58: trailing spaces

(trailing-spaces)


66-72: Build Step Template Invocation

The step that invokes the class-lib-build-only.yml template is structured correctly. Yet, static analysis warns that line 67 shows incorrect indentation (expected 4 spaces but found 2). Adjusting the indentation will help ensure the YAML parser processes this correctly.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 67-67: wrong indentation: expected 4 but found 2

(indentation)


73-77: Packaging Step for Core Library

The packaging step for nanoFramework.Device.Can.Core using the designated template is correctly set up. Static analysis flags trailing spaces on line 74; please remove these spaces to conform with YAML lint standards.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 74-74: trailing spaces

(trailing-spaces)


78-85: Commented-Out Packaging Steps

The blocks for packaging nanoFramework.Device.Can.Esp32 and nanoFramework.Device.Can.Mcp2515 are appropriately commented out. However, trailing spaces are reported on line 78 and line 82. Even in commented sections, it's beneficial to clean up formatting for readability.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 78-78: trailing spaces

(trailing-spaces)


[error] 82-82: trailing spaces

(trailing-spaces)


86-89: Packaging Step for Stm32 Library

The packaging step for nanoFramework.Device.Can.Stm32 looks correct. Please address the trailing spaces issue reported on line 86 to ensure a tidy configuration file.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 86-86: trailing spaces

(trailing-spaces)


138-142: Update_Dependents Job Steps

Including the checkout step to persist GitHub credentials is essential. However, static analysis flags trailing spaces on line 139 and an indentation issue on line 140 (expected 4 spaces but found 2). Please correct these formatting issues to ensure consistency and proper parsing.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 139-139: trailing spaces

(trailing-spaces)


[warning] 140-140: wrong indentation: expected 4 but found 2

(indentation)


145-155: Report_Build_Failure Job Definition

The Report_Build_Failure job is set up to run when either Build_Library or Update_Dependents fails, which is a solid design for error reporting. Static analysis, however, reports trailing spaces on line 146 and a wrong indentation for the dependsOn entry on line 148. Addressing these formatting issues will improve the clarity and reliability of your YAML configuration.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 146-146: trailing spaces

(trailing-spaces)


[warning] 148-148: wrong indentation: expected 4 but found 2

(indentation)


159-170: Report_Build_Failure Job Steps

The steps for reporting build failures via a Discord webhook are well implemented. Attention should be paid to formatting details: static analysis flags trailing spaces on line 160, an indentation warning on line 161 (expected 4 spaces but found 2), and trailing spaces on line 165. Cleaning up these issues will help ensure the YAML file remains maintainable and error-free.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 160-160: trailing spaces

(trailing-spaces)


[warning] 161-161: wrong indentation: expected 4 but found 2

(indentation)


[error] 165-165: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d246f04 and 0391ee1.

⛔ Files ignored due to path filters (2)
  • nanoFramework.Device.Can.Core/nanoFramework.Device.Can.Core.nfproj is excluded by none and included by none
  • nanoFramework.Device.Can.Esp32.nuspec is excluded by none and included by none
📒 Files selected for processing (1)
  • azure-pipelines.yml (2 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
azure-pipelines.yml

[error] 21-21: trailing spaces

(trailing-spaces)


[warning] 43-43: wrong indentation: expected 2 but found 0

(indentation)


[error] 58-58: trailing spaces

(trailing-spaces)


[warning] 67-67: wrong indentation: expected 4 but found 2

(indentation)


[error] 74-74: trailing spaces

(trailing-spaces)


[error] 78-78: trailing spaces

(trailing-spaces)


[error] 82-82: trailing spaces

(trailing-spaces)


[error] 86-86: trailing spaces

(trailing-spaces)


[error] 139-139: trailing spaces

(trailing-spaces)


[warning] 140-140: wrong indentation: expected 4 but found 2

(indentation)


[error] 146-146: trailing spaces

(trailing-spaces)


[warning] 148-148: wrong indentation: expected 4 but found 2

(indentation)


[error] 160-160: trailing spaces

(trailing-spaces)


[warning] 161-161: wrong indentation: expected 4 but found 2

(indentation)


[error] 165-165: trailing spaces

(trailing-spaces)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: nanoFramework.Device.Can (Build_Library)
🔇 Additional comments (5)
azure-pipelines.yml (5)

38-39: DOTNET_NOLOGO Variable Configuration

The explicit setting of DOTNET_NOLOGO to true is clear and correctly defined. No further changes are needed here, but do ensure consistency in variable usage across the pipeline.


40-42: Jobs Section Declaration

Introducing the jobs: section establishes the new structure required for a multi-package build system. The inclusion of this section looks good; just ensure that it harmonizes with the overall repository transition.


52-54: Build_Library Job Pool Configuration

Assigning vmImage: 'windows-latest' under the pool section is appropriate for the build environment. This section is clear and requires no changes.


118-130: Update_Dependents Job Condition

The condition for the Update_Dependents job—checking for version-tags, specific commit messages, or an explicit flag—is well structured and should support your dependency update strategy. Verify that these conditions align with your intended workflow triggers.


132-137: Update_Dependents Job Pool and Variables

The pool setting and the definition of DOTNET_NOLOGO for the Update_Dependents job are clear and correctly specified. No issues detected here.

Comment on lines +43 to +51
- job: Build_Library
condition: >-
and(
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')),
or(
eq(variables['UPDATE_DEPENDENTS'], 'false'),
eq(variables['StartReleaseCandidate'], 'true')
)
)
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Build_Library Job Condition

The condition for the Build_Library job correctly avoids triggering on version tag builds and handles the UPDATE_DEPENDENTS and StartReleaseCandidate flags. Note that static analysis highlights a potential indentation issue on line 43 (expected 2 spaces but found 0). Please verify and correct the YAML indentation if necessary to avoid parser warnings.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 43-43: wrong indentation: expected 2 but found 0

(indentation)

@frobijn
Copy link
Author

frobijn commented Feb 17, 2025

The build error seems to be caused by a mismatch between the dependencies in the nfproj and the ones in nuspec - not sure about that as I have no clue what the scripts are doing. If that is correct, the second commit should have fixed that, but it seems the build was not restarted. I guess we need some help to get this working.

@networkfusion
Copy link
Member

networkfusion commented Feb 17, 2025

The build error seems to be caused by a mismatch between the dependencies in the nfproj and the ones in nuspec - not sure about that as I have no clue what the scripts are doing. If that is correct, the second commit should have fixed that, but it seems the build was not restarted. I guess we need some help to get this working.

look at the differences of versions in vs proj file the .nuspec file and update them to match.

@frobijn
Copy link
Author

frobijn commented Feb 18, 2025

I think the last commit should have fixed the version issues, but did not trigger the correct tasks. I'l re-create the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants