Coder Social home page Coder Social logo

dotnet / runtime-assets Goto Github PK

View Code? Open in Web Editor NEW
31.0 113.0 60.0 73.83 MB

Assets that are required by the runtime repository, and referenced as nuget packages.

License: MIT License

HTML 1.53% C 0.69% Common Lisp 0.23% Roff 0.53% JavaScript 0.86% Batchfile 0.10% Shell 8.92% PowerShell 10.79% CMake 1.02% C# 75.33%

runtime-assets's Introduction

Runtime-Assets

This repository contains assets that are binary files or too large to be checked in directly. Packages are uploaded to the default transport channel's feed.

Workflow

  1. Submit a PR with the new assets.
  2. After the PR is merged, an internal build publishes assets to the Build Assets Registry and an auto PR will be opened in the subscribing repositories.
  • Optional step: Local testing.

Example

Let's assume we are adding a new unit test for the GZip feature from the System.IO.Compression namespace, and the test depends on a file called example.gz.

1. Submit a PR to runtime-assets with the new files.

For any files that can't be reviewed in diff (ie., binary files) please include in the PR instructions for how to create them independently - ie., a program, or the inputs and the version of the tool used to create them. When reviewing a PR containing binary files, make a best effort to validate their content. Here's an example.

2. Post-merge

After the PR is merged an internal build will publish the packages to a public feed and update the Build Assets Registry. Subscribers to this repository will receive an auto PR update with the updated package version.

Optional step: local testing

Testing your assets in your local machine is an optional step you can perform before submitting your PR. Local testing is usually not necessary due to the nature of this repository, which mostly only deals with static files. Feel free to skip this section.

a) Save example.gz inside runtime-assets\src\System.IO.Compression.TestData\GZipTestData.

b) Run build.cmd --pack from the runtime-assets\ root folder.

c) Verify that your package was generated with the new test data.

I. Go to runtime-assets\artifacts\packages\Debug\NonShipping. II. Temporarily rename System.IO.Compression.TestData.7.0.0-dev.nupkg to the extension *.nupkg.zip. III. Open it with your preferred Zip app. IV. Inside the zip, navigate to contentFiles\any\any\GZipTestData and verify that the new example.gz file can be found there. V. Close the Zip window, and revert the name to *.nupkg.

d) Go to your runtime folder.

e) Edit Nuget.config located in the root folder, and inside the <packageSources> section, add a new key that points to the temporary folder as a source: <add key="tmp" value="D:\runtime-assets\artifacts\packages\Debug\NonShipping" /> (make sure to adjust the root path to your repo folder).

f) Go to runtime\src\libraries\System.IO.Compression\tests and run dotnet build or dotnet restore. This will force consuming the new nupkg and will place it in your local .nuget cache (usually, it's C:\Users\%USERNAME%\.nuget).

g) At the time of writing this guide, the .NET version tracked in the main branch of the runtime repo was 7.0. So for this example, assume the version number is 7.0.0. Navigate to your local .nuget folder, go to .nuget\System.IO.Compression.TestData and verify that the folder 7.0.0-dev is there, and that 7.0.0-dev\contentFiles\any\any\GZipTestData\example.gz is there.

h) Run your new unit test that depends on that file, it should be able to find the file.

i) If you need to update the package with additional files, make sure to delete the folder .nuget\System.IO.Compression.TestData\7.0.0-dev\, then repeat steps b through h.

runtime-assets's People

Contributors

akoeplinger avatar am11 avatar anipik avatar bartonjs avatar buyaa-n avatar carlossanlop avatar cipop avatar danmoseley avatar davidsh avatar dotnet-bot avatar dotnet-maestro[bot] avatar github-actions[bot] avatar grabyourpitchforks avatar hangy avatar hughbe avatar jeffhandley avatar joeloff avatar johntortugo avatar lewing avatar mdh1418 avatar mellinoe avatar qmfrederik avatar safern avatar satano avatar simonrozsival avatar stephentoub avatar terrajobst avatar tqiu8 avatar viktorhofer avatar wfurt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

runtime-assets's Issues

Improve "Post merge" instructions in Readme

@ViktorHofer explained the process after merging a new package. We need to add those instructions in the readme "post merge" section: https://github.com/dotnet/runtime-assets#2-post-merge

Summarized:

  • After merge, wait for the pipeline to finish and the packages get published to Darc.
  • Look at the runtime-assets-official artifacts list, the new package should be there.
  • Copy the version of the package.
  • In the runtime repo, add entries for the new package to Versions.props and to Versions.Details.xml

Turn on github actions for this repository

I have a (slightly broken) github action in my fork that checks weekly for updates of tzdb and opens a pr, I would like to move it here but I can't until actions are enabled here.

Some PoliCheck reported bugs in the regex test sets

So in Roslyn, we are using the same test file as here to test a regex engine.
But we received some PoliCheck bugs related to the words in the test sets.

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1450263/
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1450268/
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1450266/
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1450264/
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1450259/

I mark all of them as resolved now because it is only used for testing purposes but I want to have a double-check with you, do we allow PoliCheck bugs in the test asset file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.