Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
0f53f01
[Harness] Use fullname for test-case in the xunit xslt.
mandel-macaque Feb 15, 2020
1495d64
[Devops] Move to a 'matrix' pipeline to improve the device tests feed…
mandel-macaque Feb 15, 2020
e63a00c
Merge branch 'master' into matrix-testing
mandel-macaque Feb 17, 2020
c3d847d
[Harness] Create an xml crash file when we do not have a result file.
mandel-macaque Feb 18, 2020
2ef35c8
Merge branch 'create-crash-xml-tcp' into matrix-testing
mandel-macaque Feb 18, 2020
cb84dfd
Fix logic for test selection using labels.
mandel-macaque Feb 18, 2020
101a980
[VSTS] Correct order of params for make. (#7927)
mandel-macaque Feb 18, 2020
804f242
Do not autoconfig xharness, we 'know' better.
mandel-macaque Feb 19, 2020
318f597
Also add harness logs.
mandel-macaque Feb 19, 2020
09c0d56
Revert "Do not autoconfig xharness, we 'know' better."
mandel-macaque Feb 19, 2020
36149a8
Poor mans debugger.
mandel-macaque Feb 19, 2020
047aed6
Remove CWL, everything worked.
mandel-macaque Feb 19, 2020
87ee051
Merge branch 'master' into matrix-testing
mandel-macaque Feb 20, 2020
0fb6d89
[Harness] Close message element correctly in NUnit3.
mandel-macaque Feb 20, 2020
8e3363c
Merge branch 'add-missing-node' into matrix-testing
mandel-macaque Feb 20, 2020
13b402f
[Harness] Provide device name in those errors where is device specific.
mandel-macaque Feb 20, 2020
d250012
Merge branch 'name-device-installation' into matrix-testing
mandel-macaque Feb 20, 2020
c4978a9
[Harness] Do not add the variation two times to failure messages.
mandel-macaque Feb 21, 2020
9fd1c2d
[Harness] Add start-time to work around a bug in the publishing tool.
mandel-macaque Feb 21, 2020
6c78d46
Merge branch 'single-variation' into matrix-testing
mandel-macaque Feb 21, 2020
c35389f
Merge branch 'add-start-time' into matrix-testing
mandel-macaque Feb 21, 2020
60627cc
Merge branch 'matrix-testing' of github.com:xamarin/xamarin-macios in…
mandel-macaque Feb 21, 2020
9d650c3
Merge branch 'master' into matrix-testing
mandel-macaque Feb 21, 2020
deb53eb
Merge branch 'master' into matrix-testing
mandel-macaque Feb 26, 2020
c529e93
[WIP][DDFun Pipeline] Test test test (#8171)
whitneyschmidt Apr 8, 2020
3c99706
Delete foo.sh
whitneyschmidt Apr 8, 2020
d5fc0de
Delete publish-results-jenkins.ps1
whitneyschmidt Apr 8, 2020
57bae65
try out grabbing test summary files location
whitneyschmidt Apr 22, 2020
52d51fb
change device pool
whitneyschmidt Apr 23, 2020
469b57c
change capabilities for xamarin-ios device pool
whitneyschmidt Apr 23, 2020
d2732d6
remove buggy pwsh line from publish_results, uncomment real tests in …
whitneyschmidt Apr 23, 2020
ef6164d
Revert "change capabilities for xamarin-ios device pool"
whitneyschmidt Apr 23, 2020
64f5c82
Revert "change device pool"
whitneyschmidt Apr 23, 2020
c2885a2
remove set-location from publish_results
whitneyschmidt Apr 23, 2020
80b8418
update with CORRECT env var
whitneyschmidt Apr 24, 2020
5b29a27
re-add debugging code to print out env vars
whitneyschmidt Apr 24, 2020
07b6432
fix accessing testsummary.md
whitneyschmidt Apr 24, 2020
e73c194
first try at adding test summary to per-test failure comment, moved w…
whitneyschmidt Apr 27, 2020
2dfad31
change condition for yaml so that everything runs regardless of succe…
whitneyschmidt Apr 27, 2020
55a52a5
fix *indentation* that was causing pwsh scripts not to run on failure
whitneyschmidt Apr 27, 2020
c2b3aac
skip test execution, instead immediately exit w/ failure code
whitneyschmidt Apr 27, 2020
b46df75
add step for test summary if provisioning fails, fix summary path in …
whitneyschmidt Apr 27, 2020
ee19b9c
remove provisioning success condition, first try (wrong) at publishin…
whitneyschmidt Apr 28, 2020
d949474
adjust final commit message for aggregate test file
whitneyschmidt Apr 28, 2020
ad36208
fix succeeededorfailed conditions
whitneyschmidt Apr 28, 2020
75a18d7
fix again...
whitneyschmidt Apr 28, 2020
629d944
fix aggregate step
whitneyschmidt Apr 28, 2020
cc2ca82
debug summary location
whitneyschmidt Apr 28, 2020
fb4e08b
debug testsummary contents
whitneyschmidt Apr 28, 2020
ead00b7
fix dir path for aggregate
whitneyschmidt Apr 28, 2020
210ff21
add test summary file name to aggregate
whitneyschmidt Apr 29, 2020
b6a57a6
create + grab real test summary from correct location
whitneyschmidt Apr 30, 2020
6bfec0f
wildcard testsummary in publish-results
whitneyschmidt Apr 30, 2020
3c83f30
add string manipulation
whitneyschmidt Apr 30, 2020
2d38eeb
fix syntax error for prefix
whitneyschmidt Apr 30, 2020
e1b5006
try fixing bash syntax error
whitneyschmidt May 1, 2020
19a8421
fix bash for loop
whitneyschmidt May 1, 2020
a7b1623
fix extra spaces in bash script
whitneyschmidt May 1, 2020
8bc52cb
first try at preserving formatting in .md
whitneyschmidt May 1, 2020
99f8ec3
try out formatting python
whitneyschmidt May 1, 2020
548a9db
try making not .md file
whitneyschmidt May 1, 2020
c5c63b8
try converting to json text before adding as text body to post
whitneyschmidt May 1, 2020
257d61e
remove quotation marks from json body text
whitneyschmidt May 1, 2020
591c5f1
try out quotation marks
whitneyschmidt May 4, 2020
942eb1a
try out with all testsummary aggregation logic inside pwsh script
whitneyschmidt May 5, 2020
4da25bb
fix file path for testsummaries
whitneyschmidt May 5, 2020
7e6bb67
fix file path for summaries...
whitneyschmidt May 5, 2020
4d52b29
fix path...
whitneyschmidt May 5, 2020
ae0bdbc
try out double quotes around
whitneyschmidt May 6, 2020
03f8548
fix env var for dir path, add debugging print
whitneyschmidt May 6, 2020
cca7f2d
actually fix dir path??
whitneyschmidt May 6, 2020
9363b88
recursive call to get-childitem since we have Summaries/blah-testname…
whitneyschmidt May 6, 2020
951dbd0
try removing recursive call by adding more wildcards to dir path
whitneyschmidt May 6, 2020
b642e4a
remote aggregate test summary bash task, try out publishing correctly…
whitneyschmidt May 8, 2020
281f709
fix leftover pwsh commands causing failure
whitneyschmidt May 8, 2020
e8c3541
try out more debugging messages for per-test failure
whitneyschmidt May 8, 2020
ebde63f
try fixing per-device pwsh env var for summaries
whitneyschmidt May 9, 2020
11b82c0
actually fix file path for per-device tests?
whitneyschmidt May 9, 2020
c43f8d4
fix file path for per-test message again...
whitneyschmidt May 9, 2020
cb2bae4
try accessing xamarin-macios rather than upload location because ther…
whitneyschmidt May 9, 2020
2ad64eb
try out xamarin-macios/tests
whitneyschmidt May 9, 2020
5abd35f
fix file path??
whitneyschmidt May 11, 2020
81e3cf7
try adding device + test info to aggregate results
whitneyschmidt May 11, 2020
8556e2f
grab fullname then substring
whitneyschmidt May 11, 2020
1156b5f
fix length?
whitneyschmidt May 11, 2020
1c33516
fix file.fullname
whitneyschmidt May 11, 2020
150dfb8
tweak formatting
whitneyschmidt May 11, 2020
4b21d92
clean up publish_failure, add vso var to device-tests to check for te…
whitneyschmidt May 11, 2020
235c764
fix syntax error
whitneyschmidt May 11, 2020
be94e20
test with device tests passing
whitneyschmidt May 11, 2020
6a29feb
fix condition on tests failure
whitneyschmidt May 12, 2020
1568e7f
add succeededorfailed(), update TestState to failed when no test summ…
whitneyschmidt May 12, 2020
bbf6ad1
test out w/ test failures
whitneyschmidt May 12, 2020
86613a8
give a better fake exit code
whitneyschmidt May 12, 2020
0512e59
temporary testing change to always run publish_failure
whitneyschmidt May 12, 2020
4207bee
clean up some stuff, update status with VSTS prefix + add real descri…
whitneyschmidt May 12, 2020
855a9f4
swap description with context since context is unique...
whitneyschmidt May 12, 2020
e665eb6
try out not passing -e to script, ssome cleanup
whitneyschmidt May 12, 2020
b460224
handle error in run-tests correctly
whitneyschmidt May 12, 2020
cad4470
fix syntax
whitneyschmidt May 12, 2020
a01d5ff
add bolded text, clean up a bit
whitneyschmidt May 12, 2020
7169485
clean up + add try/catch to publish_results
whitneyschmidt May 13, 2020
7ec48a8
clean up publish_failure + add try/catch
whitneyschmidt May 13, 2020
08eea78
re-add back tests, devices
whitneyschmidt May 14, 2020
b5975f9
set TestState to failure before we try to run tests, add partial prov…
whitneyschmidt May 14, 2020
603930d
make context for per-test failure _actually_ unique
whitneyschmidt May 14, 2020
246b5c5
fix provisioning status is always set to failure...
whitneyschmidt May 14, 2020
1a6c4bf
fix syntax...
whitneyschmidt May 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions jenkins/add-commit-comment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ if test -n "$VERBOSE"; then
sed 's/^/ /' "$JSONFILE";
fi

cat $JSONFILE

if ! curl -f -v -H "Authorization: token $TOKEN" -H "User-Agent: command line tool" -d "@$JSONFILE" "https://api.github.com/repos/xamarin/xamarin-macios/commits/$HASH/comments" > "$LOGFILE" 2>&1; then
echo "Failed to add commit message."
echo "curl output:"
Expand Down
2 changes: 2 additions & 0 deletions jenkins/add-commit-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ trap cleanup EXIT
printf "}\n"
) > "$JSONFILE"

cat $JSONFILE

if test -n "$VERBOSE"; then
echo "JSON file:"
sed 's/^/ /' "$JSONFILE";
Expand Down
2 changes: 1 addition & 1 deletion jenkins/vsts-device-tests-set-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if test -z "$START"; then

printf "%s%s on [Azure DevOps](%s)($DEVICE_TYPE)%s %s\\n\\n" "$RESULT_EMOJII" "$DESCRIPTION" "$VSTS_BUILD_URL" "$HTML_REPORT" "$RESULT_EMOJII" >> "$MESSAGE_FILE"

FILE=$PWD/tests/TestSummary.md
FILE=$PWD/TestSummary.md
if ! test -f "$FILE"; then
printf "🔥 Tests failed catastrophically on $DEVICE_TYPE (no summary found)\\n" >> "$MESSAGE_FILE"
else
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ runner: xharness/xharness.exe
# installed on the system.
vsts-device-tests: xharness/xharness.exe
$(MAKE) -C $(TOP)/builds .stamp-mono-ios-sdk-destdir download -j
$(Q) ulimit -n 4096 && $(SYSTEM_MONO) --debug $(CURDIR)/$< $(XHARNESS_VERBOSITY) --jenkins --autoconf --rootdir $(CURDIR) --sdkroot $(XCODE_DEVELOPER_ROOT) --use-system:true --label=skip-all-tests,run-device-tests,run-bcl-tests --markdown-summary=$(CURDIR)/TestSummary.md $(TESTS_EXTRA_ARGUMENTS) $(TESTS_PERIODIC_COMMAND)
$(Q) ulimit -n 4096 && $(SYSTEM_MONO) --debug $(CURDIR)/$< $(XHARNESS_VERBOSITY) --jenkins --autoconf --rootdir $(CURDIR) --sdkroot $(XCODE_DEVELOPER_ROOT) --use-system:true --label=skip-all-tests,run-device-tests --markdown-summary=$(CURDIR)/TestSummary.md $(TESTS_EXTRA_ARGUMENTS) $(TESTS_PERIODIC_COMMAND)

ifdef ENABLE_XAMARIN
wrench-launch-external wrench-report-external:
Expand Down
1 change: 1 addition & 0 deletions tests/xharness/AppRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ public bool EnsureCleanSimulatorState {
var logFiles = new List<string> ();
// add our logs AND the logs of the previous task, which is the build task
logFiles.AddRange (Directory.GetFiles (Logs.Directory));
logFiles.Add (Harness.LogFile);
if (BuildTask != null) // when using the run command, we do not have a build task, ergo, there are no logs to add.
logFiles.AddRange (Directory.GetFiles (BuildTask.LogDirectory));
// add the attachments and write in the new filename
Expand Down
1 change: 0 additions & 1 deletion tests/xharness/TestProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public bool IsBclTest {

public bool IsBclxUnit => IsBclTest && (Name.Contains ("xUnit") || IsMscorlib);


public bool IsMscorlib => Name.Contains ("mscorlib");


Expand Down
19 changes: 19 additions & 0 deletions tools/devops/beta-device-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# xamarin-macios device pipeline, this file sets the different parameters required by stages template which will create set of stages depending
# on the configuration to run different device tests.
#
# lame! cannot have the resources in the template.. :/
resources:
repositories:
- repository: maccore
type: github
name: xamarin/maccore
ref: refs/heads/device-tests-yaml # should this be on a branch and not on master???
endpoint: xamarin

# create parallel stages, this means that one single trigger to the pipeline will execute tvos and ios device tests
stages:
- template: templates/beta-stages.yml # all the smart stuff happens in the template, just needed to set the params
parameters:
pool: 'VSEng-Xamarin-Mac-Devices'
timeout: 1000
maxParallel: 5
208 changes: 0 additions & 208 deletions tools/devops/device-tests-common.yml

This file was deleted.

17 changes: 8 additions & 9 deletions tools/devops/device-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# iOS device pipeline, this file sets the different parameters required by the device-tests-common-yml, which contains all the steps and the interesting logic.

# xamarin-macios device pipeline, this file sets the different parameters required by stages template which will create set of stages depending
# on the configuration to run different device tests.
#
# lame! cannot have the resources in the template.. :/
resources:
repositories:
Expand All @@ -9,12 +10,10 @@ resources:
ref: refs/heads/device-tests-yaml # should this be on a branch and not on master???
endpoint: xamarin

jobs:
- template: device-tests-common.yml # all the smart stuff happens in the template, just needed to set the params
# create parallel stages, this means that one single trigger to the pipeline will execute tvos and ios device tests
stages:
- template: templates/stable-stages.yml # all the smart stuff happens in the template, just needed to set the params
parameters:
name: 'macOS'
displayName: 'Run iOS Device Tests'
pool: 'VSEng-Xamarin-Mac-Devices'
demands: 'ios'
statusContext: 'iOS-DDFun'
testsLabels: '--label=run-ios-64-tests'
timeout: 1000
maxParallel: 5
7 changes: 6 additions & 1 deletion tools/devops/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash -ex


ls -l
pwd
ls -l xamarin-macios/
if [[ "$SYSTEM_DEBUG" == "true" ]]; then
DEBUG="-d"
else
Expand All @@ -9,3 +11,6 @@ fi
make $DEBUG -C xamarin-macios/builds download -j
make $DEBUG -C xamarin-macios/builds .stamp-mono-ios-sdk-destdir -j
make $DEBUG -C xamarin-macios/tests vsts-device-tests
#echo "exit 100" > bar.sh
#chmod a+x bar.sh
#./bar.sh
Loading