yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* Submit a new layer meta-loongarch to the layer index
@ 2023-06-08  7:21 张家岭
  2023-06-08 10:10 ` [yocto] " Ross Burton
  0 siblings, 1 reply; 11+ messages in thread
From: 张家岭 @ 2023-06-08  7:21 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

Hello

I would like to submit a new layer named meta-loongarch for the 
LoongArch machine to 
http://layers.openembedded.org/layerindex/branch/master/layers/. 
However, when I attempted to submit, I encountered the error message 
"Layer with this Layer name already exists." Yet, I cannot find the 
layer named meta-loongarch in the layer index. Could you please help me 
or provide some advice on this matter?




[-- Attachment #2: Type: text/html, Size: 2393 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-08  7:21 Submit a new layer meta-loongarch to the layer index 张家岭
@ 2023-06-08 10:10 ` Ross Burton
  2023-06-08 10:29   ` 张家岭
  2023-06-09  3:04   ` 张家岭
  0 siblings, 2 replies; 11+ messages in thread
From: Ross Burton @ 2023-06-08 10:10 UTC (permalink / raw)
  To: zhangjialing; +Cc: yocto

On 8 Jun 2023, at 08:21, 张家岭 via lists.yoctoproject.org <zhangjialing=loongson.cn@lists.yoctoproject.org> wrote:
> I would like to submit a new layer named meta-loongarch for the LoongArch machine to http://layers.openembedded.org/layerindex/branch/master/layers/. However, when I attempted to submit, I encountered the error message "Layer with this Layer name already exists." Yet, I cannot find the layer named meta-loongarch in the layer index. Could you please help me or provide some advice on this matter?

New layers need to be approved before they’re publicly visible, I’ve just approved the layer you submitted:

https://layers.openembedded.org/layerindex/branch/master/layer/meta-loongarch/

Ross

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-08 10:10 ` [yocto] " Ross Burton
@ 2023-06-08 10:29   ` 张家岭
  2023-06-09  3:04   ` 张家岭
  1 sibling, 0 replies; 11+ messages in thread
From: 张家岭 @ 2023-06-08 10:29 UTC (permalink / raw)
  To: Ross Burton; +Cc: yocto

Hi, Ross

     Thank you for your help .

在 2023/6/8 18:10, Ross Burton 写道:
> On 8 Jun 2023, at 08:21, 张家岭 via lists.yoctoproject.org <zhangjialing=loongson.cn@lists.yoctoproject.org> wrote:
>> I would like to submit a new layer named meta-loongarch for the LoongArch machine to http://layers.openembedded.org/layerindex/branch/master/layers/. However, when I attempted to submit, I encountered the error message "Layer with this Layer name already exists." Yet, I cannot find the layer named meta-loongarch in the layer index. Could you please help me or provide some advice on this matter?
> New layers need to be approved before they’re publicly visible, I’ve just approved the layer you submitted:
>
> https://layers.openembedded.org/layerindex/branch/master/layer/meta-loongarch/
>
> Ross



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-08 10:10 ` [yocto] " Ross Burton
  2023-06-08 10:29   ` 张家岭
@ 2023-06-09  3:04   ` 张家岭
  2023-06-09 11:33     ` Ross Burton
  1 sibling, 1 reply; 11+ messages in thread
From: 张家岭 @ 2023-06-09  3:04 UTC (permalink / raw)
  To: Ross Burton; +Cc: yocto

Hello Ross,

     I get this error ,  something is wrong in self.active_maintainers()


```

Environment:


Request Method: GET
Request URL: 
http://layers.openembedded.org/layerindex/branch/master/layer/meta-loongarch/

Django Version: 3.2.16
Python Version: 3.10.6
Installed Applications:
('django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.sites',
  'django.contrib.messages',
  'django.contrib.staticfiles',
  'django.contrib.admin',
  'layerindex',
  'django_registration',
  'reversion',
  'reversion_compare',
  'captcha',
  'axes',
  'rest_framework',
  'corsheaders',
  'rrs',
  'bootstrap_pagination')
Installed Middleware:
('corsheaders.middleware.CorsMiddleware',
  'django.middleware.common.CommonMiddleware',
  'django.contrib.sessions.middleware.SessionMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware',
  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  'axes.middleware.AxesMiddleware',
  'layerindex.middleware.NonAtomicRevisionMiddleware')



