Commit Graph

44 Commits

Author SHA1 Message Date
Riccardo Schirone eb66060ac3 ci: run mypy on components (#132) 2025-04-09 09:56:16 +02:00
Henrik Brodin b826cd839e Henrik/version (#283)
* expose version

* add release description

* Add release from tag functionality

* Testing version->release tagging

* build on tag, release a2

* Stick to manual relase to simplify things

* Tag from release

* bump version just to be sure..

* releases uses tags...

* Make this version 0.1.0
2025-03-27 16:50:03 +01:00
Evan Downing c47f27debe Speedup graphdb (#193)
* Add bulk loading and update schema

* Remove unnecessary config options for speedup

* Uncomment unit test. Update integration test.

* Fix permission issue with removing temp folder

* Update file paths

* Changing graphdb directory

* Update integration config
2025-03-25 09:38:47 -04:00
Riccardo Schirone b44c21dd6e program-model: fix task-id property and improve tests (#174)
* program-model: fix task-id property and improve tests

* Skipping libpng integration test until kythe is ready

---------

Co-authored-by: Evan Downing <2077950+evandowning@users.noreply.github.com>
2025-03-12 15:20:39 -04:00
Riccardo Schirone 7fb382035d Update protobuf auto-generated code to remove package_name field (#198)
* Update protobuf auto-generated code to remove package_name field

* ci: ensure protobuf is always updated

* fix test_vulnerabilities

* lint

* fix pathcer test

* fix other tests

* lint

* fix ci

* REMOVE ME: test ci

* removed
2025-03-12 13:01:13 +01:00
Riccardo Schirone e0b898a6b4 program-model: introduce codequery (#178)
* program-model/tree-sitter: refactor classes

* program-model/tree-sitter: change how paths are considered

This allows to parse also code in oss-fuzz (e.g. injected fuzz targets
not in upstream project)

* common: change name format for challenge commit

* program-model/codequery: make it persistent and nice

* program-model: disable janus & co for now

* patcher: make use of codequery instead of just tree-sitter

* program-model: add integration tests for codequery

* program-model/codequery: add support for different languages

* patcher: install codequery in patcher's container

* ci: fix codequery install

* program-model: ensure cqdb storage in /crs_scratch

* program-model: ensure the cqdb storage is available only at the end
2025-03-10 14:11:07 +01:00
Ronald Eytchison 3e9321c7cc Remove mocked context (#119)
* Get function body from program-model for seed-explore

* Add harness finding fallback

Also add language field to project.yaml class

* Update test to have new TaskMeta param

* Install ripgrep in CI

* Search oss-fuzz project dir and add test cases
2025-03-06 09:20:50 -05:00
Evan Downing 0bfdfa2d7d Add get_function_body unit test (#96)
* Add get_function_body unit test

* Test passes

* Add janusgraph service

* Update tests with healthcheck
2025-03-04 08:09:25 -05:00
Evan Downing 2e5191b513 Build kythe into its own container (#104)
* Remove environment variables

* Add kythe release from base image

* Copy file from remote container

* Change kythe to remote

* x

* Fix dockerfile
2025-03-04 07:45:23 -05:00
Ronald Eytchison 642728b704 Get diff from ChallengeTask instead of mock (#111)
* Get diff from ChallengeTask instead of mock

* Remove mock diff and don't pass WeightedHarness to Task

* Address review feedback

* Update seed-gen env var in CI
2025-03-03 08:54:20 -05:00
Riccardo Schirone 2b981259fd ci: enable integration tests in common package (#110) 2025-02-27 16:44:19 +01:00
dependabot[bot] c3fbc50306 Bump docker/build-push-action from 5 to 6 in the actions group (#85)
Bumps the actions group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/build-push-action` from 5 to 6
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Riccardo Schirone <562321+ret2libc@users.noreply.github.com>
2025-02-24 10:08:31 +01:00
Evan Downing f6067005e6 Download Kythe automatically (#84)
* Add passing gh token

* Change docker to automatically download kythe release

* Update workflow
2025-02-21 13:33:38 -05:00
Riccardo Schirone 51c39a73c7 ci: build packages (#81) 2025-02-20 10:16:46 -05:00
Riccardo Schirone 6268cecb32 ci: enable langfuse (#63) 2025-02-19 09:13:32 -05:00
Ronald Eytchison 67ab2dfac5 Add seed-gen vuln discovery integration test 2025-02-18 12:06:46 -05:00
Ronald Eytchison 02679fe521 Switch from Azure-hosted models to OpenAI-hosted 2025-02-18 09:54:44 -05:00
Henrik Brodin fab3b3cae5 Remove check for intermediate patch generation step in ci 2025-02-10 11:27:40 +00:00
Henrik Brodin c7dd26ad7e Fix test issues and add to integration test 2025-02-10 10:27:30 +00:00
Riccardo Schirone ec2ad5ca8a fix stringh grep 2025-02-07 15:17:01 +00:00
Riccardo Schirone ddba18c0bb fix env 2025-02-07 15:17:01 +00:00
Riccardo Schirone 4a83b0e30d ci: REACTIVATE 2025-02-07 15:17:01 +00:00
Riccardo Schirone fb8266467a adjust activation 2025-02-07 15:17:01 +00:00
Riccardo Schirone 247b9f7013 REMOVE ME 2025-02-07 15:17:01 +00:00
Riccardo Schirone 25d0df89e9 remove comment 2025-02-07 15:17:01 +00:00
Riccardo Schirone aa5b1857af ci: fix enable ci 2 2025-02-07 15:17:01 +00:00
Riccardo Schirone aee56917ab ci: fix enable ci 2025-02-07 15:17:01 +00:00
Riccardo Schirone c94dcda18d configure ghcr token 2025-02-07 15:17:01 +00:00
Riccardo Schirone e3592d8112 ci: add timeouts 2025-02-07 15:17:01 +00:00
Riccardo Schirone 2cb6679d28 ci: check vuln/patch submissions 2025-02-07 15:17:01 +00:00
Riccardo Schirone 90fd0f4c63 ci: reduce time the crs is run 2025-02-07 15:17:01 +00:00
Riccardo Schirone 6a2ece9f62 ci: make task_crs work 2025-02-07 15:17:01 +00:00
Riccardo Schirone 6e1e9e5426 show logs in the meantime 2025-02-07 15:17:01 +00:00
Riccardo Schirone 81c644f497 configure .env file 2025-02-07 15:17:01 +00:00
Riccardo Schirone b2e06be67b ci: enable compose integration tests also for some PRs 2025-02-07 15:17:01 +00:00
Riccardo Schirone 4f306f416f ci: submit task to CRS 2025-02-07 15:17:01 +00:00
Riccardo Schirone 4546547e25 CI: add a workflow to run the whole CRS through compose 2025-02-07 15:17:01 +00:00
Riccardo Schirone 5966c2629e CI: use matrix for testing multiple components 2025-02-05 10:23:56 +01:00
Ronald Eytchison 68144e035c Add sandbox tests 2025-01-31 09:13:02 -05:00
Ronald Eytchison 0df13c87d6 Add seed-gen to pytest workflow 2025-01-27 16:20:55 -05:00
Ronald Eytchison 413af45bea Add ruff for seedgen and pass check 2025-01-27 16:20:55 -05:00
2over12 c26a3e223d Add program model demo (#17)
* add program model uv

* add tool to common

* remove oss fuzz tool

* add docker

* implement build base image

* fix ret check

* add builder for subimage

* remove old tool

* hack to avoid dupped kzip files

* fixes... need to work out LD hack

* fix find

* justfile for building kythe

* update dockerfile

* add upload tool

* update protobuf

* move into compose

* fix merge invocation

* fix up invoc

* bump kythe

* reformat

* format

* format

* remove unused

* add lint and change version

* fixes

* exclude

* fix formatting:

* dev deps

* add dep

* exclude gen

* fix
2025-01-26 13:09:37 -05:00
Riccardo Schirone 529ef108f2 ci: add lint/tests for each package 2025-01-23 15:17:18 +01:00
Riccardo Schirone 96e92962d7 deployment: basic IaC to deploy AKS
Based on the aixcc-finals/example-crs-architecture repository.
2025-01-13 14:56:30 +01:00