runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Enabling ARM based builds in corefx CI

Open prajwal-aithal opened this issue 10 years ago • 7 comments

The current CI code in corefx does not build (cross/native) for ARM architecture. Some commits could break the native part of corefx for Linux ARM (as can be seen here dotnet/runtime#17292 ). I want to add the code to cross build the native part of corefx for Ubuntu-ARM to prevent such build breaks. I would like to do the same in 2 steps.

  1. Add code to enable cross build for Ubuntu ARM to the CI (supporting manual trigger of the CI check).
  2. Once this is confirmed to work correctly, change the code to make this check automatically triggered for every PR.

I saw the CI script, and have a question regarding where in the script could this change be best accommodated.

  1. Adding code to build native corefx (no testing) under the outerloop testing part of the script (lines 319 to 375).
  2. Adding code to build native corefx (again, no testing) under the innerloop part of the script (lines 467 to 590).

What is the best choice for this change?

@mmitche @Priya91

prajwal-aithal avatar May 19 '16 04:05 prajwal-aithal

@leemgs

prajwal-aithal avatar May 20 '16 07:05 prajwal-aithal

/CC: @myungjoo, @jyoungyun

leemgs avatar May 20 '16 08:05 leemgs

/cc @jashook

mmitche avatar May 20 '16 15:05 mmitche

@jashook @Priya91 ARM Emulator CI checks have now been enabled in the coreclr project (PRs dotnet/coreclr#5933, dotnet/coreclr#5961, dotnet/coreclr#5983).

I believe we can implement the ARM Emulator CI checks for the native part of corefx in the same manner as implemented in coreclr. This would help us prevent build regressions in the native part of corefx.

There has been a lot of learning involved in this task and I believe that the effort in implementing the same in corefx would be a lot lesser than what it took to do the same in coreclr. The cross build script would roughly be the same, but I still need some insight into the organization of the groovy script in corefx.

Specifically, could you please let me know what the outerloop and innerloop sections of the groovy script correspond to and where I can add the code for the ARM Emulator CI check job?

prajwal-aithal avatar Jun 24 '16 06:06 prajwal-aithal

@prajwal-aithal Let me propose a patch for CoreFX arm-softfp cross build with emulator's rootfs: emulator-corefx-cross-build.patch.txt (it is similar to patch for CoreCLR: emulator-coreclr-cross-build.patch.txt)

mkborg avatar Jun 24 '16 08:06 mkborg

Specifically, could you please let me know what the outerloop and innerloop sections of the groovy script correspond to and where I can add the code for the ARM Emulator CI check job?

The outerloop and innerloop are differing only in a build switch /p:OuterLoop=true, in outerloop more tests are run, and it is a nightly build, run daily once. Innerloop runs have a subset of post-checkin tests that are required to be run for every checkin. Outerloop runs are run elevated, innerloop is not.

The native build of corefx is done as a part of the build process itself, we don't have a separate section in netci.groovy that does this. Check out the build.sh and src\Native\Windows\build-native.cmd

Priya91 avatar Jun 24 '16 19:06 Priya91

This has been implemented by PRs dotnet/corefx#9718 , dotnet/corefx#9906 , and dotnet/corefx#9909 . This can be closed now.

prajwal-aithal avatar Jul 15 '16 00:07 prajwal-aithal