Traceback (most recent call last):
   File 
"/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", 
line 47, in inner
     response = get_response(request)
   File 
"/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", 
line 181, in _get_response
     response = wrapped_callback(request, *callback_args, **callback_kwargs)
   File 
"/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py", 
line 70, in view
     return self.dispatch(request, *args, **kwargs)
   File "/opt/layerindex/layerindex/views.py", line 410, in dispatch
     res = super(LayerDetailView, self).dispatch(request, *args, **kwargs)
   File 
"/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py", 
line 98, in dispatch
     return handler(request, *args, **kwargs)
   File 
"/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py", 
line 107, in get
     context = self.get_context_data(object=self.object)
   File "/opt/layerindex/layerindex/views.py", line 424, in get_context_data
     context['useredit'] = layer.user_can_edit(self.user)
   File "/opt/layerindex/layerindex/models.py", line 178, in user_can_edit
     for maintainer in self.active_maintainers():

Exception Type: TypeError at /layerindex/branch/master/layer/meta-loongarch/
Exception Value: 'NoneType' object is not iterable
```

在 2023/6/8 18:10, Ross Burton 写道:
> On 8 Jun 2023, at 08:21, 张家岭 via lists.yoctoproject.org <zhangjialing=loongson.cn@lists.yoctoproject.org> wrote:
>> I would like to submit a new layer named meta-loongarch for the LoongArch machine to http://layers.openembedded.org/layerindex/branch/master/layers/. However, when I attempted to submit, I encountered the error message "Layer with this Layer name already exists." Yet, I cannot find the layer named meta-loongarch in the layer index. Could you please help me or provide some advice on this matter?
> New layers need to be approved before they’re publicly visible, I’ve just approved the layer you submitted:
>
> https://layers.openembedded.org/layerindex/branch/master/layer/meta-loongarch/
>
> Ross



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-09  3:04   ` 张家岭
@ 2023-06-09 11:33     ` Ross Burton
  2023-06-12  2:04       ` 张家岭
  0 siblings, 1 reply; 11+ messages in thread
From: Ross Burton @ 2023-06-09 11:33 UTC (permalink / raw)
  To: 张家岭; +Cc: Yocto-mailing-list

Hi,

This would be https://bugzilla.yoctoproject.org/show_bug.cgi?id=14989, because your layer has a ‘main’ branch not a ‘master’ branch.  You can either rename main to master, or keep a master branch in sync with main, or wait for that to be fixed.

Ross

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-09 11:33     ` Ross Burton
@ 2023-06-12  2:04       ` 张家岭
  2023-06-12  6:39         ` 张家岭
  0 siblings, 1 reply; 11+ messages in thread
From: 张家岭 @ 2023-06-12  2:04 UTC (permalink / raw)
  To: Ross Burton; +Cc: Yocto-mailing-list

Hi Ross .

     I have changed the default branch to master, But I stil get this 
error , is there something wrong in self.active_maintainers()?

```

/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py, 
line 47, in inner
                 response = get_response(request) …
▼ Local vars
Variable    Value
exc
TypeError("'NoneType' object is not iterable")
get_response
<bound method BaseHandler._get_response of 
<django.core.handlers.wsgi.WSGIHandler object at 0x7f437f0b0370>>
request
<WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py, 
line 181, in _get_response
                 response = wrapped_callback(request, *callback_args, 
**callback_kwargs) …
▼ Local vars
Variable    Value
callback
<function LayerDetailView at 0x7f437e1a27a0>
callback_args
()
callback_kwargs
{'branch': 'master', 'slug': 'meta-loongarch'}
middleware_method
<bound method CsrfViewMiddleware.process_view of 
<django.middleware.csrf.CsrfViewMiddleware object at 0x7f437f1c2aa0>>
request
<WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
response
None
self
<django.core.handlers.wsgi.WSGIHandler object at 0x7f437f0b0370>
wrapped_callback
<function LayerDetailView at 0x7f437e1a27a0>
/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py, 
line 70, in view
             return self.dispatch(request, *args, **kwargs) …
