19 Commits

Author SHA1 Message Date
86b6150afd infra: actions: add check-format job
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 5m22s
Gentoo Utils / check-format (push) Failing after 1m43s
Gentoo Utils / build (push) Failing after 1m56s
Gentoo Utils / test (push) Has been skipped
2025-12-12 13:51:43 -06:00
6ffa55510f infra: actions: add test job 2025-12-12 13:51:43 -06:00
d4a410cb84 infra: actions: set build job to only build 2025-12-12 13:51:43 -06:00
b9f0e6c9f1 FIXME: committing this just to test the check format job 2025-12-12 13:51:43 -06:00
59b3ce7eab infra: image: switch to using ${{ vars.REGISTRY_URL }}
Doing this so I can change this site wide in the future without anything breaking
2025-12-12 13:51:43 -06:00
ecc2058e13 infra: image: fixes image_tag 2025-12-12 13:51:43 -06:00
722536bbb6 infra: image: fix image tag for build job 2025-12-12 13:51:43 -06:00
0c11eb718a infra: image: build image for branches if they dont exist 2025-12-12 13:51:43 -06:00
1d4e022512 infra: image: fixes c35db0f 2025-12-12 13:51:43 -06:00
b7c76b198b infra: image: protect :latest tag so only the default branch can push to it
infra: image: fix hard coded image name
2025-12-12 13:51:43 -06:00
cbfb3068e9 infra: image: create entrypoint script and put env sources in it 2025-12-12 13:51:43 -06:00
16ba661d2b infra: simplify pipeline logic 2025-12-12 13:51:43 -06:00
1db36d168c use "ninja test" instead of "meson test" in check_commands.txt
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 8s
Gentoo Utils / build (push) Successful in 33s
2025-12-12 04:39:04 +00:00
8b700b0404 create rust-analyzer.sh script
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 11s
Gentoo Utils / build (push) Successful in 35s
This script should be ran by the LSP server to get error diagnostics.
2025-12-12 03:40:45 +00:00
e67e20ef29 give fuzzer related targets unique names
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 12s
Gentoo Utils / build (push) Successful in 33s
2025-12-12 01:56:38 +00:00
8fabd409ad fix warnings in src/atom/mod.rs
All checks were successful
Gentoo Utils / build-oci-image (pull_request) Successful in 9s
Gentoo Utils / build (pull_request) Successful in 32s
Gentoo Utils / build-oci-image (push) Successful in 9s
Gentoo Utils / build (push) Successful in 33s
2025-12-11 21:57:59 +00:00
031dd71cf3 fix warnings in fuzzers 2025-12-11 21:55:12 +00:00
a8e2bfbb3c commit rust-project.json
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 8s
Gentoo Utils / build (push) Successful in 34s
2025-12-11 21:51:45 +00:00
ba79fbe06d run all tests in check_commands.txt verbosely
All checks were successful
Gentoo Utils / build-oci-image (push) Successful in 8s
Gentoo Utils / build (push) Successful in 31s
2025-12-11 02:11:11 +00:00
9 changed files with 26 additions and 20 deletions

View File

@@ -3,12 +3,12 @@
(rust-cargo-default-arguments . "-r")
(eglot-workspace-configuration . (:rust-analyzer
(:check
(:overrideCommand ["ninja" "clippy-json" "-C" "build"]))))
(:overrideCommand ["./rust-analyzer.sh"]))))
(eval . (add-to-list 'eglot-server-programs
'((rust-ts-mode rust-mode) .
("rust-analyzer" :initializationOptions
(:check
(:overrideCommand ["ninja" "clippy-json" "-C" "build"]))))))
(:overrideCommand ["./rust-analyzer.sh"]))))))
(eval . (eglot-ensure))
(eval . (company-mode 1))
(eval . (add-hook 'before-save-hook 'fmt-current-buffer nil t))

View File

@@ -2,4 +2,4 @@
ninja rustfmt -C build
ninja rustdoc -C build
ninja clippy -C build
meson test -C build
ninja test -C build

View File

@@ -1,3 +1,4 @@
#![deny(unused_imports)]
#![allow(clippy::missing_safety_doc)]
use core::slice;

View File

@@ -1,12 +1,12 @@
gencorpus = executable(
'gencorpus',
'atom_parser_gencorpus',
'gencorpus.rs',
dependencies: [mon],
link_with: [gentoo_utils],
)
corpus = custom_target(
'corpus',
'atom_parser_corpus',
output: 'corpus',
command: [gencorpus, 'corpus'],
)

View File

@@ -1,9 +1,8 @@
#![deny(unused_imports)]
use core::slice;
use gentoo_utils::{
Parseable,
atom::{Atom, Version},
};
use mon::{Parser, ParserFinishedError, input::InputIter};
use gentoo_utils::{Parseable, atom::Version};
use mon::{Parser, input::InputIter};
use std::{
cmp::Ordering,
io::{BufRead, BufReader, Write},

View File

@@ -1,12 +1,12 @@
gencorpus = executable(
'gencorpus',
'atom_vercmp_gencorpus',
'gencorpus.rs',
dependencies: [mon],
link_with: [gentoo_utils],
)
corpus = custom_target(
'corpus',
'atom_vercmp_corpus',
output: 'corpus',
command: [gencorpus, 'corpus'],
)

12
rust-analyzer.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# this script is a temporary workaround for not having a proper clippy-json target
source /etc/profile
cd build || exit $?
# compile as far as we can
ninja
ninja clippy-json

1
rust-project.json Symbolic link
View File

@@ -0,0 +1 @@
build/rust-project.json

View File

@@ -646,14 +646,6 @@ mod test {
use crate::Parseable;
macro_rules! assert_eq_display {
($a:expr, $b:expr) => {
if $a != $b {
panic!("{} != {}", $a, $b);
}
};
}
macro_rules! assert_cmp_display {
($a:expr, $b:expr, $ordering:expr) => {
if $a.cmp(&$b) != $ordering {
@@ -770,6 +762,7 @@ mod test {
.parse_finished(InputIter::new("1.2.0a_alpha1_beta2-r1-8"))
.unwrap();
#[allow(clippy::single_element_loop)]
for (version_str, expected) in [("1.2.0", Ordering::Greater)] {
let version = Version::parser()
.parse_finished(InputIter::new(version_str))