refs: "make mrproper" should clean out generated refs files
RFC PATCH 1/1 refs: "make mrproper" should clean out generated refs files
From: Chuck Lever <[email protected]>
Doing a "make mrproper" should force the regeneration of the default and user refs files. Otherwise these become stale because kdevops appears to check if they exist, but not if they are newer than the source yaml files.
--- scripts/build.Makefile | 2 ++ 1 file changed, 2 insertions(+)
Simple patch, but might be controversial, so I'm posting for comments.
scripts/build.Makefile +2 -0
@@ -8,6 +8,8 @@ clean: $(clean-subdirs) PHONY += mrproper mrproper: + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/default/ + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/user/ @$(Q)rm -rf $(CURDIR)/include/config/ @$(Q)rm -rf $(CURDIR)/include/generated/ @$(Q)rm -f .config
Signature · 1 line
2.48.1
Quoted 7 lines · On 3/12/25 9:00 AM, [email protected] wrote:
From: Chuck Lever <[email protected]>
Doing a "make mrproper" should force the regeneration of the default and user refs files. Otherwise these become stale because kdevops appears to check if they exist, but not if they are newer than the source yaml files.
Quoted 6 lines
Signed-off-by Chuck Lever <[email protected]>--- scripts/build.Makefile | 2 ++ 1 file changed, 2 insertions(+)Simple patch, but might be controversial, so I'm posting for comments.
And my comment is: this breaks things. Please ignore it.
So what I'm trying to fix is that when I change refs/static/yada.yml, the default and user refs do not appear to be regenerated, even if I use "make refs-default". I am probably missing something simple.
Quoted 13 lines
scripts/build.Makefile +2
-0@@ -8,6 +8,8 @@ clean: $(clean-subdirs) PHONY += mrproper mrproper: + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/default/ + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/user/ @$(Q)rm -rf $(CURDIR)/include/config/ @$(Q)rm -rf $(CURDIR)/include/generated/ @$(Q)rm -f .config
Signature · 1 line
Chuck Lever
Quoted 13 lines · Chuck Lever
Quoted 12 lines · On 3/12/25 9:00 AM, [email protected] wrote:
From: Chuck Lever <[email protected]>
Doing a "make mrproper" should force the regeneration of the default and user refs files. Otherwise these become stale because kdevops appears to check if they exist, but not if they are newer than the source yaml files.
Signed-off-by Chuck Lever <[email protected]>--- scripts/build.Makefile | 2 ++ 1 file changed, 2 insertions(+)
Quoted 7 lines
Quoted 1 line
Simple patch, but might be controversial, so I'm posting for comments.
And my comment is: this breaks things. Please ignore it.
So what I'm trying to fix is that when I change
refs/static/yada.yml, the default and user refs do not appear to be regenerated, even if I use "make refs-default". I am probably missing something simple.
Yes, that is how it should work. When we change the static files we need to run make refs-default to regenerate the files and then you can push them to the tree.
Also, docs/kdevops-autorefs.md for more context.
Daniel
Quoted 19 lines
Quoted 15 lines
scripts/build.Makefile +2
-0@@ -8,6 +8,8 @@ clean: $(clean-subdirs) PHONY += mrproper mrproper: + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/default/ + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/user/ @$(Q)rm -rf $(CURDIR)/include/config/ @$(Q)rm -rf $(CURDIR)/include/generated/ @$(Q)rm -f .configSignature · 1 line
Chuck Lever
Quoted 22 lines · Daniel Gomez
Quoted 13 lines · Chuck Lever
Quoted 12 lines · On 3/12/25 9:00 AM, [email protected] wrote:
From: Chuck Lever <[email protected]>
Doing a "make mrproper" should force the regeneration of the default and user refs files. Otherwise these become stale because kdevops appears to check if they exist, but not if they are newer than the source yaml files.
Signed-off-by Chuck Lever <[email protected]>--- scripts/build.Makefile | 2 ++ 1 file changed, 2 insertions(+)Quoted 7 lines
Quoted 1 line
Simple patch, but might be controversial, so I'm posting for comments.
And my comment is: this breaks things. Please ignore it.
So what I'm trying to fix is that when I change
refs/static/yada.yml, the default and user refs do not appear to be regenerated, even if I use "make refs-default". I am probably missing something simple.
Quoted 5 lines
Yes, that is how it should work. When we change the static files we need to run
make refs-defaultto regenerate the files and then you can push them to the tree.Also,
docs/kdevops-autorefs.mdfor more context.
make refs-default V=1
echo "Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files..."
Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files...
make REFS_COUNT=0 REFS_DIR="default" gen_refs_mcgrof_linus gen_refs_mcgrof_next gen_refs_modules gen_refs_btrfs_devel gen_refs_cel_linux gen_refs_jlayton_linux gen_refs_kdevops_ echo "Generating refs/default/Kconfig.mcgrof-linus (0 refs)..."
Generating refs/default/Kconfig.mcgrof-linus (0 refs)...
./scripts/generate_refs.py \
--prefix BOOTLINUX_TREE_MCGROF_LINUS \
--output workflows/linux/refs/default/Kconfig.mcgrof-linus \
--extra workflows/linux/refs/static/mcgrof-linus.yaml \
--force \
gitref \
--repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git \
--refs 0
echo "Generating refs/default/Kconfig.mcgrof-next (0 refs)..."
Generating refs/default/Kconfig.mcgrof-next (0 refs)...
./scripts/generate_refs.py \
--prefix BOOTLINUX_TREE_MCGROF_NEXT \
--output workflows/linux/refs/default/Kconfig.mcgrof-next \
--extra workflows/linux/refs/static/mcgrof-next.yaml \
--force \
gitref \
--repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git \
--refs 0
...
echo "Generating refs/default/Kconfig.cel-linux (0 refs)..."
Generating refs/default/Kconfig.cel-linux (0 refs)...
./scripts/generate_refs.py \
--prefix BOOTLINUX_TREE_CEL_LINUX \
--output workflows/linux/refs/default/Kconfig.cel-linux \
--extra workflows/linux/refs/static/cel-linux.yaml \
--force \
gitref \
--repo https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git \
--refs 0...
But I think I remember seeing a typo in CEL and have a commit for it.
Quoted 22 lines
Daniel
Quoted 19 lines
Quoted 15 lines
scripts/build.Makefile +2
-0@@ -8,6 +8,8 @@ clean: $(clean-subdirs) PHONY += mrproper mrproper: + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/default/ + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/user/ @$(Q)rm -rf $(CURDIR)/include/config/ @$(Q)rm -rf $(CURDIR)/include/generated/ @$(Q)rm -f .configSignature · 1 line
Chuck Lever
Quoted 64 lines · Daniel Gomez
Quoted 22 lines · Daniel Gomez
Quoted 13 lines · Chuck Lever
Quoted 12 lines · On 3/12/25 9:00 AM, [email protected] wrote:
From: Chuck Lever <[email protected]>
Doing a "make mrproper" should force the regeneration of the default and user refs files. Otherwise these become stale because kdevops appears to check if they exist, but not if they are newer than the source yaml files.
Signed-off-by Chuck Lever <[email protected]>--- scripts/build.Makefile | 2 ++ 1 file changed, 2 insertions(+)Quoted 7 lines
Quoted 1 line
Simple patch, but might be controversial, so I'm posting for comments.
And my comment is: this breaks things. Please ignore it.
So what I'm trying to fix is that when I change
refs/static/yada.yml, the default and user refs do not appear to be regenerated, even if I use "make refs-default". I am probably missing something simple.Quoted 5 lines
Yes, that is how it should work. When we change the static files we need to run
make refs-defaultto regenerate the files and then you can push them to the tree.Also,
docs/kdevops-autorefs.mdfor more context.make refs-default V=1
echo "Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files..."
Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files...
make REFS_COUNT=0 REFS_DIR="default"gen_refs_mcgrof_linusgen_refs_mcgrof_nextgen_refs_modulesgen_refs_btrfs_develgen_refs_cel_linuxgen_refs_jlayton_linuxgen_refs_kdevops_echo "Generating refs/default/Kconfig.mcgrof-linus (0 refs)..."
Generating refs/default/Kconfig.mcgrof-linus (0 refs)..../scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_MCGROF_LINUS \ --output workflows/linux/refs/default/Kconfig.mcgrof-linus \ --extra workflows/linux/refs/static/mcgrof-linus.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git \ --refs 0 echo "Generating refs/default/Kconfig.mcgrof-next (0 refs)..." Generating refs/default/Kconfig.mcgrof-next (0 refs)... ./scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_MCGROF_NEXT \ --output workflows/linux/refs/default/Kconfig.mcgrof-next \ --extra workflows/linux/refs/static/mcgrof-next.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git \ --refs 0 ... echo "Generating refs/default/Kconfig.cel-linux (0 refs)..." Generating refs/default/Kconfig.cel-linux (0 refs)... ./scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_CEL_LINUX \ --output workflows/linux/refs/default/Kconfig.cel-linux \ --extra workflows/linux/refs/static/cel-linux.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git \ --refs 0
Quoted 3 lines
...
But I think I remember seeing a typo in CEL and have a commit for it.
Right.
workflows/linux/Kconfig.cel:config BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME workflows/linux/refs/default/Kconfig.cel-linux: default BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOMworkflows/linux/refs/static/cel-linux.yaml: ref: BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME
This should be renamed as BOOTLINUX_TREE_CEL_.
Sorry for that Chuck, I forgot to push the change.
Quoted 23 lines
Quoted 23 lines
Daniel
Quoted 19 lines
Quoted 15 lines
scripts/build.Makefile +2
-0@@ -8,6 +8,8 @@ clean: $(clean-subdirs) PHONY += mrproper mrproper: + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/default/ + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/user/ @$(Q)rm -rf $(CURDIR)/include/config/ @$(Q)rm -rf $(CURDIR)/include/generated/ @$(Q)rm -f .configSignature · 1 line
Chuck Lever
Quoted 71 lines · Daniel Gomez
Quoted 64 lines · Daniel Gomez
Quoted 22 lines · Daniel Gomez
Quoted 13 lines · Chuck Lever
Quoted 12 lines · On 3/12/25 9:00 AM, [email protected] wrote:
From: Chuck Lever <[email protected]>
Doing a "make mrproper" should force the regeneration of the default and user refs files. Otherwise these become stale because kdevops appears to check if they exist, but not if they are newer than the source yaml files.
Signed-off-by Chuck Lever <[email protected]>--- scripts/build.Makefile | 2 ++ 1 file changed, 2 insertions(+)Quoted 7 lines
Quoted 1 line
Simple patch, but might be controversial, so I'm posting for comments.
And my comment is: this breaks things. Please ignore it.
So what I'm trying to fix is that when I change
refs/static/yada.yml, the default and user refs do not appear to be regenerated, even if I use "make refs-default". I am probably missing something simple.Quoted 5 lines
Yes, that is how it should work. When we change the static files we need to run
make refs-defaultto regenerate the files and then you can push them to the tree.Also,
docs/kdevops-autorefs.mdfor more context.make refs-default V=1
echo "Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files..."
Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files...
make REFS_COUNT=0 REFS_DIR="default"gen_refs_mcgrof_linusgen_refs_mcgrof_nextgen_refs_modulesgen_refs_btrfs_develgen_refs_cel_linuxgen_refs_jlayton_linuxgen_refs_kdevops_echo "Generating refs/default/Kconfig.mcgrof-linus (0 refs)..."
Generating refs/default/Kconfig.mcgrof-linus (0 refs)..../scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_MCGROF_LINUS \ --output workflows/linux/refs/default/Kconfig.mcgrof-linus \ --extra workflows/linux/refs/static/mcgrof-linus.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git \ --refs 0 echo "Generating refs/default/Kconfig.mcgrof-next (0 refs)..." Generating refs/default/Kconfig.mcgrof-next (0 refs)... ./scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_MCGROF_NEXT \ --output workflows/linux/refs/default/Kconfig.mcgrof-next \ --extra workflows/linux/refs/static/mcgrof-next.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git \ --refs 0 ... echo "Generating refs/default/Kconfig.cel-linux (0 refs)..." Generating refs/default/Kconfig.cel-linux (0 refs)... ./scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_CEL_LINUX \ --output workflows/linux/refs/default/Kconfig.cel-linux \ --extra workflows/linux/refs/static/cel-linux.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git \ --refs 0Quoted 3 lines
...
But I think I remember seeing a typo in CEL and have a commit for it.
Right.
Quoted 7 lines
workflows/linux/Kconfig.cel:config
BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEworkflows/linux/refs/default/Kconfig.cel-linux: defaultBOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEifBOOTLINUX_TREE_CEL_LINUX_REF_CUSTOMworkflows/linux/refs/static/cel-linux.yaml: ref:BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEThis should be renamed as
BOOTLINUX_TREE_CEL_.Sorry for that Chuck, I forgot to push the change.
Let me know if this fixes the problem:
Author: Daniel Gomez <[email protected]> Date: Wed Mar 12 17:15:15 2025 +0000
linux: refs: fix cel rename types
To be consistent with the rest of the configs, use the BOOTLINUX_TREE_ prefix.
workflows/linux/Kconfig.cel +1 -1
@@ -3,7 +3,7 @@ if BOOTLINUX_TREE_CEL_LINUX source "workflows/linux/refs/default/Kconfig.cel-linux" source "workflows/linux/refs/user/Kconfig.cel-linux" -config BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME +config BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME string "Custom branch name" default "custom" depends on BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM
workflows/linux/refs/default/Kconfig.cel-linux +1 -1
@@ -33,6 +33,6 @@ config BOOTLINUX_TREE_CEL_LINUX_REF default "nfsd-next" if BOOTLINUX_TREE_CEL_LINUX_REF_NEXT default "nfsd-fixes" if BOOTLINUX_TREE_CEL_LINUX_REF_FIXES default "nfsd-testing" if BOOTLINUX_TREE_CEL_LINUX_REF_TESTING - default BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM + default BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM endif # !HAVE_BOOTLINUX_TREE_CEL_LINUX_USER_REFS
workflows/linux/refs/static/cel-linux.yaml +1 -1
@@ -14,5 +14,5 @@ configs: help: "Pull the nfsd-testing branch." - custom: config: BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM - ref: BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME + ref: BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME help: "Use a custom branch name."
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Daniel
Quoted 19 lines
Quoted 15 lines
scripts/build.Makefile +2
-0@@ -8,6 +8,8 @@ clean: $(clean-subdirs) PHONY += mrproper mrproper: + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/default/ + @$(Q)rm -rf $(CURDIR)/workflows/linux/refs/user/ @$(Q)rm -rf $(CURDIR)/include/config/ @$(Q)rm -rf $(CURDIR)/include/generated/ @$(Q)rm -f .configSignature · 1 line
Chuck Lever
Quoted 108 lines · Daniel Gomez
Quoted 57 lines · Daniel Gomez
Quoted 50 lines · Daniel Gomez
Quoted 8 lines · Daniel Gomez
Quoted 6 lines · Chuck Lever
Quoted 1 line · On 3/12/25 9:00 AM, [email protected] wrote:
From: Chuck Lever <[email protected]>
So what I'm trying to fix is that when I change
refs/static/yada.yml, the default and user refs do not appear to be regenerated, even if I use "make refs-default". I am probably missing something simple.Quoted 5 lines
Yes, that is how it should work. When we change the static files we need to run
make refs-defaultto regenerate the files and then you can push them to the tree.Also,
docs/kdevops-autorefs.mdfor more context.make refs-default V=1
echo "Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files..."
Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files...
make REFS_COUNT=0 REFS_DIR="default"gen_refs_mcgrof_linusgen_refs_mcgrof_nextgen_refs_modulesgen_refs_btrfs_develgen_refs_cel_linuxgen_refs_jlayton_linuxgen_refs_kdevops_echo "Generating refs/default/Kconfig.mcgrof-linus (0 refs)..."
Generating refs/default/Kconfig.mcgrof-linus (0 refs)..../scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_MCGROF_LINUS \ --output workflows/linux/refs/default/Kconfig.mcgrof-linus \ --extra workflows/linux/refs/static/mcgrof-linus.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git \ --refs 0 echo "Generating refs/default/Kconfig.mcgrof-next (0 refs)..." Generating refs/default/Kconfig.mcgrof-next (0 refs)... ./scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_MCGROF_NEXT \ --output workflows/linux/refs/default/Kconfig.mcgrof-next \ --extra workflows/linux/refs/static/mcgrof-next.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git \ --refs 0 ... echo "Generating refs/default/Kconfig.cel-linux (0 refs)..." Generating refs/default/Kconfig.cel-linux (0 refs)... ./scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_CEL_LINUX \ --output workflows/linux/refs/default/Kconfig.cel-linux \ --extra workflows/linux/refs/static/cel-linux.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git \ --refs 0Quoted 3 lines
...
But I think I remember seeing a typo in CEL and have a commit for it.
Right.
Quoted 7 lines
workflows/linux/Kconfig.cel:config
BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEworkflows/linux/refs/default/Kconfig.cel-linux: defaultBOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEifBOOTLINUX_TREE_CEL_LINUX_REF_CUSTOMworkflows/linux/refs/static/cel-linux.yaml: ref:BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEThis should be renamed as
BOOTLINUX_TREE_CEL_.Sorry for that Chuck, I forgot to push the change.
Let me know if this fixes the problem:
Author: Daniel Gomez <[email protected]> Date: Wed Mar 12 17:15:15 2025 +0000linux: refs: fix cel rename types
To be consistent with the rest of the configs, use the
BOOTLINUX_TREE_prefix.Signed-off-by Daniel Gomez <[email protected]>workflows/linux/Kconfig.cel +1
-1@@ -3,7 +3,7 @@ if BOOTLINUX_TREE_CEL_LINUX source "workflows/linux/refs/default/Kconfig.cel-linux" source "workflows/linux/refs/user/Kconfig.cel-linux" -config BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME +config BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME string "Custom branch name" default "custom" depends on BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOMworkflows/linux/refs/default/Kconfig.cel-linux +1
-1@@ -33,6 +33,6 @@ config BOOTLINUX_TREE_CEL_LINUX_REF default "nfsd-next" if BOOTLINUX_TREE_CEL_LINUX_REF_NEXT default "nfsd-fixes" if BOOTLINUX_TREE_CEL_LINUX_REF_FIXES default "nfsd-testing" if BOOTLINUX_TREE_CEL_LINUX_REF_TESTING - default BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM + default BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM endif # !HAVE_BOOTLINUX_TREE_CEL_LINUX_USER_REFSworkflows/linux/refs/static/cel-linux.yaml +0
-0
workflows/linux/refs/static/cel-linux.yaml configs: · line 18
Quoted 6 lines
workflows/linux/refs/static/cel-linux.yaml +1
-1@@ -14,5 +14,5 @@ configs: help: "Pull the nfsd-testing branch." - custom: config: BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM - ref: BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME + ref: BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME help: "Use a custom branch name."
I applied this. It doesn't break anything. You can add R-b, T-b, or both from me.
The original problem, though, was I was developing a new set of default refs for linux-stable-rc, and when I changed the static yaml file, I had to actively delete the default/ ... file to get it to reflect changes to the static file.
I will post all that in a bit to help the discussion along.
Signature · 1 line
Chuck Lever
Quoted 103 lines · Chuck Lever
Quoted 102 lines · Daniel Gomez
Quoted 57 lines · Daniel Gomez
Quoted 50 lines · Daniel Gomez
Quoted 8 lines · Daniel Gomez
Quoted 6 lines · Chuck Lever
Quoted 1 line · On 3/12/25 9:00 AM, [email protected] wrote:
From: Chuck Lever <[email protected]>
So what I'm trying to fix is that when I change
refs/static/yada.yml, the default and user refs do not appear to be regenerated, even if I use "make refs-default". I am probably missing something simple.Quoted 5 lines
Yes, that is how it should work. When we change the static files we need to run
make refs-defaultto regenerate the files and then you can push them to the tree.Also,
docs/kdevops-autorefs.mdfor more context.make refs-default V=1
echo "Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files..."
Generating refs/default/Kconfig-{mcgrof-linus,mcgrof-next,btrfs-devel,cel-linux-jlayton-linux-kdevops-linus} files...
make REFS_COUNT=0 REFS_DIR="default"gen_refs_mcgrof_linusgen_refs_mcgrof_nextgen_refs_modulesgen_refs_btrfs_develgen_refs_cel_linuxgen_refs_jlayton_linuxgen_refs_kdevops_echo "Generating refs/default/Kconfig.mcgrof-linus (0 refs)..."
Generating refs/default/Kconfig.mcgrof-linus (0 refs)..../scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_MCGROF_LINUS \ --output workflows/linux/refs/default/Kconfig.mcgrof-linus \ --extra workflows/linux/refs/static/mcgrof-linus.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git \ --refs 0 echo "Generating refs/default/Kconfig.mcgrof-next (0 refs)..." Generating refs/default/Kconfig.mcgrof-next (0 refs)... ./scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_MCGROF_NEXT \ --output workflows/linux/refs/default/Kconfig.mcgrof-next \ --extra workflows/linux/refs/static/mcgrof-next.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git \ --refs 0 ... echo "Generating refs/default/Kconfig.cel-linux (0 refs)..." Generating refs/default/Kconfig.cel-linux (0 refs)... ./scripts/generate_refs.py \ --prefix BOOTLINUX_TREE_CEL_LINUX \ --output workflows/linux/refs/default/Kconfig.cel-linux \ --extra workflows/linux/refs/static/cel-linux.yaml \ --force \ gitref \ --repo https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git \ --refs 0Quoted 3 lines
...
But I think I remember seeing a typo in CEL and have a commit for it.
Right.
Quoted 7 lines
workflows/linux/Kconfig.cel:config
BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEworkflows/linux/refs/default/Kconfig.cel-linux: defaultBOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEifBOOTLINUX_TREE_CEL_LINUX_REF_CUSTOMworkflows/linux/refs/static/cel-linux.yaml: ref:BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAMEThis should be renamed as
BOOTLINUX_TREE_CEL_.Sorry for that Chuck, I forgot to push the change.
Let me know if this fixes the problem:
Author: Daniel Gomez <[email protected]> Date: Wed Mar 12 17:15:15 2025 +0000linux: refs: fix cel rename types
To be consistent with the rest of the configs, use the
BOOTLINUX_TREE_prefix.Signed-off-by Daniel Gomez <[email protected]>workflows/linux/Kconfig.cel +1
-1@@ -3,7 +3,7 @@ if BOOTLINUX_TREE_CEL_LINUX source "workflows/linux/refs/default/Kconfig.cel-linux" source "workflows/linux/refs/user/Kconfig.cel-linux" -config BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME +config BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME string "Custom branch name" default "custom" depends on BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOMworkflows/linux/refs/default/Kconfig.cel-linux +1
-1@@ -33,6 +33,6 @@ config BOOTLINUX_TREE_CEL_LINUX_REF default "nfsd-next" if BOOTLINUX_TREE_CEL_LINUX_REF_NEXT default "nfsd-fixes" if BOOTLINUX_TREE_CEL_LINUX_REF_FIXES default "nfsd-testing" if BOOTLINUX_TREE_CEL_LINUX_REF_TESTING - default BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM + default BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME if BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM
Quoted 15 lines
workflows/linux/refs/static/cel-linux.yaml configs: · line 18
Quoted 12 lines
workflows/linux/refs/default/Kconfig.cel-linux +0
-0endif # !HAVE_BOOTLINUX_TREE_CEL_LINUX_USER_REFSworkflows/linux/refs/static/cel-linux.yaml +1
-1@@ -14,5 +14,5 @@ configs: help: "Pull the nfsd-testing branch." - custom: config: BOOTLINUX_TREE_CEL_LINUX_REF_CUSTOM - ref: BOOTLINUX_CEL_LINUX_CUSTOM_REF_NAME + ref: BOOTLINUX_TREE_CEL_LINUX_CUSTOM_REF_NAME help: "Use a custom branch name."I applied this. It doesn't break anything. You can add R-b, T-b, or both from me.
Ok. I will post soon.
Thanks!
Daniel
Quoted 11 lines
The original problem, though, was I was developing a new set of default refs for linux-stable-rc, and when I changed the static yaml file, I had to actively delete the default/ ... file to get it to reflect changes to the static file.
I will post all that in a bit to help the discussion along.
Signature · 1 line
Chuck Lever