Content-Length: 382875 | pFad | http://github.com/github/codeql/pull/19978/commits/bd003c58a8e489db1315bda7a776444bf095fc96

E6 Just: introduce common "verbs" by redsun82 · Pull Request #19978 · github/codeql · GitHub
Skip to content

Just: introduce common "verbs" #19978

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9c284b1
Just: introduce scaffolding for common verbs, and apply to rust
redsun82 Jul 4, 2025
1202af1
Just: fix for windows
redsun82 Jul 4, 2025
2dea9da
Just: add `codegen`
redsun82 Jul 4, 2025
9e31fb5
Just: fix and add windows
redsun82 Jul 4, 2025
4768eba
Merge branch 'main' into redsun82/just2
redsun82 Jul 4, 2025
5b9436a
Just: fix swift tests
redsun82 Jul 4, 2025
812fc23
Merge branch 'main' into redsun82/just2
redsun82 Jul 7, 2025
a4acf08
Just: fix ram option for `codeql test run`
redsun82 Jul 7, 2025
d7d7cf9
Just: format `ts` files
redsun82 Jul 7, 2025
6e14111
Just: use `--all-checks` and `--codeql` special flags, and relativize…
redsun82 Jul 7, 2025
cb652f3
Just: add `format` to just directory
redsun82 Jul 7, 2025
fba96c4
Just: add root `lib.just`
redsun82 Jul 7, 2025
c430515
Just: simplify forwarder using `--justfile`
redsun82 Jul 8, 2025
acc7e3f
Just: add `generate` prerequisite to rust ql tests
redsun82 Jul 8, 2025
e8bcbbd
Just: add `language-tests.ts` helper
redsun82 Jul 8, 2025
d987aa6
Merge branch 'main' into redsun82/just2
redsun82 Jul 8, 2025
bb467d4
Just: fix CI build for rust
redsun82 Jul 8, 2025
8ba7efd
Just: fix mono-argument case for argumentless recipes
redsun82 Jul 8, 2025
aa09288
Just: introduce aliases
redsun82 Jul 8, 2025
7f72f87
Just: fix `just rust format` and similar
redsun82 Jul 8, 2025
b8b01ce
Just: rename `_build` to `_build_dist`
redsun82 Jul 8, 2025
0809715
Merge branch 'main' into redsun82/just2
redsun82 Jul 8, 2025
bd003c5
Just: add `_if_not_on_ci_just` helper, and add generation prerequisites
redsun82 Jul 8, 2025
c9cda74
Just: allow mixing different verb implementations
redsun82 Jul 9, 2025
c51f2f8
Merge branch 'main' into redsun82/just2
redsun82 Jul 9, 2025
9267283
Merge branch 'main' into redsun82/just2
redsun82 Jul 10, 2025
103745b
Just: group just invocations in forwarder and improve logging
redsun82 Jul 10, 2025
7e7afba
Merge branch 'main' into redsun82/just2
redsun82 Jul 17, 2025
f2a6503
Just: use bazel directly for dist building
redsun82 Jul 18, 2025
365b2eb
Merge branch 'main' into redsun82/just2
redsun82 Jul 18, 2025
0e3ee6e
Just: reorganize code and revamp formatting
redsun82 Jul 18, 2025
4284d66
Merge branch 'main' into redsun82/just2
redsun82 Jul 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Just: add _if_not_on_ci_just helper, and add generation prerequisites
  • Loading branch information
redsun82 committed Jul 8, 2025
commit bd003c58a8e489db1315bda7a776444bf095fc96
10 changes: 9 additions & 1 deletion misc/just/lib.just
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,16 @@ _run_in DIR +ARGS:
_run_in_semmle_code +ARGS: _require_semmle_code (_run_in "$SEMMLE_CODE" ARGS)

[no-cd, positional-arguments, no-exit-message]
_just +ARGS:
@_just +ARGS:
echo "-> just $@"
"{{ JUST_EXECUTABLE }}" "$@"

[no-cd, positional-arguments]
@_if_not_on_ci_just +ARGS:
if [ "${GITHUB_ACTIONS:-}" != "true" ]; then \
echo "-> just $@"; \
"$JUST_EXECUTABLE" "$@"; \
fi

[no-cd]
_black *ARGS=".": (_run "uv" "run" "black" ARGS)
2 changes: 1 addition & 1 deletion rust/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '../lib.just'

install: (_bazel "run" "@codeql//rust:install")

build: (_build_dist "rust")
build: (_if_not_on_ci_just "generate" source_dir()) (_build_dist "rust")

generate: (_bazel "run" "@codeql//rust/codegen")

Expand Down
5 changes: 3 additions & 2 deletions rust/ql/integration-tests/justfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import "../../../misc/just/lib.just"

import "../../../lib.just"


[no-cd]
test *ARGS=".": (_just "generate") (_integration_test ARGS)
test *ARGS=".": (_if_not_on_ci_just "generate" source_dir()) (_integration_test ARGS)

# TODO in separate PR
# [no-cd]
Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/codeql/pull/19978/commits/bd003c58a8e489db1315bda7a776444bf095fc96

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy