redhat-developer / redhat-developer/dotnet-regular-tests

targeting-packs-bad-files fails with .NET 8/9/10/11

Open
#251 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

8.0
Dominant language
Shell
Stars
8
Forks
17
Avg merge
1d 4m
Merged PRs (30d)
6

Description

The test doesn't like the json files that are in the runtime packs:

# Standard Output:
Executing /tmp/tmp.WWKaTVkqht/dotnet-regular-tests/targeting-packs-bad-files/test.sh with arguments 8.0.0-preview.6.23307.4 in working directory /tmp/tmp.WWKaTVkqht/dotnet-regular-tests/targeting-packs-bad-files
Found .NET at /tmp/tmp.WWKaTVkqht/.dotnet
error: found some json files in /tmp/tmp.WWKaTVkqht/.dotnet/packs
/tmp/tmp.WWKaTVkqht/.dotnet/packs/Microsoft.AspNetCore.App.Runtime.fedora.38-x64/8.0.0-preview.6.23307.4/runtimes/fedora.38-x64/lib/net8.0/Microsoft.AspNetCore.App.deps.json
/tmp/tmp.WWKaTVkqht/.dotnet/packs/Microsoft.AspNetCore.App.Runtime.fedora.38-x64/8.0.0-preview.6.23307.4/runtimes/fedora.38-x64/lib/net8.0/Microsoft.AspNetCore.App.runtimeconfig.json
/tmp/tmp.WWKaTVkqht/.dotnet/packs/Microsoft.NETCore.App.Runtime.fedora.38-x64/8.0.0-preview.6.23307.4/runtimes/fedora.38-x64/lib/net8.0/Microsoft.NETCore.App.deps.json
/tmp/tmp.WWKaTVkqht/.dotnet/packs/Microsoft.NETCore.App.Runtime.fedora.38-x64/8.0.0-preview.6.23307.4/runtimes/fedora.38-x64/lib/net8.0/Microsoft.NETCore.App.runtimeconfig.json
Exit Code: 1
# Standard Error:
++++ command -v dotnet
+++ readlink -f /tmp/tmp.WWKaTVkqht/.dotnet/dotnet
++ dirname /tmp/tmp.WWKaTVkqht/.dotnet/dotnet
+ dotnet_dir=/tmp/tmp.WWKaTVkqht/.dotnet
+ echo 'Found .NET at /tmp/tmp.WWKaTVkqht/.dotnet'
+ errors=0
++ find /tmp/tmp.WWKaTVkqht/.dotnet/packs -iname '*.json'
++ wc -l
+ json_lines=4
+ [[ 4 -gt 0 ]]
+ echo 'error: found some json files in /tmp/tmp.WWKaTVkqht/.dotnet/packs'
+ find /tmp/tmp.WWKaTVkqht/.dotnet/packs -iname '*.json'
+ errors=1
++ find /tmp/tmp.WWKaTVkqht/.dotnet/packs -iname Debug
++ wc -l
+ debug_lines=0
+ [[ 0 -gt 0 ]]
+ [[ 1 -gt 0 ]]
+ exit 1

cc @omajid

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading and rerunning targeting-packs-bad-files/test.sh, focusing on the find command that flags JSON files under the runtime packs. Determine whether the reported files are expected for the tested .NET versions, then make the test correctly reflect that behavior and verify the test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.