Comments (7)
Nix could be used for matching as well: https://github.com/NixOS/nix/blob/master/doc/manual/expressions/builtins.xml#L711
I would not invent a new DSL for linting. Our lowest common dominator is Nix already.
from ofborg.
@Mic92 I'd have been inclined to not use a DSL, but just do straight rust 😅
I wonder if we need some sort of database here to match up git patch IDs (https://git-scm.com/docs/git-patch-id) to reviews to ensure comments aren't made multiple times, while still ensuring coverage while a PR changes over time.
Ideally we'd be able to make these comments in-line, so the feedback can be as close to the problem at hand as possible. Is this too ambitious?
from ofborg.
Maybe for now limit the rules to just paths, as we do with the tags in #59. In that case one or more paths will produce one or more comments.
If we use a mapping, and use the paths as keys, then we may have to duplicate comments a lot. If we use a list of tuples that may be reduced. For this I think it is better to use Nix.
from ofborg.
Ideally we'd be able to make these comments in-line, so the feedback can be as close to the problem at hand as possible. Is this too ambitious?
I would start of with just only comments based on touched files, and thus post the comments to the main thread.
from ofborg.
This likely isn't in ofborg's scope.
There's probably an action that already does this.
from ofborg.
Hmm well there is https://github.com/NixOS/ofborg/blob/released/ofborg/src/bin/github-comment-poster.rs and githubcommentposter
but I haven't seen a comment posted by ofborg in a long time. Will let someone else decide.
from ofborg.
Yes, ofborg doesn't post comments anymore. The name is a relic, but that binary is what currently posts the GHA checkruns (ofborg-eval
, ofborg-eval-package-list
, etc).
from ofborg.
Related Issues (20)
- Updating to nix >=2.16 fails during tests
- ofborg fails nondeterministically HOT 6
- Matrix notifications HOT 1
- Build `tests.*` listed as changed paths HOT 2
- Detect what to build based on touched file paths
- Builders sometimes don't have enough space in the build dir for kernel builds
- ofborg does not use `$attr.meta.maintainers` when `$attr` is in the commit message HOT 1
- Update nixpks used in flakes to a current version HOT 4
- How to reproduce jobs locally? -> improve logs HOT 3
- Ping maintainers when they get removed
- generic error: found empty hash, assuming sha256-aaa...
- ofborg doesn't apply changes from PR before kicking off builds on aarch64-darwin sometimes. HOT 3
- error: a 'x86_64-linux' … is required … but I am a 'aarch64-darwin' HOT 3
- Granular requiredSystemFeatures: build individual attributes in passthru.tests HOT 1
- `@ofborg test foo` in a "review comment" does nothing
- labeling for "11.by package-maintainter" didn't detect me as maintainer in nixpkgs
- Don't request maintainer review of closed PR HOT 1
- Allow unfree redistributable builds? HOT 1
- Change icon HOT 12
- NixOs/ofborg HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofborg.