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

Corrupted files causing build on Linux to fail on ADO pipeline #477

Open
lin-yaxiong opened this issue Jun 5, 2023 · 0 comments
Open

Corrupted files causing build on Linux to fail on ADO pipeline #477

lin-yaxiong opened this issue Jun 5, 2023 · 0 comments

Comments

@lin-yaxiong
Copy link

There appears to have some files corrupted in one of the Test folder causing the dotnet publish command to fail:
Dockerfile:
FROM node:16.13
...
RUN dotnet publish -c Debug --output /publish --self-contained true --runtime linux-x64 --configuration -p:PublishTrimmed=true -p:PublishSingleFile=true

Error Logs:
...
Utilities/TemplateUtilityTests.cs(139,93): warning SA1013: Closing brace should be preceded by a space. [/builddir/FHIR-Converter/src/Microsoft.Health.Fhir.Liquid.Converter.UnitTests/Microsoft.Health.Fhir.Liquid.Converter.UnitTests.csproj]
Microsoft.Health.Fhir.Liquid.Converter.UnitTests -> /builddir/FHIR-Converter/bin/Microsoft.Health.Fhir.Liquid.Converter.UnitTests/Microsoft.Health.Fhir.Liquid.Converter.UnitTests.dll
Microsoft.Health.Fhir.Liquid.Converter.UnitTests -> /publish/
Microsoft.Health.Fhir.TemplateManagement.FunctionalTests -> /builddir/FHIR-Converter/bin/Microsoft.Health.Fhir.TemplateManagement.FunctionalTests/Microsoft.Health.Fhir.TemplateManagement.FunctionalTests.dll
/usr/share/dotnet/sdk/3.1.426/Microsoft.Common.CurrentVersion.targets(4651,5): error MSB3030: Could not copy the file "/builddir/FHIR-Converter/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/TestData/DecompressedFiles/VXU_V04.liquid" because it was not found. [/builddir/FHIR-Converter/src/Microsoft.Health.Fhir.TemplateManagement.UnitTests/Microsoft.Health.Fhir.TemplateManagement.UnitTests.csproj]
Microsoft.Health.Fhir.TemplateManagement.FunctionalTests -> /publish/
Microsoft.Health.Fhir.Liquid.Converter.Tool -> /builddir/FHIR-Converter/src/Microsoft.Health.Fhir.Liquid.Converter.Tool/bin/Debug/netcoreapp3.1/ubuntu-x64/Microsoft.Health.Fhir.Liquid.Converter.Tool.dll
Microsoft.Health.Fhir.Liquid.Converter.Tool -> /publish/
The command '/bin/sh -c dotnet publish /builddir/FHIR-Converter -c Debug --output /publish --self-contained false --runtime ubuntu-x64' returned a non-zero code: 1

But the app builds and runs just fine on my Mac though this file "VXU_V04.liquid" shows to be corrupted, see below:

drwxr-xr-x 2 root root 4096 Apr 11 14:07 .
drwxr-xr-x 10 root root 4096 Apr 11 14:07 ..
-rw-r--r-- 1 root root 3491 Apr 11 14:07 ADT_A01.liquid
-rw-r--r-- 1 root root 3484 Apr 11 14:07 ORU_R01.liquid
c????????? ? ? ? ? ? VXU_V04.liquid

My workaround is to fork the repo and remove all of the "test" projects. But I'd rather to use the original repo "microsoft/FHIR-Converter" repo if that's all possible.

Has anyone encounter the same issue and knows a workaround?

Thanks.

@lin-yaxiong lin-yaxiong changed the title Corrupted files causing build on Linux to fail Corrupted files causing build on Linux to fail on ADO pipeline Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant