CI: Add files generated during build by kas to .gitignore

Message ID 20251127152456.1810963-1-wzh@ilbers.de
State Under Review
Headers show
Series CI: Add files generated during build by kas to .gitignore | expand

Commit Message

Zhihang Wei Nov. 27, 2025, 3:24 p.m. UTC
During testing/building with kas, files, logs and build results are
downloaded and generated under these directories. Add them to
.gitignore.

Signed-off-by: Zhihang Wei <wzh@ilbers.de>
---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jan Kiszka Nov. 27, 2025, 3:27 p.m. UTC | #1
On 27.11.25 16:24, Zhihang Wei wrote:
> During testing/building with kas, files, logs and build results are
> downloaded and generated under these directories. Add them to
> .gitignore.
> 
> Signed-off-by: Zhihang Wei <wzh@ilbers.de>
> ---
>  .gitignore | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/.gitignore b/.gitignore
> index fff155f1..e65bafc2 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -4,3 +4,6 @@ __pycache__
>  .config.yaml*
>  .kas_shell_history
>  build*
> +/downloads/
> +/sstate-cache/
> +/isar-sstate/

Err, only if you modified the defaults of kas. Normally, everything is
under KAS_WORK_DIR, and that is /build.

Jan
Zhihang Wei Nov. 27, 2025, 3:48 p.m. UTC | #2
On 11/27/25 16:27, 'Jan Kiszka' via isar-users wrote:
> On 27.11.25 16:24, Zhihang Wei wrote:
>> During testing/building with kas, files, logs and build results are
>> downloaded and generated under these directories. Add them to
>> .gitignore.
>>
>> Signed-off-by: Zhihang Wei <wzh@ilbers.de>
>> ---
>>   .gitignore | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/.gitignore b/.gitignore
>> index fff155f1..e65bafc2 100644
>> --- a/.gitignore
>> +++ b/.gitignore
>> @@ -4,3 +4,6 @@ __pycache__
>>   .config.yaml*
>>   .kas_shell_history
>>   build*
>> +/downloads/
>> +/sstate-cache/
>> +/isar-sstate/
> Err, only if you modified the defaults of kas. Normally, everything is
> under KAS_WORK_DIR, and that is /build.
>
> Jan
>
After 778e37f0, /downloads is outside of /build by our kas defaults for 
sharing.
/sstate-cache is created outside /build also for sharing, commit 26c52efc.
/isar-sstate is by default created outside /build during testing, 20c8a836.

Zhihang
Jan Kiszka Nov. 27, 2025, 4:10 p.m. UTC | #3
On 27.11.25 16:48, Zhihang Wei wrote:
> 
> On 11/27/25 16:27, 'Jan Kiszka' via isar-users wrote:
>> On 27.11.25 16:24, Zhihang Wei wrote:
>>> During testing/building with kas, files, logs and build results are
>>> downloaded and generated under these directories. Add them to
>>> .gitignore.
>>>
>>> Signed-off-by: Zhihang Wei <wzh@ilbers.de>
>>> ---
>>>   .gitignore | 3 +++
>>>   1 file changed, 3 insertions(+)
>>>
>>> diff --git a/.gitignore b/.gitignore
>>> index fff155f1..e65bafc2 100644
>>> --- a/.gitignore
>>> +++ b/.gitignore
>>> @@ -4,3 +4,6 @@ __pycache__
>>>   .config.yaml*
>>>   .kas_shell_history
>>>   build*
>>> +/downloads/
>>> +/sstate-cache/
>>> +/isar-sstate/
>> Err, only if you modified the defaults of kas. Normally, everything is
>> under KAS_WORK_DIR, and that is /build.

Sorry, it's under KAS_BUILD_DIR - KAS_WORK_DIR is . by default, normally
the isar repo then.

>>
>> Jan
>>
> After 778e37f0, /downloads is outside of /build by our kas defaults for
> sharing.

Nope, this is not correct. This commit is using vanilla kas-container
4.8.1, and that does not change DL_DIR or KAS_BUILD_DIR.

> /sstate-cache is created outside /build also for sharing, commit 26c52efc.
> /isar-sstate is by default created outside /build during testing, 20c8a836.

This is correct - but both very ugly. I would recommend directing the
testsuites output into a separate subdir if you don't want to reuse the
standard dir (build) that interactive builds use.

Jan

Patch

diff --git a/.gitignore b/.gitignore
index fff155f1..e65bafc2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,6 @@  __pycache__
 .config.yaml*
 .kas_shell_history
 build*
+/downloads/
+/sstate-cache/
+/isar-sstate/