▼ Local vars
Variable    Value
args
()
cls
<class 'layerindex.views.LayerDetailView'>
initkwargs
{'template_name': 'layerindex/detail.html'}
kwargs
{'branch': 'master', 'slug': 'meta-loongarch'}
request
<WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
self
<layerindex.views.LayerDetailView object at 0x7f437af523b0>
/opt/layerindex/layerindex/views.py, line 410, in dispatch
         res = super(LayerDetailView, self).dispatch(request, *args, 
**kwargs) …
▼ Local vars
Variable    Value
__class__
<class 'layerindex.views.LayerDetailView'>
args
()
kwargs
{'branch': 'master', 'slug': 'meta-loongarch'}
request
<WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
self
<layerindex.views.LayerDetailView object at 0x7f437af523b0>
/usr/local/lib/python3.10/dist-packages/django/views/generic/base.py, 
line 98, in dispatch
         return handler(request, *args, **kwargs) …
▼ Local vars
Variable    Value
args
()
handler
<bound method BaseDetailView.get of <layerindex.views.LayerDetailView 
object at 0x7f437af523b0>>
kwargs
{'branch': 'master', 'slug': 'meta-loongarch'}
request
<WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
self
<layerindex.views.LayerDetailView object at 0x7f437af523b0>
/usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py, 
line 107, in get
         context = self.get_context_data(object=self.object) …
▼ Local vars
Variable    Value
args
()
kwargs
{'branch': 'master', 'slug': 'meta-loongarch'}
request
<WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
self
<layerindex.views.LayerDetailView object at 0x7f437af523b0>
/opt/layerindex/layerindex/views.py, line 424, in get_context_data
         context['useredit'] = layer.user_can_edit(self.user) …
▼ Local vars
Variable    Value
__class__
<class 'layerindex.views.LayerDetailView'>
context
{'layeritem': <LayerItem: meta-loongarch>,
  'object': <LayerItem: meta-loongarch>,
  'view': <layerindex.views.LayerDetailView object at 0x7f437af523b0>}
kwargs
{'object': <LayerItem: meta-loongarch>}
layer
<LayerItem: meta-loongarch>
self
<layerindex.views.LayerDetailView object at 0x7f437af523b0>
/opt/layerindex/layerindex/models.py, line 178, in user_can_edit
             for maintainer in self.active_maintainers(): …
▼ Local vars
Variable    Value
self
<LayerItem: meta-loongarch>
user
<SimpleLazyObject: <User: zhangjialing@loongson.cn>>
user_email
'zhangjialing@loongson.cn'

```
在 2023/6/9 19:33, Ross Burton 写道:
> Hi,
>
> This would be https://bugzilla.yoctoproject.org/show_bug.cgi?id=14989, because your layer has a ‘main’ branch not a ‘master’ branch.  You can either rename main to master, or keep a master branch in sync with main, or wait for that to be fixed.
>
> Ross



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-12  2:04       ` 张家岭
@ 2023-06-12  6:39         ` 张家岭
  2023-06-12  9:24           ` Ross Burton
  0 siblings, 1 reply; 11+ messages in thread
From: 张家岭 @ 2023-06-12  6:39 UTC (permalink / raw)
  To: Ross Burton; +Cc: Yocto-mailing-list

Hi Ross:

         I can open this web page 
http://layers.openembedded.org/layerindex/branch/master/layer/meta-loongarch/ 
, but there is no maintainer iterm in this web , so I can not edit this 
layer . Can you add this iterm for me ?


