Skip to content

Conversation

@mandel-macaque
Copy link
Contributor

Use composition to generalize the BuildProjectTask to later reuse it in
the CLI.

mandel-macaque and others added 8 commits April 3, 2020 17:41
Some of the Jenkins test tasks are very useful and do A LOT of stuff. So
we try to generalize the base class, to later be able to share the most
usebul ones in the shared lib.
Move the task and use composition so that we can reuse the code. This
will later allow other projects to use the class without the need of
Jenkins or Harness and just implement the base class.
Use compopsition to generalize the BuildProjectTask to later reuse it in
the CLI.
Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
compilation errors added by the review suggestions.
@mandel-macaque mandel-macaque added run-bcl-tests Run the BCL tests run-internal-tests If tests should be executed on the internal Jenkins instance. labels Apr 6, 2020
@mandel-macaque
Copy link
Contributor Author

As with others, creating a draft to simplify reviews. It is important to see the bcl tests run since they are the ones that use nuget restore.

The creation of the build task is not as I wished, I'd prefer it to take testproject directly, but we are doing MSBuild.CloneProject which alters the state of the task. Later we should rethink that API so that it is more clear.

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

50 tests failed, 103 tests passed.

Failed tests

  • monotouch-test/watchOS 32-bits - simulator/Debug: Failed
  • framework-test/watchOS 32-bits - simulator/Debug: Failed
  • interdependent-binding-projects/watchOS 32-bits - simulator/Debug: Failed
  • fsharp/watchOS 32-bits - simulator/Debug: Failed
  • introspection/watchOS 32-bits - simulator/Debug: Failed
  • dont link/watchOS 32-bits - simulator/Debug: Failed
  • dont link/watchOS 32-bits - simulator/Release: Failed
  • link all/watchOS 32-bits - simulator/Debug: Failed
  • link all/watchOS 32-bits - simulator/Release: Failed
  • link sdk/watchOS 32-bits - simulator/Debug: Failed
  • link sdk/watchOS 32-bits - simulator/Release: Failed
  • mono-native-compat/watchOS 32-bits - simulator/Debug: Failed
  • mono-native-unified/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemCoreXunit Part 1/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemCoreXunit Part 2/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemXunit/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemCoreTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemNumericsTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemRuntimeSerializationTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemTransactionsTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemXmlTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemXmlLinqTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemComponentModelDataAnnotationsTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemJsonTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemServiceModelWebTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemIOCompressionTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemIOCompressionFileSystemTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono MonoCSharpTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemSecurityTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono MonoDataSqliteTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono MonoRuntimeTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemDataTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemDataDataSetExtensionsTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemNetHttpTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemServiceModelTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono CorlibTests/watchOS 32-bits - simulator/Debug: Failed
  • [NUnit] Mono SystemWebServicesTests/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemDataXunit/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemJsonXunit/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemSecurityXunit/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemLinqXunit/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemXmlXunit/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemRuntimeCompilerServicesUnsafeXunit/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemNumericsXunit/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono MicrosoftCSharpXunit/watchOS 32-bits - simulator/Debug: Failed
  • [xUnit] Mono SystemNetHttpUnitTestsXunit/watchOS 32-bits - simulator/Debug: Failed
  • monotouch-test/watchOS 32-bits - simulator/Debug (LinkSdk): Failed
  • monotouch-test/watchOS 32-bits - simulator/Debug (static registrar): Failed
  • monotouch-test/watchOS 32-bits - simulator/Release (all optimizations): Failed

Copy link
Member

@dalexsoto dalexsoto left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@xamarin-release-manager
Copy link
Collaborator

Build was (probably) aborted

🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Test run' 🔥 : org.jenkinsci.plugins.workflow.steps.FlowInterruptedException

Build succeeded
✅ Packages:

API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Failed to publish results 🔥

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

1 tests failed, 152 tests passed.

Failed tests

  • [NUnit] Mono Mac OS X BCL tests group 2/Mac Full/Debug: Failed (Test run failed.)

@xamarin-release-manager
Copy link
Collaborator

Build was (probably) aborted

🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Test run, Test run' 🔥

Build succeeded
✅ Packages:

API Diff (from stable)
⚠️ API Diff (from PR only) (🔥 breaking changes 🔥)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

1 tests failed, 184 tests passed.

Failed tests

  • mmptest/macOS/Debug: Failed (Execution failed with exit code 1)

@mandel-macaque mandel-macaque changed the base branch from reuse-msbuild-task to master April 8, 2020 20:34
@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
Test run succeeded

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
ℹ️ Generator Diff (please review changes)
🔥 Test run failed 🔥

Test results

1 tests failed, 152 tests passed.

Failed tests

  • monotouch-test/watchOS 32-bits - simulator/Debug: Failed

@mandel-macaque
Copy link
Contributor Author

@mandel-macaque mandel-macaque merged commit e668545 into master Apr 9, 2020
@xamarin-release-manager
Copy link
Collaborator

Build was (probably) aborted

🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Checkout' 🔥 : hudson.AbortException: script returned exit code 128

@mandel-macaque mandel-macaque deleted the reuse-buildproject-task branch May 21, 2020 04:04
mandel-macaque added a commit that referenced this pull request Aug 5, 2020
Use composition to generalize the BuildProjectTask to later reuse it in
the CLI.

Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
mandel-macaque added a commit that referenced this pull request Oct 12, 2020
Use composition to generalize the BuildProjectTask to later reuse it in
the CLI.

Co-Authored-By: Rolf Bjarne Kvinge <rolf@xamarin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-bcl-tests Run the BCL tests run-internal-tests If tests should be executed on the internal Jenkins instance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants