From 749309b749a5359e1d83500ee750b1651567c13e Mon Sep 17 00:00:00 2001 From: allan Date: Sun, 29 Jun 2025 13:42:23 +0100 Subject: [PATCH 1/4] fix: increasing limit from 1k to 100k for mf_getuniqueliref() --- base/mf_getuniquelibref.sas | 2 +- viya/mv_createfile.sas | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/base/mf_getuniquelibref.sas b/base/mf_getuniquelibref.sas index b5999d5..fe035c7 100644 --- a/base/mf_getuniquelibref.sas +++ b/base/mf_getuniquelibref.sas @@ -26,7 +26,7 @@ @author Allan Bowe **/ -%macro mf_getuniquelibref(prefix=mclib,maxtries=1000); +%macro mf_getuniquelibref(prefix=mc,maxtries=1000); %local x; %if ( %length(&prefix) gt 7 ) %then %do; diff --git a/viya/mv_createfile.sas b/viya/mv_createfile.sas index 2f7d675..2abff7b 100644 --- a/viya/mv_createfile.sas +++ b/viya/mv_createfile.sas @@ -244,4 +244,11 @@ run; %put &sysmacroname: &name created at %mfv_getpathuri(&path/&name);%put; %put &base_uri/SASJobExecution?_file=&path/&name;%put; +%if &mdebug=0 %then %do; + /* clear refs */ + filename &fname1 clear; + filename &fref clear; + libname &libref2 clear; +%end; + %mend mv_createfile; \ No newline at end of file From 0faba3581b16899c4486d7c8270627a8f3b783bc Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 29 Jun 2025 12:42:55 +0000 Subject: [PATCH 2/4] chore: updating all.sas --- all.sas | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/all.sas b/all.sas index 3838e5e..9c7d691 100644 --- a/all.sas +++ b/all.sas @@ -1121,7 +1121,7 @@ or %index(&pgm,/tests/testteardown) @author Allan Bowe **/ -%macro mf_getuniquelibref(prefix=mclib,maxtries=1000); +%macro mf_getuniquelibref(prefix=mc,maxtries=1000); %local x; %if ( %length(&prefix) gt 7 ) %then %do; @@ -24519,6 +24519,13 @@ run; %put &sysmacroname: &name created at %mfv_getpathuri(&path/&name);%put; %put &base_uri/SASJobExecution?_file=&path/&name;%put; +%if &mdebug=0 %then %do; + /* clear refs */ + filename &fname1 clear; + filename &fref clear; + libname &libref2 clear; +%end; + %mend mv_createfile;/** @file mv_createfolder.sas @brief Creates a viya folder if that folder does not already exist From a12ea6a7cbf0e9ff5b629aac321b0ab7cc1723d6 Mon Sep 17 00:00:00 2001 From: allan Date: Sun, 29 Jun 2025 13:45:48 +0100 Subject: [PATCH 3/4] chore: removing commit size check --- .git-hooks/pre-commit | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index 2a039c0..e539335 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -15,15 +15,4 @@ if [[ "$BRANCH" =~ ^(master|main|develop)$ ]]; then echo "You are on branch $BRANCH. Are you sure you want to commit to this branch?" echo "If so, commit with -n to bypass the pre-commit hook." exit 1 -fi - -## Avoid large commits -# https://www.backblaze.com/blog/how-many-bytes-are-in-a-megabyte-really/ -size_limit=$((2 * 2**20)) # 2mbs -# https://git-scm.com/docs/git-rev-list#Documentation/git-rev-list.txt---disk-usage -commit_size=$(git rev-list --disk-usage HEAD^..HEAD) -test "$commit_size" -lt "$size_limit" || ( - echo "Commit size is too large: $commit_size > $size_limit" - echo "Force commit using --no-verify" - exit 1 -) +fi \ No newline at end of file From 1cb702149c32e7c7d6606003fe86abfabaf62b42 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 29 Jun 2025 12:46:06 +0000 Subject: [PATCH 4/4] chore: updating all.sas