Commit Graph

143 Commits

Author SHA1 Message Date
64bfc0e9e9 Validate changes to devcontainer files (#2373) 2022-09-12 20:56:23 +00:00
440f19baeb Remove dead libfuzzer_coverage scripts (#2288) 2022-09-01 14:49:50 -07:00
07fb794f8a Devcontainer updates (#2279) 2022-08-23 22:47:13 +00:00
dcb3096d79 Bump to Rust 1.63 (#2243)
* Bump to Rust 1.63

* Fix clippy warnings

* Suppress clippy warning

* More clippy fixes

* Print cargo-license version

* Ignore unmaintained warning

* Pin cargo-license to 0.4.2, 0.5 breaks us

* Suppress in proxy build as well

* More Eqs

* More clippy fixes
2022-08-15 09:39:32 -04:00
0b8093b89e Reuse Agent artifacts if nothing in src/agent changes (#2115)
The agent build takes most of the CI runtime, so improve it by only rebuilding if the pre-reqs or something inside `src/agent` changes.

We will always skip the cache for builds on tags and from the `main` branch, so that version is stamped correctly there.
2022-07-12 22:09:32 +00:00
9d5d86a03b Pin Rust to 1.62.0 (#2153) 2022-07-12 20:51:20 +00:00
69b11f60c2 Add GoodBad C# example project, integration test (#2148) 2022-07-12 12:07:30 -07:00
c0895a5b87 Disable macos build for agent (#2134) 2022-07-07 10:44:38 +12:00
bc48069a94 Import LibFuzzerDotnetLoader, build .NET fuzzing tools (#2126) 2022-07-06 11:51:47 -07:00
ab0b974eb1 Cache radamsa build (#2114) 2022-07-03 21:09:31 +00:00
2eae1793ad Integration tests project (#2083)
Move integration tests into their own project. This makes it easier to run unit tests if you don't want to (or don't have) `azurite` running, since you can `dotnet test` just that directory.

Also add a check into the `AzuriteStorage` class that will abort the entire test run if `azurite` is not running, which is simpler than reading lots of socket exceptions.
2022-06-27 21:14:51 +00:00
1eeefce85c Implement info Function in C# (#2061)
Adds implementation of the `info` function. 

Added support for blobs in the function integration test stuff.

Simplified usage of integration test classes by removing the account name parameter.
2022-06-23 13:06:40 +12:00
cdec3c9e8d Test infrastructure for C# Azure Function testing (#2055)
Add support for function tests and the ability to run them against either real Azure Storage or the Azurite emulator.

See follow-up PR #2032 for actual usage.
2022-06-16 21:50:02 +00:00
ab1e422d34 Attempt to improve sccacheability (#2010)
Attempt to speed up CI builds:
1. Disable incremental builds when using `sccache` (incremental can't be cached)
2. Set `--locked` on all invocations of cargo
3. Add `restore-keys` for Github cache action
2022-06-14 21:49:57 +00:00
695e141a7a Update auto-issue creation workflow (#2037)
* adjust spacing in yaml

* add manual dispatch
2022-06-09 15:11:06 -07:00
71171ad8fd Add workflow to sync gh issues with ado work items. (#2035) 2022-06-09 11:18:37 -07:00
c47372f4b6 Use shared Directory.Build.props (#2026) 2022-06-09 08:43:03 +12:00
fe56f6fb29 Collect .NET coverage info (#2023)
## Summary of the Pull Request

Collect .NET coverage during build and display it in GitHub Summary.

## Info on Pull Request

Add the `reportgenerator` tool, run it after tests.

## Validation Steps Performed

Run workflow and make sure it works.

See example coverage output here: https://github.com/microsoft/onefuzz/actions/runs/2458088617
2022-06-08 13:52:31 +12:00
01ad154c00 Rename supervisor to agent (#1989) 2022-06-02 20:03:19 +00:00
c47dcf96b4 Should fix codeql workflow (#2012)
* Build if csharp codeql

* typo

* Allow triggering the workflow manually
2022-06-02 18:34:09 +00:00
561e7ae45e Fix yml formatting (#1998) 2022-06-01 10:47:16 -04:00
9453869d67 Update dependabot.yml (#1995) 2022-06-01 08:53:49 -04:00
31ae496da9 Adding CSharp Scanner for CodeQL. (#1987) 2022-05-26 14:45:43 -07:00
b856d44bed Rename agent to task (#1980)
* Rename agent to task

* Missed a rename
2022-05-26 20:41:47 +00:00
69f31ec043 Updating CodeQL Version to V2. (#1984) 2022-05-25 16:06:07 -07:00
a3e63df18d Upgrading dotnet version to 6.0.300 (#1947) 2022-05-16 16:25:02 +00:00
f9a63365f1 enable locked restore on NET code (#1938)
Co-authored-by: stas <statis@microsoft.com>
2022-05-12 14:41:07 -07:00
70d6ff0019 When a tag is created, trigger a build. This is needed for our release pipeline to be able to find the correct set of artifacts. (#1930) 2022-05-12 18:44:13 +00:00
c01421b283 pinning the version of dotnet to 6.0.202 (#1925) 2022-05-10 23:00:34 +00:00
63d3ad9d90 copy api-service-net to deployment folder (#1881) 2022-05-03 01:38:38 +00:00
a0443fb7b8 Updating GitHub CI steps for dotnet deployments #1752 (#1874)
* updating deploy.py for dotnet packages

* dotnet deployment needs to be along side python if flagged

* indivdual deployment state for dotnet api since this will deploy alongside python api

* correcting state order for dotnet-api deployment step to follow python api deployment

* cleanup deploy.py formatting

* Adding dotnet's zip package arguments to deploy and fixing func command flags

* Updating ci.yml for dotnet artifacts and adding az-local.settings.json for functionapp deployment

* fixing directory path on ci.yml

* changed single quote to double to pass black check

* keeping changes to deploy.py staged in separate branch

* missing newline at EOF

Co-authored-by: AdamLeclerc-Microsoft <103067949+AdamLeclerc-Microsoft@users.noreply.github.com>
2022-05-02 13:47:18 -07:00
fe0ae30823 Build on pushes to main (#1873) 2022-05-02 10:55:45 -07:00
3e14a838ee Don't trigger build on every push, enable manual trigger (#1872) 2022-05-02 10:09:20 -07:00
d95d46a420 Add formatting step to the build And apply default formatting (#1762)
* Add formatting step to the build

* apply formatting

* Adding .editorconfigfile and option to remove "unused using directive errors"
2022-04-07 21:44:54 +00:00
13b2a6ef80 Add dotnet project to the Continuous integration (#1750) 2022-04-05 23:06:22 +00:00
24454e3681 pin click to fix black (#1726)
* pin click to fix black

* missed a couple

Co-authored-by: stas <statis@microsoft.com>
2022-03-28 12:06:13 -07:00
c6f65c0f0e Used fixed Windows image for integration test build (#1675) 2022-02-24 08:57:03 -08:00
e0f2e9ed5a fix cli build (#1638)
* fix cli build

* build fix
2022-02-03 23:54:30 +00:00
bb972c22f4 pin mypy to 0.910 (#1531)
https://github.com/samuelcolvin/pydantic/issues/3528

https://github.com/python/mypy/issues/6617#issuecomment-892438903
https://github.com/samuelcolvin/pydantic/pull/3175#issuecomment-914897604

updating mypy in build yml and requirements to 0.910

Co-authored-by: stas <statis@microsoft.com>
2021-12-16 14:13:54 -08:00
aa74550160 Group membership check (#1074) 2021-11-22 14:06:03 -08:00
c82c84d1a4 bump python version to 3.8 (#1426) 2021-11-02 16:22:22 -07:00
c97395a37f Set compiler env vars to effect Win10 SDK downgrade (#1388) 2021-10-22 09:31:24 -07:00
da955dbce3 revert pip breaking pip-licenses workaround (#1348)
Co-authored-by: stas <statis@microsoft.com>
2021-10-12 10:22:40 -07:00
03f79ed211 Work around for newly-upgraded pip breaking pip-licenses (#1346)
* Work around for newly upgrdaded pip breaking pip-licenses  (can be reverted once https://github.com/raimon49/pip-licenses/issues/113 is fixed)

* Update .github/workflows/ci.yml

Co-authored-by: Joe Ranweiler <joe@lemma.co>

Co-authored-by: stas <statis@microsoft.com>
Co-authored-by: Joe Ranweiler <joe@lemma.co>
2021-10-11 15:19:48 -07:00
47bb2ce187 use flake8 on deployment (#1286)
All of the rest of the python codebases within the repo use flake8 as
part of the lint process.  This aligns the deployment code with the
practice.

Co-authored-by: Brian Caswell <bmc@shmoo.com>
2021-09-27 17:41:19 +00:00
7da4352e27 add check-pr from personal repo (#1271) 2021-09-23 13:56:01 -04:00
03dccfacfa no longer use action cache restore keys (#1188)
Co-authored-by: Brian Caswell <bmc@shmoo.com>
2021-08-26 20:51:00 +00:00
d8ed7c8ea9 add dependabot config to automatically upgrade rust dependencies (#1131) 2021-08-11 11:53:08 -04:00
e00d22b2c8 address clippy warnings (#1125) 2021-08-06 10:26:45 -04:00
3be29cbfe9 update 3rd-party rust prereqs (#1116) 2021-08-02 12:04:21 -04:00