在 2023/6/12 10:04, 张家岭 写道:
> Hi Ross .
>
>     I have changed the default branch to master, But I stil get this 
> error , is there something wrong in self.active_maintainers()?
>
> ```
>
> /usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py, 
> line 47, in inner
>                 response = get_response(request) …
> ▼ Local vars
> Variable    Value
> exc
> TypeError("'NoneType' object is not iterable")
> get_response
> <bound method BaseHandler._get_response of 
> <django.core.handlers.wsgi.WSGIHandler object at 0x7f437f0b0370>>
> request
> <WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
> /usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py, 
> line 181, in _get_response
>                 response = wrapped_callback(request, *callback_args, 
> **callback_kwargs) …
> ▼ Local vars
> Variable    Value
> callback
> <function LayerDetailView at 0x7f437e1a27a0>
> callback_args
> ()
> callback_kwargs
> {'branch': 'master', 'slug': 'meta-loongarch'}
> middleware_method
> <bound method CsrfViewMiddleware.process_view of 
> <django.middleware.csrf.CsrfViewMiddleware object at 0x7f437f1c2aa0>>
> request
> <WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
> response
> None
> self
> <django.core.handlers.wsgi.WSGIHandler object at 0x7f437f0b0370>
> wrapped_callback
> <function LayerDetailView at 0x7f437e1a27a0>
> /usr/local/lib/python3.10/dist-packages/django/views/generic/base.py, 
> line 70, in view
>             return self.dispatch(request, *args, **kwargs) …
> ▼ Local vars
> Variable    Value
> args
> ()
> cls
> <class 'layerindex.views.LayerDetailView'>
> initkwargs
> {'template_name': 'layerindex/detail.html'}
> kwargs
> {'branch': 'master', 'slug': 'meta-loongarch'}
> request
> <WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
> self
> <layerindex.views.LayerDetailView object at 0x7f437af523b0>
> /opt/layerindex/layerindex/views.py, line 410, in dispatch
>         res = super(LayerDetailView, self).dispatch(request, *args, 
> **kwargs) …
> ▼ Local vars
> Variable    Value
> __class__
> <class 'layerindex.views.LayerDetailView'>
> args
> ()
> kwargs
> {'branch': 'master', 'slug': 'meta-loongarch'}
> request
> <WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
> self
> <layerindex.views.LayerDetailView object at 0x7f437af523b0>
> /usr/local/lib/python3.10/dist-packages/django/views/generic/base.py, 
> line 98, in dispatch
>         return handler(request, *args, **kwargs) …
> ▼ Local vars
> Variable    Value
> args
> ()
> handler
> <bound method BaseDetailView.get of <layerindex.views.LayerDetailView 
> object at 0x7f437af523b0>>
> kwargs
> {'branch': 'master', 'slug': 'meta-loongarch'}
> request
> <WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
> self
> <layerindex.views.LayerDetailView object at 0x7f437af523b0>
> /usr/local/lib/python3.10/dist-packages/django/views/generic/detail.py, 
> line 107, in get
>         context = self.get_context_data(object=self.object) …
> ▼ Local vars
> Variable    Value
> args
> ()
> kwargs
> {'branch': 'master', 'slug': 'meta-loongarch'}
> request
> <WSGIRequest: GET '/layerindex/branch/master/layer/meta-loongarch/'>
> self
> <layerindex.views.LayerDetailView object at 0x7f437af523b0>
> /opt/layerindex/layerindex/views.py, line 424, in get_context_data
>         context['useredit'] = layer.user_can_edit(self.user) …
> ▼ Local vars
> Variable    Value
> __class__
> <class 'layerindex.views.LayerDetailView'>
> context
> {'layeritem': <LayerItem: meta-loongarch>,
>  'object': <LayerItem: meta-loongarch>,
>  'view': <layerindex.views.LayerDetailView object at 0x7f437af523b0>}
> kwargs
> {'object': <LayerItem: meta-loongarch>}
> layer
> <LayerItem: meta-loongarch>
> self
> <layerindex.views.LayerDetailView object at 0x7f437af523b0>
> /opt/layerindex/layerindex/models.py, line 178, in user_can_edit
>             for maintainer in self.active_maintainers(): …
> ▼ Local vars
> Variable    Value
> self
> <LayerItem: meta-loongarch>
> user
> <SimpleLazyObject: <User: zhangjialing@loongson.cn>>
> user_email
> 'zhangjialing@loongson.cn'
>
> ```
> 在 2023/6/9 19:33, Ross Burton 写道:
>> Hi,
>>
>> This would be 
>> https://bugzilla.yoctoproject.org/show_bug.cgi?id=14989, because your 
>> layer has a ‘main’ branch not a ‘master’ branch.  You can either 
>> rename main to master, or keep a master branch in sync with main, or 
>> wait for that to be fixed.
>>
>> Ross



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-12  6:39         ` 张家岭
@ 2023-06-12  9:24           ` Ross Burton
  2023-06-12  9:36             ` 张家岭
  0 siblings, 1 reply; 11+ messages in thread
From: Ross Burton @ 2023-06-12  9:24 UTC (permalink / raw)
  To: 张家岭; +Cc: Yocto-mailing-list

On 12 Jun 2023, at 07:39, 张家岭 <zhangjialing@loongson.cn> wrote:
> 
> Hi Ross:
> 
>         I can open this web page http://layers.openembedded.org/layerindex/branch/master/layer/meta-loongarch/ , but there is no maintainer iterm in this web , so I can not edit this layer . Can you add this iterm for me ?

Done.  You definitely filled that in correctly when you submitted the layer, but because maintainers are associated with branches it got lost when it couldn’t find the master branch.

Cheers,
Ross

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-12  9:24           ` Ross Burton
@ 2023-06-12  9:36             ` 张家岭
  2023-06-12 10:40               ` Ross Burton
  0 siblings, 1 reply; 11+ messages in thread
