-
Notifications
You must be signed in to change notification settings - Fork 2
AE control auth + CodeRabbit #53 followup #68
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
base: main
Are you sure you want to change the base?
Changes from all commits
c6515fd
390ee45
9535139
4ab9d07
6139e3b
fd80e5f
1001f6d
4e62453
746421f
808a3ea
9798a69
519bff5
3f6f409
239e032
10ad397
f4fe5c4
ee2dcfb
0fa7eb8
1102ce5
fed1c6e
7532c87
0094ec7
e59180a
84eac90
00aeaf3
d8192aa
61ef494
9feda72
2c7cfcf
48b100e
8e7f1c6
39a2f12
3b1d484
e9c1331
15ee7a3
31febbe
fdfb451
dc644c3
fcab916
3094068
19e84ad
e0a19dd
e6a6237
714c1fb
dfdc465
decf2ae
0c65751
e187dc3
0fd9c3f
cb81ecd
c2642da
7f43c51
c579e48
d94624a
ae41131
6d10b07
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,9 +17,11 @@ | |
| # This file contains rules for for our UI builds. | ||
|
|
||
| ui_shared_cmds_start = [ | ||
| "set -x", | ||
| 'export BASE_PATH="$(pwd)"', | ||
| "export PATH=/usr/local/bin:/opt/px_dev/tools/node/bin:$PATH", | ||
| 'export HOME="$(mktemp -d)"', # This makes node-gyp happy. | ||
| "export PATH=/opt/px_dev/tools/node/bin:/usr/local/bin:$PATH", | ||
| "hash -r", | ||
| 'export HOME="$(mktemp -d)"', | ||
| 'export TMPPATH="$(mktemp -d)"', | ||
| ] | ||
|
|
||
|
|
@@ -49,6 +51,7 @@ def _pl_webpack_deps_impl(ctx): | |
| execution_requirements = {tag: "" for tag in ctx.attr.tags}, | ||
| outputs = [out], | ||
| command = " && ".join(cmd), | ||
| use_default_shell_env = True, | ||
| progress_message = | ||
| "Generating webpack deps %s" % out.short_path, | ||
| ) | ||
|
|
@@ -72,8 +75,8 @@ def _pl_webpack_library_impl(ctx): | |
| # and apply it to the environment here. Hopefully, | ||
| # no special characters/spaces/quotes in the results ... | ||
| env_cmds = [ | ||
| '$(sed -E "s/^([A-Za-z_]+)\\s*(.*)/export \\1=\\2/g" "{}")'.format(ctx.info_file.path), | ||
| '$(sed -E "s/^([A-Za-z_]+)\\s*(.*)/export \\1=\\2/g" "{}")'.format(ctx.version_file.path), | ||
| '$(sed -E -n "s/^(STABLE_BUILD_TAG|BUILD_TIMESTAMP)\\s+(.*)/export \\1=\\2/p" "{}")'.format(ctx.info_file.path), | ||
| '$(sed -E -n "s/^(STABLE_BUILD_TAG|BUILD_TIMESTAMP)\\s+(.*)/export \\1=\\2/p" "{}")'.format(ctx.version_file.path), | ||
|
Comment on lines
+78
to
+79
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
# Locate the file and inspect the relevant section with line numbers.
git ls-files | rg '^bazel/ui\.bzl$'
wc -l bazel/ui.bzl
sed -n '1,170p' bazel/ui.bzl | cat -nRepository: k8sstormcenter/pixie Length of output: 7423 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Search for the exact sed snippets and any related command construction.
rg -n 'STABLE_BUILD_TAG|BUILD_TIMESTAMP|sed -E -n|yarn build_prod|&&' bazel/ui.bzl . -g '!**/node_modules/**'Repository: k8sstormcenter/pixie Length of output: 50377 Guard the stamp exports against missing keys 🤖 Prompt for AI Agents |
||
| ] | ||
| all_files.append(ctx.info_file) | ||
| all_files.append(ctx.version_file) | ||
|
|
@@ -95,6 +98,7 @@ def _pl_webpack_library_impl(ctx): | |
| execution_requirements = {tag: "" for tag in ctx.attr.tags}, | ||
| outputs = [out], | ||
| command = " && ".join(cmd), | ||
| use_default_shell_env = True, | ||
| progress_message = | ||
| "Generating webpack bundle %s" % out.short_path, | ||
| ) | ||
|
|
@@ -170,6 +174,7 @@ def _pl_deps_licenses_impl(ctx): | |
| execution_requirements = {tag: "" for tag in ctx.attr.tags}, | ||
| outputs = [out], | ||
| command = " && ".join(cmd), | ||
| use_default_shell_env = True, | ||
| progress_message = | ||
| "Generating licenses %s" % out.short_path, | ||
| ) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Keep actionlint’s custom runner labels in sync.
This rename looks intentional, but Line 12 will keep failing workflow lint until the custom self-hosted label list is updated alongside it. The same
oracle-vm-16cpu-64gb-x86-64label is already referenced elsewhere, so the root cause is the shared actionlint config, not this job definition.🧰 Tools
🪛 actionlint (1.7.12)
[error] 12-12: label "oracle-vm-16cpu-64gb-x86-64" is unknown. available labels are "windows-latest", "windows-latest-8-cores", "windows-2025", "windows-2025-vs2026", "windows-2022", "windows-11-arm", "ubuntu-slim", "ubuntu-latest", "ubuntu-latest-4-cores", "ubuntu-latest-8-cores", "ubuntu-latest-16-cores", "ubuntu-24.04", "ubuntu-24.04-arm", "ubuntu-22.04", "ubuntu-22.04-arm", "macos-latest", "macos-latest-xlarge", "macos-latest-large", "macos-26-intel", "macos-26-xlarge", "macos-26-large", "macos-26", "macos-15-intel", "macos-15-xlarge", "macos-15-large", "macos-15", "macos-14-xlarge", "macos-14-large", "macos-14", "self-hosted", "x64", "arm", "arm64", "linux", "macos", "windows". if it is a custom label for self-hosted runner, set list of labels in actionlint.yaml config file
(runner-label)
🤖 Prompt for AI Agents
Source: Linters/SAST tools