Граф коммитов

22 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge b05687f7aa
[compare-commits] We don't use XmlDocSync anymore, so remove workaround for NuGet.config. (#15011) 2022-05-13 09:04:47 +02:00
TJ Lambert b72ef031f7
[ApiDiff] Add Current PR Diffs in a similar style as API Diffs (#13512) 2021-12-14 22:19:36 -06:00
Rolf Bjarne Kvinge 7b2699c5ad
[compare-commits] Ignore *.binlog files when creating a diff of the generated files. (#13338)
Removes this from the generator diff, which happens on every build:

    diff --git a/build/common/bgen.exe.binlog b/build-new/common/bgen.exe.binlog
    index fc4ecd1fe..3b0503171 100644
    Binary files a/build/common/bgen.exe.binlog and b/build-new/common/bgen.exe.binlog differ
2021-11-11 15:33:43 +01:00
Manuel de la Pena cc05e967a4
[Generator Diff] Ignore file we are not interested in. (#11409) 2021-05-02 20:08:51 -04:00
Manuel de la Pena 993c744347
[CI] Re-enable API and Generator diff. (#11187)
Use the jenkins script as a base to get the PAI & generator from stable
diff back to the CI. Comment is not perfect, but does provide the
required information. The comment can be improve in a later commit since
this is getting too large.
2021-04-29 17:53:06 -04:00
Rolf Bjarne Kvinge 9a20a26694
[compare-commits] Rework logic to build xamarin-macios again from a separate clone. (#10264)
Rework the code to generate an API comparison and a generator comparison: we
now clone xamarin-macios into a different directory, checks out the hash we
want to compare against, build the whole thing, and then compare the results.

This is somewhat slower than the previous implementation (which would checkout
the previous hash and build that on top of the existing build), but since we
don't have to build mono, it shouldn't make too much of a difference (the
biggest chunk of our build is building src/, and we had to do that anyway with
the previous implementation as well).

The upside is that it should be much more reliable.

Fixes https://github.com/xamarin/maccore/issues/2034.
Fixes https://github.com/xamarin/maccore/issues/1467.
Fixes https://github.com/xamarin/maccore/issues/1059.
Maybe https://github.com/xamarin/maccore/issues/1173 too.
2020-12-12 16:27:16 -05:00
Rolf Bjarne Kvinge 88039ea35b
[compare-commits] Fix building the previous commit for Xamarin.MacCatalyst. Fixes #10222. (#10242)
Fixes https://github.com/xamarin/xamarin-macios/issues/10222.
2020-12-09 15:29:57 +01:00
Rolf Bjarne Kvinge 90bfb623ed
[compare-commits] Fix corruption in dotnet assemblies after API comparison. (#10011)
Make sure to redirect the dotnet build output to our custom output directory
when building the previous commit so that it doesn't interfere with the normal
build output.

Also add validation for this.
2020-10-30 14:36:21 +01:00
Rolf Bjarne Kvinge f730014daf
[compare-commits] Ignore Publish.*.txt files when comparing generator output. Fixes #9852. (#9853)
Fixes https://github.com/xamarin/xamarin-macios/issues/9852.
2020-10-14 08:46:00 +02:00
Rolf Bjarne Kvinge 3ab85abd7a
[compare-commits] Add some diagnostics to try to figure out what's happening with #xamarin/maccore@1467. (#9164)
Ref:  https://github.com/xamarin/maccore/issues/1467
2020-07-23 15:32:40 +02:00
Rolf Bjarne Kvinge 8c1f33bde7
[tools] Ignore generator.csproj when comparing generated code. (#8675)
Fixes an issue where generator.csproj would show up as a new file when
comparing generated output.

This probably regressed in 4b917ad2de.
2020-05-26 16:20:53 +02:00
Rolf Bjarne Kvinge a0aa48465b
Fix generator diff after .NET modifications. (#8180)
* Some files were renamed after the .NET support was implemented, so the list
  of files to ignore for the diff had to be updated.
* Update .gitignore.
2020-03-24 15:52:03 +01:00
Rolf Bjarne Kvinge 0f12c101e0
Fix API comparison. Fixes #xamarin/maccore@2176. (#8108)
* Make everything in src/ build into a directory dependent upon BUILD_DIR.
  That way the API comparison can successfully build into a different
  directory.
* Use an absolute path as the temporary build directory. This works better
  when the path is used in directories with different depth from the root.

Fixes https://github.com/xamarin/maccore/issues/2176.
2020-03-16 09:48:52 +01:00
Rolf Bjarne Kvinge 4d4215e25c
[apidiff] Fix a few issues with the apidiff when the mono hash or api diff url changes. (#6084)
* [apidiff] Add rule to get mono-api-info.exe and mono-api-html.exe.

This fixes an issue when bumping mono: when bumping mono, the already
downloaded mono archive isn't applicable (because we've changed to the
previous commit, which has the previous mono hash, whose archive hasn't been
downloaded).

So add a rule to get mono-api-info.exe and mono-api-html.exe, by downloading
the current mono archive.

* [apidiff] Change the name of the unzip stamp and download dir to contain the hash.

This way the logic doesn't get confused when the hash changes (or there's an
old unzip stamp in the directory), and things are downloaded again as
expected.

* [apidiff] Make make not delete temporary files.

Things end up confused if temporary files have been removed by make, but our
stamp file that the temporary files are still there is present.

* [apidiff] No need to make everything depend on the bundled zip.

If everything that needs the bundled zip already depends on it.

* [apidiff] Restore original hash before calculating api diff.

This makes it less annoying when the api diff calculation changes, because
with the previous behavior they were impossible to test in a PR, since any
changes wouldn't take effect until after the PR was merged.
2019-05-22 05:41:18 -07:00
Rolf Bjarne Kvinge 83718c0b72
[jenkins] Try to give better information when api comparison / generator diff fails. (#5477) 2019-01-25 17:33:58 +01:00
Rolf Bjarne Kvinge 29e6afc0f3
[compare-commits] Only validate files when validating if files have unexpectedly changed. (#5360)
Fixes this problem:

    The following files were modified, and they shouldn't have been:
        /Users/builder/jenkins/workspace/xamarin-macios-pr-builder/src

which shouldn't be reported, since the "file" in question is a directory.

Reference: https://github.com/xamarin/xamarin-macios/pull/5355#issuecomment-452400517
2019-01-09 16:07:23 +01:00
Rolf Bjarne Kvinge 3684204f5a
Improve generator diff to ignore changes we don't care about. (#4947)
This means we'll get an empty diff if there are no generator changes, so
update the logic that detects/reports empty generator diffs.

Also there's no need to ignore mdbs anymore, since we don't create mdbs.
2018-10-09 07:35:00 +02:00
Rolf Bjarne Kvinge cd02f146d7
[compare-commits] Fix APFS check to check for functionality, not OS version. (#4057)
Since having a certain OS version doesn't necessarily mean that the file system will be APFS.
2018-05-09 14:36:25 +02:00
Alex Soto 76f0153e72
[build] Remove MT.D source build and replace it with a binary (#3957)
* [build] Remove MT.D source build and replace it with a binary

This commit removes MonoTouch.Dialog from our source build and
replaces it with a binary from c913506df2/MonoTouch.Dialog-Unified

The MT.D hash used in this commit is fixed to migueldeicaza/MonoTouch.Dialog@92c6e14

* Update .gitignore.

* MonoTouch.Dialog-1.dll doesn't need depend on the platform assembly anymore, because we're copying a binary instead of building.

* Add significant debug spew.

* More debugging.

* Remove debug spew.

* [compare-commits] Create directory before trying to create files in it.
2018-04-23 13:08:58 -05:00
Rolf Bjarne Kvinge fef9ab2ee0
[tools] Fix commit comparison to not change generated .csproj files. (#3963)
* [tools] Fix commit comparison to not change generated .csproj files.

Fix commit comparison to not change generated .csproj files by adding support
for modifying the directory where the .csproj are generated, and when doing
commit comparison, do exactly that.

* Put back target removed unintentionally.
2018-04-21 00:28:57 +02:00
Rolf Bjarne Kvinge fbab477b7b
[tools] Create stamp file after doing things that might modify files we care about. (#3864)
We have consistency checks to verify that no unexpected files are modified
done when comparing APIs in for a pull request.

Unfortunately the check didn't take into account that checking out the
revision to do the API check against might modify some of the files in the
consistency check itself, thus triggering the consistency check.

Fix this by only verify timestamps of files modified after checkout out the
revision, which is the only thing we care about anyway.

For examples see PR #3855 or PR #3850.
2018-04-04 15:36:49 +02:00
Rolf Bjarne Kvinge da7fbcb2df
Add scripts to calculate API diffs and generated code diff between the current build and another revision. (#3447) 2018-02-13 07:47:47 +01:00