Skip to content

Commit

Permalink
Bump infer-annotation from 0.11.2 to 0.18.0 (facebook#2044)
Browse files Browse the repository at this point in the history
Summary:
Bumps [infer-annotation](https://github.com/facebook/infer) from 0.11.2 to 0.18.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/facebook/infer/releases">infer-annotation's releases</a>.</em></p>
<blockquote>
<h2>Infer version 0.17.0</h2>
<p>This is a binary release of Infer for Linux and MacOS. To use it follow these <a href="http://fbinfer.com/docs/getting-started.html">instructions</a>.</p>
<h4>Highlights:</h4>
<ul>
<li>There’s a new  <code>--inefficient-keyset-iterator</code>  checker for finding inefficient uses of Java's keyset iterators that retrieve both key and value (on by default).</li>
<li>Complete the set of Android thread annotations and Java nullability annotations. Updated artifacts are available on <a href="https://search.maven.org/artifact/com.facebook.infer.annotation/infer-annotation/0.17.0/jar">Maven Central</a>.</li>
<li><code>--starvation</code> is now on by default. This analysis catches problems with threads not being able to make progress due to locking issues, incorrect scheduling priorities, etc. For instance, on Android calling Future.get from a UiThread without a sensible timeout will be flagged as a starvation issue.</li>
<li>New Objective-C linter for calls to <code>optional</code> methods: <code>UNSAFE_CALL_TO_OPTIONAL_METHOD</code>, enabled by default.</li>
<li>A new call-graph scheduler (<code>--call-graph-schedule</code>) improves performance of the analysis phase of Infer, especially when the number of files to analyze is less than available CPUs.</li>
<li>A new flag <code>--oom-threshold</code> allows to throttle the analysis when the amount of free memory is below the provided threshold.</li>
<li>New genrule based Buck/Java integration is much faster than the previous one, use with <code>--genrule-master-mode</code>.</li>
<li>Infer’s internal clang is now in version 8.0.0.</li>
<li>Update to javalib 3.1 provides better compatibility with Java 9 and Java 11. Refer to <a href="https://github.com/javalib-team/javalib/blob/master/CHANGELOG">their change log</a> for more details.</li>
<li>Infer can now be built and run on MacOS Mojave without fiddling with <code>SDKROOT</code> (although you still might need it with non-standard toolchain setup).</li>
<li>[β] <strong>Pulse</strong> is a new experimental lifetime analysis for C++, give it a try with <code>--pulse</code>. Beware that it doesn’t report much yet.</li>
<li><code>--ownership</code> checker was superseded by Pulse and removed.</li>
</ul>
<p>... and many other fixes and improvements. For the full list of changes included see <a href="https://github.com/facebook/infer/compare/v0.16.0...v0.17.0">here</a>.</p>
<p>The facebook-clang-plugins version used for this release is <a href="https://github.com/facebook/facebook-clang-plugins/commit/9386890e42043d04f9">https://github.com/facebook/facebook-clang-plugins/commit/9386890e42043d04f9</a>
cd9e7b204cb525d4417c41.</p>
<p>The sha256 checksums of the tarballs are:</p>
<pre><code>$ shasum -a 256 infer-*-v0.17.0.tar.xz
de972ba3043f18b29a8eff6cd7612e24f5ffaef038dc7949befeaf490931725e  infer-linux64-v0.17.0.tar.xz
1a3ef6fb51846ae63ffd7fde3b0255f75bab6157f5de1842606fa32988d101f8  infer-osx-v0.17.0.tar.xz
</code></pre>
<h2>Infer version 0.16.0</h2>
<p>This is a binary release of Infer for Linux and MacOS. To use it follow these <a href="http://fbinfer.com/docs/getting-started.html">instructions</a>.</p>
<p>It's been a long time since the previous release, here are some new features and improvements you can find in this new release:</p>
<p>Backend analyses:</p>
<ul>
<li>A brand new analysis to compute the runtime cost of methods and functions: passing <code>--cost</code> (off by default) to Infer will output a costs-report.json file describing, among others, the computational complexity of each function in the code using the big-O notation, eg <code>O(1)</code>, <code>O(list.length)</code>, ...</li>
<li>The deadlock detection analysis has been ported to C++ and Objective-C and mainly focuses on self-deadlocks (taking a mutex twice). Activate with <code>--starvation</code> (off by default).</li>
<li>The data race detector RacerD has been ported to Objective-C and detects races on fields protected by a C++ mutex. It reports &quot;Thread Safety Violation&quot; and &quot;GuardedBy Violation&quot; errors on Java and &quot;Lock Consistency Violation&quot; on C++ and Objective-C. Activate with <code>--racerd</code> (on by default).</li>
<li>A progress bar is displayed while the analysis is running</li>
<li>Countless improvements and tweaks, in particular in RacerD and in analyses for C++.</li>
</ul>
<p>Frontends:</p>
<ul>
<li>Infer now ships with clang version 7.0.1</li>
<li>Support for Java up to version 11</li>
</ul>
<p>The sha256 checksums of the tarballs are:</p>
<pre><code>&lt;/tr&gt;&lt;/table&gt;
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/facebook/infer/blob/master/Changelog.md">infer-annotation's changelog</a>.</em></p>
<blockquote>
<h2>Version 0.17.0</h2>
<ul>
<li>There's a new  <code>--inefficient-keyset-iterator</code>  checker for finding inefficient uses of Java's keyset iterators that retrieve both key and value (on by default).</li>
<li>Complete the set of Android thread annotations and Java nullability annotations. Updated artifacts are available on <a href="https://search.maven.org/artifact/com.facebook.infer.annotation/infer-annotation/0.17.0/jar">Maven Central</a>.</li>
<li><code>--starvation</code> is now on by default. This analysis catches problems with threads not being able to make progress due to locking issues, incorrect scheduling priorities, etc. For instance, on Android calling Future.get from a UiThread without a sensible timeout will be flagged as a starvation issue.</li>
<li>New Objective-C linter for calls to <code>optional</code> methods: <code>UNSAFE_CALL_TO_OPTIONAL_METHOD</code>, enabled by default.</li>
<li>A new call-graph scheduler (<code>--call-graph-schedule</code>) improves performance of the analysis phase of Infer, especially when the number of files to analyze is less than available CPUs.</li>
<li>A new flag <code>--oom-threshold</code> allows to throttle the analysis when the amount of free memory is below the provided threshold.</li>
<li>New genrule based Buck/Java integration is much faster than the previous one, use with <code>--genrule-master-mode</code>.</li>
<li>Infer's internal clang is now in version 8.0.0.</li>
<li>Update to javalib 3.1 provides better compatibility with Java 9 and Java 11. Refer to <a href="https://github.com/javalib-team/javalib/blob/master/CHANGELOG">their change log</a> for more details.</li>
<li>Infer can now be built and run on MacOS Mojave without fiddling with <code>SDKROOT</code> (although you still might need it with non-standard toolchain setup).</li>
<li>[β] <strong>Pulse</strong> is a new experimental lifetime analysis for C++, give it a try with <code>--pulse</code>. Beware that it doesn't report much yet.</li>
<li><code>--ownership</code> checker was superseded by Pulse and removed.</li>
</ul>
<h2>Version 0.16.0</h2>
<p>Backend analyses:</p>
<ul>
<li>A brand new analysis to compute the runtime cost of methods and functions: passing <code>--cost</code> (off by default) to Infer will output a costs-report.json file describing, among others, the computational complexity of each function in the code using the big-O notation, eg <code>O(1)</code>, <code>O(list.length)</code>, ...</li>
<li>The deadlock detection analysis has been ported to C++ and Objective-C and mainly focuses on self-deadlocks (taking a mutex twice). Activate with <code>--starvation</code> (off by default).</li>
<li>The data race detector RacerD has been ported to Objective-C and detects races on fields protected by a C++ mutex. It reports &quot;Thread Safety Violation&quot; and &quot;GuardedBy Violation&quot; errors on Java and &quot;Lock Consistency Violation&quot; on C++ and Objective-C. Activate with <code>--racerd</code> (on by default).</li>
<li>A progress bar is displayed while the analysis is running</li>
<li>Countless improvements and tweaks, in particular in RacerD and in analyses for C++.</li>
</ul>
<p>Frontends:</p>
<ul>
<li>Infer now ships with clang version 7.0.1</li>
<li>Support for Java up to version 11</li>
</ul>
<h2>Version 0.15.0</h2>
<ul>
<li>switch infer license to MIT</li>
<li>publish binaries</li>
<li>[clang] lots of improvements to the frontend</li>
</ul>
<h2>Version 0.14.0</h2>
<ul>
<li>New checker: <code>--ownership</code> detects a subset of use-after-free issues due to bad manual memory management. This is a rough prototype of Rust-style borrow checker for C++. (enabled by default, C++)</li>
<li>New checker: <code>--uninit</code> detects uses of uninitialized values (enabled by default, C/C++/Objective-C)</li>
<li>New checker: <code>--racerd</code> now also detects inconsistent lock usage in C++. Also improved the lock domain to reduce false positives for all languages.</li>
<li>Improved C++ support: destructors are now properly translated; addresses and pointers are handled more precisely</li>
<li>Improved retain cycles detection (Objective-C)</li>
<li>Upgraded the internal clang to clang 7</li>
<li>[internal] SQLite is being used to store some of infer's analysis artefacts instead of storing them in files on disk. This improves analysis speed and reduces load on the OS.</li>
</ul>
<h2>Version 0.13.1</h2>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/facebook/infer/commits/infer-annotation-0.18.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.facebook.infer.annotation:infer-annotation&package-manager=gradle&previous-version=0.11.2&new-version=0.18.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

Pull Request resolved: facebook#2044

Reviewed By: nikoant

Differential Revision: D26947169

Pulled By: passy

fbshipit-source-id: 2158ae6518094e8521f3a2c21f9e62bb6bb8dacf
  • Loading branch information
dependabot[bot] authored and facebook-github-bot committed Mar 11, 2021
1 parent 1d7cfe3 commit a6262cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ ext.deps = [
boltsApplinks : 'com.parse.bolts:bolts-applinks:1.4.0',
// Annotations
jsr305 : 'com.google.code.findbugs:jsr305:3.0.2',
inferAnnotations : 'com.facebook.infer.annotation:infer-annotation:0.11.2',
inferAnnotations : 'com.facebook.infer.annotation:infer-annotation:0.18.0',
proguardAnnotations: 'com.facebook.yoga:proguard-annotations:1.16.0',
// Litho
lithoAnnotations : "com.facebook.litho:litho-annotations:$LITHO_VERSION",
Expand Down

0 comments on commit a6262cf

Please sign in to comment.