From: 张家岭 @ 2023-06-12  9:36 UTC (permalink / raw)
  To: Ross Burton; +Cc: Yocto-mailing-list

Hi Ross:

     Thank you , I can edit this layer now , How can I show  this layer 
in http://layers.openembedded.org/layerindex/branch/master/layers/


在 2023/6/12 17:24, Ross Burton 写道:
> On 12 Jun 2023, at 07:39, 张家岭 <zhangjialing@loongson.cn> wrote:
>> Hi Ross:
>>
>>          I can open this web page http://layers.openembedded.org/layerindex/branch/master/layer/meta-loongarch/ , but there is no maintainer iterm in this web , so I can not edit this layer . Can you add this iterm for me ?
> Done.  You definitely filled that in correctly when you submitted the layer, but because maintainers are associated with branches it got lost when it couldn’t find the master branch.
>
> Cheers,
> Ross



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-12  9:36             ` 张家岭
@ 2023-06-12 10:40               ` Ross Burton
  2023-06-12 11:27                 ` 张家岭
  0 siblings, 1 reply; 11+ messages in thread
From: Ross Burton @ 2023-06-12 10:40 UTC (permalink / raw)
  To: 张家岭; +Cc: Yocto-mailing-list


[-- Attachment #1.1: Type: text/plain, Size: 356 bytes --]

On 12 Jun 2023, at 10:36, 张家岭 <zhangjialing@loongson.cn> wrote:
>
> Hi Ross:
>
>     Thank you , I can edit this layer now , How can I show  this layer in http://layers.openembedded.org/layerindex/branch/master/layers/

It’s there now, at least I can see it.

[cid:76b32aeb-b2a5-45af-abff-382eac2a571b@eurprd08.prod.outlook.com]


Ross

[-- Attachment #1.2: Type: text/html, Size: 914 bytes --]

[-- Attachment #2: Screenshot 2023-06-12 at 11.40.01.png --]
[-- Type: image/png, Size: 14609 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [yocto] Submit a new layer meta-loongarch to the layer index
  2023-06-12 10:40               ` Ross Burton
@ 2023-06-12 11:27                 ` 张家岭
  0 siblings, 0 replies; 11+ messages in thread
From: 张家岭 @ 2023-06-12 11:27 UTC (permalink / raw)
  To: Ross Burton; +Cc: Yocto-mailing-list

[-- Attachment #1: Type: text/plain, Size: 413 bytes --]

Hi Ross:

     Thank you , I can see it now.

Cheers,
JiaLing Zhang

在 2023/6/12 18:40, Ross Burton 写道:
> On 12 Jun 2023, at 10:36, 张家岭 <zhangjialing@loongson.cn> wrote:
> >
> > Hi Ross:
> >
> >     Thank you , I can edit this layer now , How can I show  this 
> layer in http://layers.openembedded.org/layerindex/branch/master/layers/
>
> It’s there now, at least I can see it.
>
>
>
> Ross

[-- Attachment #2.1: Type: text/html, Size: 1710 bytes --]

[-- Attachment #2.2: Screenshot 2023-06-12 at 11.40.01.png --]
[-- Type: image/png, Size: 14609 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-06-12 11:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-08  7:21 Submit a new layer meta-loongarch to the layer index 张家岭
2023-06-08 10:10 ` [yocto] " Ross Burton
2023-06-08 10:29   ` 张家岭
2023-06-09  3:04   ` 张家岭
2023-06-09 11:33     ` Ross Burton
2023-06-12  2:04       ` 张家岭
2023-06-12  6:39         ` 张家岭
2023-06-12  9:24           ` Ross Burton
2023-06-12  9:36             ` 张家岭
2023-06-12 10:40               ` Ross Burton
2023-06-12 11:27                 ` 张家岭

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).