example continue integration config for Github Workflows

Github workflows are a fairly popular & free way to run continuous integration. This is what I have come up with for installing with pnpm on ci. I am curious if there is a better way. E.g. something that takes advantage of caching or an action to setup pnpm.
name: Node.js CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [8.x, 10.x, 12.x]

    steps:
    - uses: actions/checkout@v2
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    # this line here feels a bit hacky
    - run: npm i -g pnpm
    - run: pnpm install
    - run: pnpm test

check this: https://github.com/pnpm/action-setup
cc @KSXGitHub

Thank you! I still think its worthwhile to add this to the website. Especially since its actually part of the pnpm organization, but feel free to close this issue since I am unblocked

@zkochan I'm here also looking for instructions on how to use actions/cache with pnpm.
I'm a Windows and macOS user so I don't know where the pnpm store exists on Linux, and I didn't find it in documentations.

@yume-chan Add ~/.pnpm-store/v3 to your cache. Don't add node_modules.

@KSXGitHub Thank you! I know I can't cache node_modules, so I'm asking for pnpm store path.

Since pnpm/action-setup has a post run script to prune the store, actions/cache should run after pnpm/action-setup.
Turns out actions/cache also uses post run script to save file.
From my test, GitHub Actions run post run scripts in reverse order, so one should declare actions/cache in front of pnpm/action-setup.
Here is my workflow file:

jobs:
  build:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [14.x]

    steps:
    - uses: actions/checkout@v2

    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}

    - name: Cache PNPM store
      uses: actions/cache@v2
      with:
        path: |
          ~/.pnpm-store/v3
        key: ${{ runner.os }}-pnpm

    - name: Setup PNPM
      uses<EMAIL_ADDRESS>      with:
        version: latest
        run_install: true

    - run: pnpm run build --if-present
    - run: pnpm test

Also note that because the store has been pruned, actions/cache can use a fixed cache key.

Also note that because the store has been pruned

what implies that the store has been pruned @yume-chan?

@andykais pnpm/action-setup has a post script that execute pnpm store prune.

The subject matter here is sufficiently documented on the Continuous Integration documentation page. This issue can likely be closed.


Removing compats.octet breaks pysnmp and should be denoted with proper SEMVER

This change breaks pysnmp.  I will be filing an issue in their repo as well (as mostly this is an issue of dependency management) but I think that the versioning should have reved to a major release based on the semver spec.
Example error in question when updating to 0.6.1 from 0.6.0:
from pysnmp.hlapi import ObjectIdentity, ObjectType, UdpTransportTarget, UsmUserData
ModuleNotFoundError: No module named 'pyasn1.compat.octets'

Closing as duplicate of https://github.com/pyasn1/pyasn1/issues/76


[Ubuntu] Manual steps require to work crc on a ubuntu box (18.04 and higher)

INFO Loading bundle: crc_libvirt_4.1.11.crcbundle ...
INFO Extracting bundle: crc_libvirt_4.1.11.crcbundle ...
INFO Creating VM ...
INFO Verifying validity of the cluster certificates ...
ERRO Error occurred: Failed internal dns query: Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)

@DRAKUN which platform are you using can you provide some details around it?

@praveenkumar Could the reason be blocked access to <IP_ADDRESS> DNS?

I’m working on Ubuntu 18

I have the same issue #547

@DRAKUN @nunodio Looks like ubuntu depend on systemd-resolv by default instead of NetworkManager I am going to install a fresh ubuntu machine and try to capture what all changes from network side it need to make crc work and will put it here and also part of docs.

I delete all my old configuration , in resolve.conf in /etc/hosts

@praveenkumar  I use Fedora 30.
@DRAKUN I found a possible solution for this issue.

Make sure the crc Virtual machine is deleted. Just execute crc delete
Configure the DNS Servers manually and add the nameserver <IP_ADDRESS> to the list.
Make sure the DNS server <IP_ADDRESS> is in /etc/resolv.conf.
2.1. If the file /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf  and /etc/NetworkManager/dnsmasq.d/crc.conf already exists, if you execute host -R 3 foo.apps-crc.testing you should get the Code Ready Virtual Machine IP.
Run crc start to initiate the code ready again.

Please let me know if this works for you.

@praveenkumar maybe we should also put some effort into using the container DNS solution, as that would simplify our general setup, plus allow to use with systemd-resolv with likely a simple change (adding a nameserver). however, the current setup can be a fallback ?

work well

@DRAKUN Thanks for confirming. I am reopening and tagging it as doc issue.

@praveenkumar I had to add an additional Domains line to the /etc/systemd/resolved.conf to get it to work for me. Else it was sending DNS queries to my local link DNS servers from DHCP.
[Resolve]
DNS=<IP_ADDRESS>
Domains=apps-crc.testing

systemd-resolve --status
Global
         DNS Servers: <IP_ADDRESS>
          DNS Domain: apps-crc.testing

While these instructions look plausible, I have been unable to reproduce the solution on Ubuntu 18.04.3 LTS and still run into the initial errors, i.e.
Temporary Error: ssh command error:
command : host -R 3 foo.apps-crc.testing
err     : exit status 1
output  : Host foo.apps-crc.testing not found: 3(NXDOMAIN)
 :

The commands I have executed are approximately as follows:
sudo cp crc /usr/local/bin/
crc version

# NetworkManager should be installed
sudo apt install -y dnsmasq libvirt-daemon libvirt-daemon-system net-tools network-manager qemu-kvm

sudo addgroup libvirtd
sudo usermod -aG libvirtd $(whoami)
newgrp libvirtd
crc config set skip-check-user-in-libvirt-group true

crc setup

sudo vim /etc/systemd/resolved.conf
[Resolve]
DNS=<IP_ADDRESS>

sudo vim /etc/dnsmasq.conf
Set listen-address=<IP_ADDRESS>

sudo vim /etc/default/dnsmasq
Uncomment IGNORE_RESOLVCONF=yes

sudo vim /etc/dnsmasq.d/crc.conf
server=/crc.testing/<IP_ADDRESS>
address=/apps-crc.testing/<IP_ADDRESS>

sudo systemctl restart systemd-resolved
sudo systemctl restart dnsmasq

sudo netstat -ntpl
dig foo.apps-crc.testing

crc config set skip-check-network-manager-installed true
crc config set skip-check-network-manager-config true
crc config set skip-check-network-manager-running true
crc config set skip-check-crc-dnsmasq-file true

crc setup
crc start

Side note: The DNS configuration will destroy my internet connection. I have to modify /etc/resolv.conf if I want to restore internet. I have currently added
nameserver <IP_ADDRESS>
search *

to be able to write this report, but have also tried running CRC without restoring internet. My entire file reads:
nameserver <IP_ADDRESS>
options edns0
search apps-crc.testing

nameserver <IP_ADDRESS>
search *

I have tried using only the first two lines (which kills my internet connection), but that also did not work.
What is esp. confusing is that resolving the names seems to work - dig foo.apps-crc.testing returns
QUERY: 1, ANSWER: 1
[...]
foo.apps-crc.testing.	0	IN	A	<IP_ADDRESS>

Similarly:
$ host -R 3 foo.apps-crc.testing
foo.apps-crc.testing has address <IP_ADDRESS>

Let me dump a few configuration files:
cat /etc/dnsmasq.conf | grep listen-address
listen-address=<IP_ADDRESS>

cat /etc/default/dnsmasq yields:
DOMAIN_SUFFIX=``

ENABLED=1

CONFIG_DIR=/etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new

IGNORE_RESOLVCONF=yes

sudo vim /etc/systemd/resolved.conf yields:
[Resolve]
DNS=<IP_ADDRESS>
Domains=apps-crc.testing
FallbackDNS=<IP_ADDRESS>

Note: Without the FallbackDNS line it also doesn't work.
$ cat /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf
[main]
dns=dnsmasq

I'm not too familiar with DNS resolution and it might be obvious why I'm running into errors, but I have not been able to pinpoint my issue. Does anyone have ideas what I should try?
Thank you very much in advance.
PS:
I just noticed host -R 3 foo.apps-crc.testing now gives an NXDOMAIN error as well, but that must have happened while debugging - it has certainly worked before as stated before and still crc start did not work. It seems a bit finicky, not sure what I'm doing wrong.

If all other non CRC DNS requests are not working any more after having followed the workaround as described by @praveenkumar, you could try the following which worked in my case:
Add your local DNS server to the /etc/NetworkManager/dnsmasq.d/crc.conf
server=/#/<IP_ADDRESS>
Where '#' stands for every domain and <IP_ADDRESS> is the address of the DNS server of your choice. I could not find '#' as a domain argument in the manual, but it actually does its job for me.
At the end the config file /etc/NetworkManager/dnsmasq.d/crc.conf should look like:
server=/apps-crc.testing/<IP_ADDRESS>
server=/crc.testing/<IP_ADDRESS>
server=/#/<IP_ADDRESS>

This could also solve your problem @k0105, but you should definitely revert back your configuration files to the state described by @praveenkumar and possibly use @chriscarpenter12 'Domains' entry in the /etc/systemd/resolved.conf
Skip dnsmasq.d/crc.conf file check at crc start by setting the appropriate config:
crc config set skip-check-crc-dnsmasq-file true

I tried to install CRC on Ubuntu/Debian, I am running into all kind of issues. Is there something that can be done please

@k0105 In a recent update of crc they moved the dns for crc.testing into the cluster itself now so you need to update your dnsmasq entry like @flozzone described.
If you're running dnsmasq locally then there's no need for the NetworkManager dnsmasq config. Just used the dnsmasq config. Do not modify the /etc/resolv.conf. Let Ubuntu continue to dynamically manage dns. So you can resolve names when you switch networks.
Delete /etc/NetworkManager/dnsmasq.d/crc.conf since your running dnsmasq.
Here's my configs:
/etc/dnsmasq.d/crc.conf
server=/crc.testing/<IP_ADDRESS>
server=/apps-crc.testing/<IP_ADDRESS>

/etc/systemd/resolved.conf
[Resolve]
#DNS=
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
#DNSStubListener=yes
DNS=<IP_ADDRESS>
Domains=apps-crc.testing crc.testing

Restart dnsmasq, NetworkManager (once you remove that un-needed config) and systemd resolve.
sudo systemctl restart dnsmasq
sudo systemctl restart NetworkManager
sudo systemctl restart systemd-resolved

And check the output of systemd-resolve --status
Global
         DNS Servers: <IP_ADDRESS>
          DNS Domain: apps-crc.testing
                      crc.testing

Validate your crc config skips
crc config view
- skip-check-crc-dnsmasq-file           : true
- skip-check-network-manager-config     : true
- skip-check-network-manager-installed  : true
- skip-check-network-manager-running    : true

Turn up the cluster crc start. Then validate dns is able to resolve. Note the only thing I think running under the crc.testing domain is api.crc.testing
dig +short api.crc.testing
<IP_ADDRESS>

dig +short apps-crc.testing
<IP_ADDRESS>

Hope this helps some.

I found a solution a lot easier: disable systemd-resolved and let NetworkManager & dnsmasq do the job. Details see https://labs.consol.de/devops/linux/2019/11/29/codeready-containers-on-ubuntu.html.  Ans comments and corrections appreciated.

@makuhama that's the solution i use too. Works like a charm.

We still wonder why people have systemd-resolved running, as according to
the documentation around Ubuntu desktop this should not be the case :-/
Can you both share which versions of Ubuntu you are running?
On Mon, Dec 2, 2019 at 9:36 PM Tristan Rivoallan<EMAIL_ADDRESS>wrote:

@makuhama https://github.com/makuhama that's the solution i use too.
Works like a charm.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/code-ready/crc/issues/549?email_source=notifications&email_token=AAAAOZSJS5SOKINSOZY4O73QWUFNVA5CNFSM4IUCAL7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTQIOA#issuecomment-560399416,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAOZQHIK5BT6AD5QWKR7DQWUFNVANCNFSM4IUCAL7A
.

--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]

@gbraad
➜ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 19.10
Release:	19.10
Codename:	eoan

@gbraad
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic

These are both installed as desktop installations? (please edit message
when possible)
On Mon, Dec 2, 2019 at 10:37 PM Chris Carpenter<EMAIL_ADDRESS>wrote:

@gbraad https://github.com/gbraad
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/code-ready/crc/issues/549?email_source=notifications&email_token=AAAAOZX6BB523H3EYEIXWC3QWUMSDA5CNFSM4IUCAL7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFTWDGY#issuecomment-560423323,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAOZWTQSFV3THBXZBZN3LQWUMSDANCNFSM4IUCAL7A
.

--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic

Mine is a Xubuntu desktop installation and I also have dnsmasq and resolved running per default.

We never considered using the derivatives, so this could be one of the
discrepancies. Good to know!
On Tue, Dec 3, 2019 at 3:43 PM flozzone<EMAIL_ADDRESS>wrote:

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic
Mine is a Xubuntu desktop installation and I also have dnsmasq and
resolved running per default.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/code-ready/crc/issues/549?email_source=notifications&email_token=AAAAOZRVF3CZFWNMZRYHVX3QWYE33A5CNFSM4IUCAL7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFYNB7Q#issuecomment-561041662,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAOZR26ROPZANNX4FAZHTQWYE33ANCNFSM4IUCAL7A
.

--
Gerard Braad | http://gbraad.nl
[ Doing Open Source Matters ]

Linking related comment:
https://github.com/code-ready/crc/issues/917#issuecomment-573460297
My cheat sheet - works for me under Ubuntu 19.10
sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system network-manager dnsmasq
sudo usermod -aG libvirt $(whoami)

# reboot to groups change takes effect
reboot

# check whether virt is working, I have IOMMU warning but works
virt-host-validate

cat << EOF | sudo tee /etc/default/dnsmasq > /dev/null
DOMAIN_SUFFIX=``
ENABLED=1
CONFIG_DIR=/etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new
IGNORE_RESOLVCONF=yes
EOF

cat << EOF | sudo tee /etc/dnsmasq.d/crc.conf > /dev/null
server=/crc.testing/<IP_ADDRESS>
address=/apps-crc.testing/<IP_ADDRESS>
EOF

cat << EOF | sudo tee /etc/systemd/resolved.conf > /dev/null
[Resolve]
DNS=<IP_ADDRESS>
Domains=apps-crc.testing
EOF

sudo systemctl restart systemd-resolved
sudo systemctl restart dnsmasq

mkdir -p ~/tmp && cd ~/tmp && curl -LO https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz && tar -Jxvf crc-linux-amd64.tar.xz && mv crc-linux*/crc ~/bin/ && rm -rf ~/tmp

Download pull secret from:
https://cloud.redhat.com/openshift/install/crc/installer-provisioned
and story it under ~/.crc-pull-secret

crc setup

# default 8192 leads to some OutOfMemory for some pods
# debug prints a lot, but allows to react if something is wrong....
crc start -m 10240 -p ~/.crc-pull-secret --log-level debug

# obtain credentials and then connect to Web console
crc console --credentials
crc console

# use correct oc client
eval   $(crc oc-env)

# use kubeconfig provided and bare kubectl
[ -e $HOME/.crc/machines/crc/kubeconfig ] && echo 'export  KUBECONFIG=$HOME/.kube/config:$HOME/.crc/machines/crc/kubeconfig' >> ~/.bashrc

bash
kubectl config use-context admin
kubectl get po --all-namespaces

Hello,
I had the bug https://github.com/code-ready/crc/issues/1185, and applied above steps 1 to 10 mentioned by @praveenkumar and additional step mentioned by @chriscarpenter12, and I made CRC working on my Ubuntu 18.04, Thanks so much Guys! Will explore more now on setting up the applications and all....

feedback is much appreciated! I would still like to investigate how to automate this properly.

Same issue here and lots more. After trying to install CRC on ubuntu 18.04 after rebooting I internet connection is broken. So I must and nameserver <IP_ADDRESS> to /etc/resolv.conf for restoring it. In this several solutions and what's works? I tried this but it doesn't help: https://github.com/code-ready/crc/issues/549#issuecomment-529379181

I was testing crc on latest Ubunu and hit #1185.
lsb_release -a
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename: focal

@praveenkumar steps and additional from @chriscarpenter12 solved the problem for me.

So? Is there any progress in this issue? Is there any way to launch CRC on ubuntu with systemd-resolved?

I was able to run crc on ubuntu 20.04 after follow this comment https://github.com/code-ready/crc/issues/549#issuecomment-529379181:
And add this content bellow in resolv.conf.d/tail (I don't know why, it was done after several (hours) attempts editing different files):
cat /etc/resolvconf/resolv.conf.d/tail
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>

If I don't add this above ^  I'm not able to have internet connection and/or dig apps-crc.testing
returns ANSWER: 0
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04

I can login via oc but can't login via browser.
curl -k https://api.crc.testing:6443
{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {

  },
  "status": "Failure",
  "message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",
  "reason": "Forbidden",
  "details": {

  },
  "code": 403

This is kind of an unsettling solution, but I did the following to get crc working on ubuntu 20.04 (pop_os):

Disable systemd-networkd and enable network manager by following these instructions:  https://www.configserverfirewall.com/ubuntu-linux/ubuntu-network-manager/
Deleted /etc/resolve.conf and restarted network manager per this link: https://labs.consol.de/de/devops/linux/2019/11/29/codeready-containers-on-ubuntu.html

Now CRC starts without a hitch.

Hi guys, I've followed steps from here: https://askubuntu.com/a/1031896 and worked perfectly fine. I think is a much simpler solution compared to other ones posted here.

preflight checks asking for NetworkManager are now removed for Ubuntu. The code to distinguish distributions is present now.

In other words, a distribution specifc check/fix should be implemented.

This is kind of an unsettling solution, but I did the following to get crc working on ubuntu 20.04 (pop_os):
1. Disable systemd-networkd and enable network manager by following these instructions:  https://www.configserverfirewall.com/ubuntu-linux/ubuntu-network-manager/

2. Deleted /etc/resolve.conf and restarted network manager per this link: https://labs.consol.de/de/devops/linux/2019/11/29/codeready-containers-on-ubuntu.html

Now CRC starts without a hitch.

For networking configuration on ubuntu, these steps should work https://github.com/code-ready/crc/issues/1572#issuecomment-728911700

The crc is working here on ubuntu 20.04 (installed again and system updated)  I just followed the official docs:

We improved the support of Ubuntu in latest version of CRC. Ubuntu Desktop works out-of-the-box now.

Afternoon all!, related to Ubuntu, I'm using latest pop_os and having an issue with crc setup steps.
Extracted to /usr/local/bin for global use, but running crc setup from anywhere results in the following:
@pop-os:/usr/local/bin$ crc setup INFO Checking if podman remote executable is cached  INFO Checking if goodhosts executable is cached    INFO Checking if CRC bundle is extracted in '$HOME/.crc'  INFO Checking minimum RAM requirements             INFO Checking if running as non-root               INFO Checking if Virtualization is enabled         INFO Checking if KVM is enabled                    INFO Checking if libvirt is installed              INFO Checking if user is part of libvirt group     INFO Checking if libvirt daemon is running         INFO Checking if a supported libvirt version is installed  INFO Checking if crc-driver-libvirt is installed   INFO Checking if systemd-networkd is running       INFO Checking if NetworkManager is installed       INFO Checking if NetworkManager service is running  INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists  INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists  INFO Checking if libvirt 'crc' network is available  INFO Setting up libvirt 'crc' network              Failed to create libvirt 'crc' network

@MrSchoolcraft can you provide error logs?

@MrSchoolcraft can you provide error logs?

Sure thing, I hope this is what you're asking for:
pop-os:~/crc-linux-1.20.0-amd64$ crc setup --log-level debug
DEBU CodeReady Containers version: 1.20.0+ef3f80d
DEBU OpenShift version: 4.6.6 (embedded in executable)
DEBU Couldn't set key PRIVACY_POLICY_URL, no corresponding struct field found
DEBU Couldn't set key VERSION_CODENAME, no corresponding struct field found
DEBU Couldn't set key UBUNTU_CODENAME, no corresponding struct field found
DEBU Couldn't set key LOGO, no corresponding struct field found
INFO Checking if podman remote executable is cached
DEBU Currently podman remote is not supported
INFO Checking if goodhosts executable is cached
DEBU goodhost executable already cached
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking minimum RAM requirements
DEBU Total memory of system is<PHONE_NUMBER>2 bytes
INFO Checking if running as non-root
INFO Checking if Virtualization is enabled
DEBU Checking if the vmx/svm flags are present in /proc/cpuinfo
DEBU CPU virtualization flags are good
INFO Checking if KVM is enabled
DEBU Checking if /dev/kvm exists
DEBU /dev/kvm was found
INFO Checking if libvirt is installed
DEBU Checking if 'virsh' is available
DEBU 'virsh' was found in /usr/bin/virsh
DEBU Checking 'virsh capabilities' for libvirtd/qemu availability
DEBU Running 'virsh capabilities'
DEBU Found x86_64 hypervisor with 'hvm' capabilities
INFO Checking if user is part of libvirt group
DEBU Checking if current user is part of the libvirt group
DEBU Running '/usr/bin/groups sean'
DEBU Current user is already in the libvirt group
INFO Checking if libvirt daemon is running
DEBU Checking if libvirtd service is running
DEBU Running 'systemctl status virtqemud.socket'
DEBU Command failed: exit status 4
DEBU stdout:
DEBU stderr: Unit virtqemud.socket could not be found.
DEBU virtqemud.socket is neither running nor listening
DEBU Running 'systemctl status libvirtd.socket'
DEBU libvirtd.socket is running
INFO Checking if a supported libvirt version is installed
DEBU Checking if libvirt version is >=3.4.0
DEBU Running 'virsh -v'
INFO Checking if crc-driver-libvirt is installed
DEBU Checking if crc-driver-libvirt is installed
DEBU Running '/home/sean/.crc/bin/crc-driver-libvirt version'
DEBU Found crc-driver-libvirt version 0.12.13
DEBU crc-driver-libvirt is already installed
INFO Checking if systemd-networkd is running
DEBU Checking if systemd-networkd.service is running
DEBU Running 'systemctl status systemd-networkd.service'
DEBU Command failed: exit status 3
DEBU stdout: * systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
Active: inactive (dead)
TriggeredBy: * systemd-networkd.socket
Docs: man:systemd-networkd.service(8)
DEBU stderr:
DEBU systemd-networkd.service is not running
INFO Checking if NetworkManager is installed
DEBU Checking if 'nmcli' is available
DEBU 'nmcli' was found in /usr/bin/nmcli
INFO Checking if NetworkManager service is running
DEBU Checking if NetworkManager.service is running
DEBU Running 'systemctl status NetworkManager.service'
DEBU NetworkManager.service is already running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
DEBU Checking NetworkManager configuration
DEBU NetworkManager configuration is good
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
DEBU Checking dnsmasq configuration
DEBU dnsmasq configuration is good
INFO Checking if libvirt 'crc' network is available
DEBU Checking if libvirt 'crc' network exists
DEBU Running 'virsh --connect qemu:///system net-info crc'
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
DEBU Libvirt network crc not found
INFO Setting up libvirt 'crc' network
DEBU Creating libvirt 'crc' network
DEBU Running 'virsh --connect qemu:///system net-destroy crc'
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
DEBU Running 'virsh --connect qemu:///system net-undefine crc'
DEBU Command failed: exit status 1
DEBU stdout:
DEBU stderr: error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
DEBU exit status 1 : error: failed to connect to the hypervisor
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Permission denied
Failed to create libvirt 'crc' network
Note: I have not tried the above fixes for dnsmasq etc from either https://github.com/code-ready/crc/issues/549#issuecomment-663276406 or https://github.com/code-ready/crc/issues/549#issuecomment-695262205
Are these steps still necessary or should it be more 'out of the box' with pop_os (Ubuntu 20.04)?

@MrSchoolcraft can you provide error logs?

I was able to figure it out as I needed to add my user to the libvert group before I was able to run crc as my user. Thank you for the log help mention as it led me down the trail of the libvirt-sock: Permission denied issue. Thanks again!

however a crc start now nets me (crc setup was successful)

crc start
INFO Checking if podman remote executable is cached
INFO Checking if goodhosts executable is cached
INFO Checking minimum RAM requirements
INFO Checking if running as non-root
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking if systemd-networkd is running
INFO Checking if NetworkManager is installed
INFO Checking if NetworkManager service is running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
INFO Checking if libvirt 'crc' network is available
INFO Checking if libvirt 'crc' network is active
INFO Loading bundle: crc_libvirt_4.6.6.crcbundle ...
INFO Verifying bundle crc_libvirt_4.6.6.crcbundle ...
INFO Creating CodeReady Containers VM for OpenShift 4.6.6...
Error creating machine: Error creating the VM: Error creating machine: Error in driver during machine creation: virError(Code=1, Domain=10, Message='internal error: process exited while connecting to monitor: 2020-12-27T22:00:08.091376Z qemu-system-x86_64: -blockdev {"driver":"file","filename":"/home/XXX/.crc/cache/crc_libvirt_4.6.6/crc.qcow2","aio":"threads","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"}: Could not open '/home/XXX/.crc/cache/crc_libvirt_4.6.6/crc.qcow2': Permission denied')

@MrSchoolcraft I believe our preflight checks don't detect your distribution to be an Ubuntu variant. Can you post your /etc/os-release file here? Thanks.

@MrSchoolcraft I believe our preflight checks don't detect your distribution to be an Ubuntu variant. Can you post your /etc/os-release file here? Thanks.

@MrSchoolcraft I believe our preflight checks don't detect your distribution to be an Ubuntu variant. Can you post your /etc/os-release file here? Thanks.

Absolutely, glad to help
@pop-os:~$ cat /etc/os-release
NAME="Pop!_OS"
VERSION="20.10"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.10"
VERSION_ID="20.10"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=groovy
UBUNTU_CODENAME=groovy
LOGO=distributor-logo-pop-os
I hope this is helpful in allowing CRC to run in Pop_OS!
I use openshift daily at work, but want to explore 4.x with some Udemy classes on my new linux machine at home and this would save me from having to do it all with a VBox VM. Thank you for your help and dedication.

@MrSchoolcraft I believe our preflight checks don't detect your distribution to be an Ubuntu variant. Can you post your /etc/os-release file here? Thanks.

Absolutely, glad to help
@pop-os:~$ cat /etc/os-release
NAME="Pop!_OS"
VERSION="20.10"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.10"
VERSION_ID="20.10"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=groovy
UBUNTU_CODENAME=groovy
LOGO=distributor-logo-pop-os
I hope this is helpful in allowing CRC to run in Pop_OS!
I use openshift daily at work, but want to explore 4.x with some Udemy classes on my new linux machine at home and this would save me from having to do it all with a VBox VM. Thank you for your help and dedication.

no update from the latest stable pull as of yet.

no update from the latest stable pull as of yet.

The commits around https://github.com/code-ready/crc/commit/ec3064772aa806a2e2125911b9832b355761c506 should fix configuration on Pop_OS, but there hasn't been a release yet with these commits.

The commits around https://github.com/code-ready/crc/commit/ec3064772aa806a2e2125911b9832b355761c506 should fix configuration on Pop_OS, but there hasn't been a release yet with these commits.

The commits around ec30647 should fix configuration on Pop_OS, but there hasn't been a release yet with these commits.

Thanks for the update, I had seen there were some code changes put in, I just missed that they had not been cut to a release yet. Have a great day.

The commits around ec30647 should fix configuration on Pop_OS, but there hasn't been a release yet with these commits.

Thanks for the update, I had seen there were some code changes put in, I just missed that they had not been cut to a release yet. Have a great day.

Ubuntu support is in crc for a while now and this issue is very quiet. I believe it works for most of you now.
If you encounter a bug, please open an issue!

Ubuntu server is still problematic because it's using systemd-networkd, but we can open a more specific issue for it if needed.


[SQL] az sql vm show: Add configuration options to --expand flag

Description
This PR makes a small addition to the --expand flag.
The --expand flag previously only accepted * as an argument. With these changes, the --expand flag accepts the following: AutoBackupSettings, AutoPatchingSettings, KeyCredentialSettings, ServerConfiguratationsManagementSettings. The flag can also accept any combination of these arguments comma-separated.
Tests added accordingly.
Testing Guide

az sql vm show -g <Resource Group Name> -n <SQL VM Name> -expand <Settings>
History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

@yareyes

add to S176

2.11.0

It should go over here ->

Refers to: src/azure-cli/HISTORY.rst:6 in 42f5c09. [](commit_id = 42f5c09e91a860cf417fe3a54135bf9564499a2a, deletion_comment = False)

@Juliehzl thanks for reviewing this PR. This PR is actually specific to the SQL VM command module, not SQL. I believe the title should be [SQL VM].

@Juliehzl Zunli Hu FTE thanks for reviewing this PR. This PR is actually specific to the SQL VM command module, not SQL. I believe the title should be [SQL VM].

updated


Add metrics for CNI installations and readiness.

for https://github.com/istio/istio/issues/32437

@howardjohn Any more changes needed here?

cc @richardwxn

/cherry-pick release-1.11

@bianpengyuan: new pull request created: #34045

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/cherry-pick release-1.11

@bianpengyuan: new pull request created: #34089

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Remove unused delta log scheme from trace-projections

Original issue: https://charm.cs.illinois.edu/redmine/issues/417

Generally signaled by "if (deltaLog) {"  this is a totally unused feature which probably never worked correctly.
Remove it.

Original date: 2014-02-15 00:23:38

Implemented and pushed.  Awaiting code review.

Original date: 2015-11-11 04:52:02

~~https://charm.cs.illinois.edu/gerrit/84~~ https://github.com/UIUC-PPL/charm/commit/03fe04f41cdddada645ec21d1fb72abeb1a0e892


Analyse Memory Solving DT's and BC's using the Analysis App

This is my current line of work for the week; the major milestones are:

[ ] Successfully train both a DT and behavioural clone, do this with the most miniature possible model (n-layers, n-heads etc.).
[ ] Analyse these models with the app to the level of having some testable hypotheses for how they work.

Context:

Last week I got the LSTM model to solve the Memory MiniGrid task meaning we can "officially" generate circuits that use memory and therefore start doing analysis which involves looking at the context window (a minor goal for the agenda since this makes the work more analogous to LLMs and LLM interpretability).
Training a DT, I managed to get the model to learn to solve the task but it doesn't seem to exhibit RTG modulation (ie: our DT is a behavioral clone). I'm not super clear on why this is but think maybe getting a better sense for what's happening at a circuit level will help). At the very least it's definitely needed so I can come back to trying to make sure the RTG modulation forms.

In order to meet the milestones, I anticipate the following tasks/cards might need to be completed.
App changes

[x] Fix/update the app since it's been a while that I've used it
[x] Add a feature to enable you to select your model rather than have it automatically load (this has been bugging me for a while so I want to do it)

Training

[x] Determine if there are any bugs preventing the RTG modulating circuit from being generated (if so, fix/re-run)
[ ] Investigate whether sampling more data or training on an environment without a fixed starting point is more performant (training of LSTM details which might have cascading effects)

Interpretability Enhancements

[ ] Ensure we have a working attention map
[ ] Add the ability to check for particular head types
[ ] Other stuff?

Gpt4 take on rollout sampling:
Sampling demonstrations from a PPO model for training supervised models can be approached in a few different ways. The choice of sampling technique depends on the context and desired learning outcomes. Here are some considerations and techniques to help you decide:

Deterministic sampling: In this approach, the agent follows the learned policy strictly by choosing the action with the highest probability at each time step. Deterministic sampling may be useful if you want the supervised model to learn the exact behavior exhibited by the PPO model. However, this can result in overfitting and might not generalize well to new situations, since the supervised model will only observe a narrow set of action choices.

Random sampling (Stochastic sampling): In this approach, the agent samples actions from the learned policy distribution. This can provide a richer set of experiences for the supervised model to learn from, potentially leading to better generalization. However, it may also introduce more noise in the training data, as the PPO model could occasionally take suboptimal actions.

Temperature scaling: One way to balance deterministic and random sampling is to use temperature scaling, which adjusts the softmax temperature parameter when sampling actions. A higher temperature makes the action distribution more uniform (more random), while a lower temperature makes it more peaked around the highest-probability action (more deterministic). By tuning the temperature parameter, you can control the degree of exploration in the demonstrations.

Importance sampling: You can also consider using importance sampling to re-weight the demonstrations based on their quality. This involves estimating the expected return for each demonstration and using this information to prioritize higher-quality demonstrations for supervised learning.

Curriculum learning: Organize demonstrations into different levels of difficulty, and train the supervised model progressively, starting from easier tasks and gradually moving to more complex ones. This can help the model learn the necessary skills incrementally and may lead to better performance.

Combining expert demonstrations with self-generated data: You can also combine the demonstrations from the PPO model with additional self-generated data (e.g., from the supervised model's own interactions with the environment). This can help the supervised model learn from both the expert's policy and its own experiences, potentially improving generalization and robustness.

In conclusion, there is no one-size-fits-all answer to whether deterministic or random sampling is better for training supervised models using demonstrations from a PPO model. The best approach depends on your specific goals, the complexity of the task, and the desired balance between exploitation and exploration. Consider experimenting with different techniques and combinations to find the best approach for your specific problem.

Progress update:

Have implemented collect_demonstrations_runner to vary sampled trajectory quality. Not yet clear if this is counterfactually very important in enabling these models to train.
I'm doing some training runs varying hyperparameters for batch size, weight decay and will consider changing the optimizer possibly to see if this helps.
Other things that might make a big difference but hard to know without trying: the optimizer/scheduler both learning rate and weight decay may be a big deal, I'm no sure. Another is having layernorm which could be a big deal. Another is, I hate to say it, using gMLP's instead of MLPs (not currently implemented in transformerlens).

I'm a little worried I'm being too "gritty" here and really I should try to ask for help so I have put up a bounty on referring a tutor. Hopefully that will help.


Commands from Python devfile should be improved

/kind bug

Which area this bug is related to?

/area registry
What versions of software are you using?
Eclipse Che 7.42
Bug Summary
Describe the bug:
Commands from Python base devfile are failed.

The reason is that workingDir is not pointed to the project sample dir.
debugpy command uses env DEBUG_PORT which is not defined

To Reproduce:

Create a workspace form Python devfile
Try to execute any command

Expected behavior
Commands should be executed
Suggestion on how to fix the bug

add workingDir: ${PROJECT_SOURCE} to each command
set DEBUG_PORT env

add workingDir: ${PROJECT_SOURCE} to each command

already fixed in https://github.com/devfile/registry/pull/85

set DEBUG_PORT env

https://github.com/devfile/registry/pull/93

already fixed in https://github.com/devfile/registry/pull/85

pip-install-requirements command doesn't have workingDir https://github.com/devfile/registry/blob/main/stacks/python/devfile.yaml#L25


Expected response

I realize that response differs from what is in the Cloudinary docs.
This is the response that is returned when I use this package:
{
  fieldname: 'logoUrl',
  originalname: 'Screen Shot 2020-05-11 at 4.56.29 PM.png',
  encoding: '7bit',
  mimetype: 'image/png',
  path: 'https://res.cloudinary.com/dv9lwnsxc/image/upload/v152333339/veme/frrl9san8jhbzkuibu92jj3p.png',
  size: 74024,
  filename: 'folderName/frrl9san8ak0v1evjj3p'
}

Cloudinary docs states that the response should be like below:
{
  public_id: 'cr4mxeqx5zb8rlakpfkg',
  version:<PHONE_NUMBER>,
  signature: '63bfbca643baa9c86b7d2921d776628ac83a1b6e',
  width: 864,
  height: 576,
  format: 'jpg',
  resource_type: 'image',
  created_at: '2017-06-26T19:46:03Z',
  bytes: 120253,
  type: 'upload',
  url: 'http://res.cloudinary.com/demo/image/upload/v1571218330/cr4mxeqx5zb8rlakpfkg.jpg',
  secure_url: 'https://res.cloudinary.com/demo/image/upload/v1571218330/cr4mxeqx5zb8rlakpfkg.jpg'
}

here's my code
const multer = require('multer')
const cloudinary = require('cloudinary').v2
const { CloudinaryStorage } = require('multer-storage-cloudinary')

cloudinary.config({
  cloud_name: process.env.CLOUD_NAME,
  api_key: process.env.CLOUD_API_KEY,
  api_secret: process.env.CLOUD_API_SECRET
})

const storage = new CloudinaryStorage({
  cloudinary: cloudinary,
  params: {
    folder: process.env.CLOUD_FOLDER,
    allowedFormats: ['jpg', 'png', 'jpeg'],
    transformation: [{ width: 500, height: 500, crop: 'limit' }]
  }
})

const parser = multer({
  storage: storage
})

module.exports = parser

Were the fields renamed and some removed intentionally?

Yes, they were renamed and removed intentionally. The multer types define the File type that we use. The reason I did this was because I wanted to remain as close to the types defined for multer. However, I suppose we could also keep all the other properties from the response along with the multer file properties.

Understood, it makes sense especially path instead of url and secured_url. Either way your app will more than likely be over https so the url key value pair won't never be used. Thanks for clarifying.


Version 2

Hello,
Is v2 still supported ?
Are recent fixes on master planned to be ported to v2 ?

Yes, it would be nice not to have to go to a fork or alternate branch for remove functionality.

@elgs @shurcooL as frequent contributors, what is your opinion on porting v2 to master and breaking backwards compatibility? Is that worth it for the simplification, or would it just break a ton of users? Right now v2 is invisible and not helping folks as much as it could, and it's a pain to maintain separate versions.

I myself don't mind breaking the compatibilities. The only thing I need is when a job is created, I need a handle/reference to that job so that a later time, I can use that handle/reference to do something to that job, mostly stop it and remove it.

I didn't know v2 even existed.
If it were up to me, I would do it. Those who care about backwards compatibility and things not breaking unexpectedly will be vendoring this library anyway, so they won't be negatively affected (and if they're not vendoring and feel unhappy, they should be vendoring).
For everyone else, they'll get exposed to the latest and most optimal library API by default. And it's less effort and maintenance for you.
Those are my generic thoughts. I haven't looked at the differences in the API, so I can't comment on that.

master is more active than v2, and has some important fix. Hard to tell which branch is better.
I agree with shurcool. I would suggest make v1 a release branch (only important bug fix), and make master as the developing branch(new feature + all bug fix).

+1, also regular tagged releases would be awesome, glide default to v1 from 2014 :shipit:

@robfig do you need any help with porting the v2 stuff on master? I need the remove job feature from v2 but dont want to use non-master branch for a brand new projet. I can help with porting bits & pieces. Its gonna break the existing users, but I think thats fair.

Hi @robfig just chiming in -- I'd like to be able to remove a job (in v2 only), but I also need support for Location -- since testing is damn near impossible for other time zones without being able to run it in a fixed time.Location.  Is there another branch that supports both of these features somewhere?

Does this work help?
I also wanted the ability to remove registered schedule so I forked @robfig's original repository, created new branch from latest master (9585fd5), and applied most of 2b666ea6.
If this helps most of you guys and reasonably comply with what @elgs and @shurcooL expressed, I'd create a pull request so that my change can be part of robfig's original repo and be maintained.
Below are what I did in my repo:

Forked and created topic branch based on 9585fd5.
Applied most of 2b666ea6. Since this focused on removing jobs, some are not applied.

The changes to entrySnapshot's interface and related parts are not included.
The ability to retrieve Entry by ID and to check the validity of returned Entry are not included.

Tests are also ported with a bit of additions, and the result is available at travis ci.

I did not change link to travis ci on README.mkdn so be careful. Clicking on that link still leads to the result page of original repo.

Checked v2's later commits than 2b666ea6 to see if any relevant change is missing.

Lastly I appreciate @robfig for creating this package. I especially like how cron.Parse works.

Thanks @oklahomer -- also very much appreciate @robfig's work here.  It looks like a solid little utility.  I ended up browsing the fork network and grabbed this derivation as it included the removal, as well as time.Location and added support for named jobs, which is desired for me.  Don't want to see this repo splintered, but as always...have to move fast. Thanks.

Have to agree - been waiting to start a little project of mine, thought I'd wait until delete jobs was merged in from v2. Backwards compatibility could be sacrificed if using semantic versioning (its looking like the official vendor functionality will support this in future).
I think there are enough new features and stability fixes as to make breaking compatibility worthwhile to existing users IMHO

Would be nice to have an additional interface cron methods like Suspend and Resume by EntryID.
Currently I need to save credentials of running job, remove it, and add it again with another Schedule...
Any ideas?

@robfig please give us a v2 release.

There is now a v3 branch which works with Go Modules, which has all the fixes and updates from both master and v2 branch.
I'm still tracking down a couple last bugs and one more upgrade in functionality before calling it done. Feedback is welcome. Thanks


Is it possible to create some clear instructions on how to use the installation commands on Mac OS X please?

For the beginners :) it would be great. Do the same specified Ubuntu commands work in Mac's terminal? Should you execute the commands after cd-ing to the Jekyll site's root directory?

I am receiving the following error:
An error occurred while installing magickwand (0.2.0), and Bundler cannot
continue.
Make sure that `gem install magickwand -v '0.2.0' --source
'https://rubygems.org/'` succeeds before bundling.

I am receiving the following error:
An error occurred while installing magickwand (0.2.0), and Bundler cannot
continue.
Make sure that `gem install magickwand -v '0.2.0' --source
'https://rubygems.org/'` succeeds before bundling.

If I remove that gem magickwand from my gemfile, then I receive the following error when trying to load a gallery via galleries: the-name-of-a-gallery at the top of a page:
ERROR /thumbs/front_' not found.`

If I remove that gem magickwand from my gemfile, then I receive the following error when trying to load a gallery via galleries: the-name-of-a-gallery at the top of a page:
ERROR /thumbs/front_' not found.`


Add CONTRIBUTING.md file?

Happened to be discussing contributing with @illusional for his project which made me wonder if this project (and biomojify) should have a CONTRIBUTING.md file too to make it easier for people to know how to contribute?
Some links with info:
Wikipedia: https://en.wikipedia.org/wiki/Contributing_guidelines
Galaxy: https://github.com/nsoranzo/galaxy/blob/master/CONTRIBUTING.md
MultiQC: https://github.com/ewels/MultiQC/blob/master/.github/CONTRIBUTING.md
(is it just me or is it strange that GitHub provides a template for Code of Conduct (which is great) but no template for Contributing?)

+1 to a contributing guide! It's it's a persistent item on my todo list that hasn't been actioned. But definitely should have by now.

+1 to a contributing guide! It's it's a persistent item on my todo list that hasn't been actioned. But definitely should have by now.

Hey cool 😄 and your issue is exactly why I'm wondering - wouldn't it make it easier to do this if there was a Github template for CONTRIBUTING.md that all GitHub devs could then add and modify as needed? (why reinvent the wheel across SO many Github projects?)


Fix for issue #29

This seems to resolve the issue I was having. When you swipe fast there can be more children on screen than were being accounted for on line 343. I added an offset that should now take this into account.

cheers, it looks good to me so i merged it for now.


Support to serialize Maps

Currently it is not possible to serialize a Map field.
Possibly the objectCreators could return either a Serializable or a Map. Alternatively thinks about introducing mapCreators.

relased in v1.1


Task.doOnFinish operator

Add a doOnFinish operator, just like the one in Scalaz Task, meant for cleaning up resources.

Released in 2.0-RC5


inputFormat prop not working

<datepicker v-model="form.date_of_birth" input-format="yyyy-MM-dd" />
<datepicker v-model="form.date_of_birth" inputFormat="yyyy-MM-dd" />
The component is not returning the specified input format, currently, when a date is picked, the v-model value returns like 2021-02-26T23:00:00.000Z and the value of the input likeSat Feb 27 2021 00:00:00 GMT+0100 (West Africa Standard Time)
Also, Is there a prop to set a display format for the value input and a different format for value of v-mode?

This issue is not from this plugin but my code, I was using datepicker as a custom input v-bind to vee-validate and vee-validate auto mutates the value of datepicker.
My workaround was to remove the v-bind="field" from the datepicker and then use  two different v-model and used computed to update the value of vee-validate's v-model when the value of datepicker's v-model changes.

can u please explain what was the issue ,I am facing the same issue

@victorybiz  Can you please show some code to understand how you handle this problem within your workaround?

@marcoshmendes here's how:
<script lang="ts" setup>
....
const datepickerDate= ref<Date | undefined>();
const date= computed<Date | undefined>(() => datepickerDate.value);
</script>
<template>
...
<Field
    v-slot="{ meta, field, value }"
    v-model="date"
    name="date">
       <Datepicker v-model="datepickerDate" />
</Field>
</template>


Getting user & trigger_id from an action POST

In the straight Slack API, in response to a user clicking a button and handling that action on a view, you'd get a payload object back from Slack with the user and trigger_id
However with Bolt, I don't see how I can get this when responding to actions.  Here's my code:
// there's no payload object in a bolt action request, so how can I get trigger_id here for handling this action so I can open a Modal next??

app.action('add_user_profile', async ({ack, say}) => {
  await ack();
  await showAddCrafter(user, trigger_id)
});

Above I'm handing that same button action, but all you give as far as I can tell from the docs is ack and say
I need the trigger_id and user because then I call showAddCrafter where I perform a views.open where show them a modal window after they click that button to have them start entering data.  views.open needs a  trigger_id so how can I get that with Bolt whereas I got it from the action payload in the past before using the Bolt Framework?

errr nevermind, it's like hunting for a needle in the haystack.  It's now in the body.


feat: import config metadata and import to projectSettings

tied to https://github.com/digidem/comapeo-mobile/issues/527
it uses an unpublished version of mapeo-schema with configName and configVersion in projectSettings

Let me know when I should take a look at this (it's currently a draft). Happy to review whenever!

Let me know when I should take a look at this (it's currently a draft). Happy to review whenever!

I think there's some doubts I should clear out before moving forward (see stuff asked here -> https://github.com/digidem/comapeo-mobile/issues/527).
Most of the work is done, just need to fix tests and type errors...

Lemme know when I should take a look at this.

I'm catching up after some time off. I'll plan to review this tomorrow or Wednesday.

Just a note for myself more than anything to say I did a quick review and all looks good.


Blinky code does not run after power reset

Hey guys,
I am creating a version of the blinky example for my MSP430FR6972. The code compiles and also executes after flashing it to the MCU using the BSL interface. However upon resetting the power of the MCU the blinky code does not run again, even when I try setting the program counter back to the start of ROM (0x004000).
For comparison I compiled the blinky example provided by Texas Instruments (C Code). It runs blinking my debug led. Furthermore, it restarts and runs successfully even after power reset.
Not sure were to look for trouble shooting so I thought maybe you could give me a hint. My blinky rust code is available here.
My workflow is the following

Create ELF binary using msp430-elf-gcc compiler
Use objcopy to flatten the ELF to a raw binary
Use the BSL to write the 48218 bytes to the ROM starting at 0x004000

To compare the to binaries I attached both the disassembly of the working C-Code example and my partially working Rust Blinky code. However, I cannot figure out why it is not able to properly reset upon power cycling. Seems like the official blinky code is starting at 0x004002.
c_code_disassembly.txt
rust_code_disassembly.txt

Okay I found the issue. The MCU contains a internal brown out protection that sets all outgoing pins to high-impedance by default. This must be cleared after reset from brownout (i.e. me pulling the plug) by clearing the PM5CTL0 register within the beginning of the main.
p.PMM.pm5ctl0.modify(|_,w| {unsafe {w.bits(0x00)}});

Hmm, I've never seen this before. The examples are tailored for msp430g2553, but I do include comments that apply to other variants. I think perhaps we should add some commented out code mentioning your code above in the blinky example (and other relevant examples)?
Also, I'm impressed a completely unoptimized Rust binary fits onto msp430 at all :D!

Oh quite the contrary. Its actually using maximum optimisation. I build the executable using
[profile.release]
opt-level = "s"
codegen-units = 1
lto = "fat"

I only inflate the binary to write it using my self-made BSL implementation. Since I didn't want to buy any additional hardware after it turned out that my Blackmagic probe could not program the MSP430 series.
Actually this brown-out locking seems quite useful to avoid drawing current from the GPIOs.

The MCU contains a internal brown out protection that sets all outgoing pins to high-impedance by default. This must be cleared after reset from brownout (i.e. me pulling the plug) by clearing the PM5CTL0 register within the beginning of the main.

Yes this has to be done for all FRAM based devices (msp430fr* I think). The reason is that (because of the memory technology used) the initial value of I/O registers is not defined, so you have to explicitly enable I/O once it's configured.

Thanks for that info! Is the register that must be cleared the same across FRAM devices?
My current plan is to put a comment in the examples indicating this line or similar is required for FRAM devices: p.PMM.pm5ctl0.modify(|_,w| {unsafe {w.bits(0x00)}});.
Unfortunately, with the provided DSLite files (from which SVDs are generated), I've found the naming of actual registers (or fields, in the case of PORT_1_2 peripheral) inconsistent between msp430 devices. PMM seems fine as a peripheral name, but I wonder if pm5ctl0 is a device-specific register name?

The PM5CTL0 is the control register for the Power Mode 5, which is common to all MSP430FR58xx, MSP430FR59xx and MSP430FR6xx device families. It is part of the Power Management Module PMM. (See TI Document SLAU367P for more information)


add all default templates

add all default templates

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

1.0.0
GitHub release

Your semantic-release bot :package::rocket:


implement Default in some struct

I have made the following structure implement Default trait

GraphResponse
Useful if you want to prepare variables from initialization time
GraphEditorState
The argument can be omitted when zoom is zero
PanZoom

Everything looks good, thanks! :smile:


[NetAppFiles] Update azure-mgmt-netapp version to 4.0.0

Description

Update azure-mgmt-netapp dependency to version 4.0.0 and additions from that version added.
Testing Guide

History Notes

[NetAppFiles] az netappfiles account ad add: Optional parameter added named --administrators
[NetAppFiles] az netappfiles pool create: Optional parameter added --cool-access
[NetAppFiles] az netappfiles volume create: Optional parameters added named --chown-mode, --cool-access, --coolness-period, --coolness-period
[NetAppFiles] az netappfiles volume backup restore-status: Command added to see backup restore status

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

NetAppFiles

@kairu-ms @jsntcy @jiasli @yonzhan does this need to be merged today to be part of milestone s189? or is it enough that it has been added to the milestone?

@hildurhodd Your PR is merged. It will be in the next version of CLI.


Fix clone url of INSTALL.md

Would you mind rebasing?
Also, all commits merged to master need to be signed: https://github.com/talaia-labs/rust-teos/blob/master/CONTRIBUTING.md#signing-commits

Closed via #73


How can i add a "add character" event

What is your question?
I dont know where i need to code to do the event, i mean, i downloaded the example custom event (opponent fade) but it doesnt work, in short, i dont know how to do it :c

Character change is already built in
Press 7 in a song
Go to events
the arrow
Then Character Change
Now once its done
In the 1st value put
0 for boyfriend
1 For dad
2 for gf
2nd Value
Char name


Implement other command line tools for compression

This is just a RFC.
Besides zip we could also implement zstd for compressing backups.
zstd is able to compress and decompress multi-threaded.
Maybe it is also useful to implement a variable (BACKUP_METHOD) for the various backup methods?
Setting BACKUP_METHOD to zip will use the "legacy" backup method. This should also be the default.
raw will store uncompressed backups (https://github.com/lloesche/valheim-server-docker/issues/349) and zstd will use zstd for compression of backups.
We could also add a variable called BACKUP_COMPRESSION_LEVEL, so it is possible to adjust the compression level?
 :)

So the idea behind using ZIP was that people can open the files on their Windows PCs by default. If it wasn't for that I'd likely just have created tarballs.
I think instead of adding more specific compression methods to the image I'd rather have people turn off compression (which they now can thanks to your patch) and then use the pre and post hooks to use whichever compression system they prefer.


Remove highlight

How to remove highlight on matched mentions?

not sure, what do you mean exactly... for removing the blue highlighting of mentions, you could just set their background color to transparent in CSS


ADR 101: Data companion pull API

Tracking issue for implementation of ADR 101 (#82), since it appears as though it is the better of the two solutions between the "push" companion (#73) and the "pull" companion.
All implementations will take place on feature branches so we can choose when to release them. Ideally we would release all major versions' pull companions simultaneously across all major release branches, if we choose to release them as new features for pre-existing releases.

[x] #816
[x] Decide whether to implement the pruning API via the existing JSON-RPC or gRPC interfaces on the v0.38.x and v0.37.x branches -  We will implement the ADR via gRPC in experimental branches for both versions
[x] #1419
[x] #1420

Additional PRs that would make this work easier to implement and/or review:

[x] #650

Marking this as done since all sub-issues are closed. Please let me know if this is incorrect.


Update Set-PnPTeamsTeam.md

Fixed wrong parameter in Example

Docs Build status updates of commit bfb7e73:
:clock10: Pending: waiting for processors (13 builds ahead of you)
:warning: Docs Build is busy, currently there are 13 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit bfb7e73:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

sharepoint/sharepoint-ps/sharepoint-pnp/Set-PnPTeamsTeam.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Hello @ollimenzel Oliver, how are you? Thanks for your contribution.
Even though the PnP documentation articles are on this repository, I need to kindly redirect you to open PnP cmdlets issues/pull requests here, in that repository, where a member of the PnP community will be able to correct the article/review your PR with your feedback.
The documentation for PnP cmdlets is then synced from that repo into this one.
Thank you!

Hello @ollimenzel Oliver, how are you? Thanks for your contribution.
Even though the PnP documentation articles are on this repository, I need to kindly redirect you to open PnP cmdlets issues/pull requests here, in that repository, where a member of the PnP community will be able to correct the article/review your PR with your feedback.
The documentation for PnP cmdlets is then synced from that repo into this one.
Thank you!

@get-itips Thank you very much for sharing this explanation. @ollimenzel Hope this comment is helpful for you and we proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Point to https://pub.dev/packages/cronet_http

This repository hasn't received any commits in two years.
We have https://pub.dev/packages/cronet_http now.
After this commit, we intend to archive this repository.

cc @brianquinlan

We should probable also archive the github repo?

That's exactly what I meant. But we should probably also do it on pub?

pub was already done:


Adopt ALIRE compatible project files and build process

Prepare for contribution to ALIRE.

Hi @rod-chapman, the alire.toml file should be checked-in.

alire.toml added.  Not sure what it should contain yet!

Note that I added project file parameter SPARKNACL_RUNTIME_MODE with values "full" and "zfp" to control selection of the runtime. This is in addition to all the normal parameters - I tried to follow the best practice guidance for those...

alire.toml added. Not sure what it should contain yet!

You can add lincenses, tags, website, and long-description fields: https://alire.ada.dev/docs/#catalog-format-specification
Also change the description to something like SPARK 2014 re-implementation of the TweetNaCl crypto library.

In particular, you should have spark in the list of tags so that the project is identified as being in SPARK: https://alire.ada.dev/network

Note that I added project file parameter SPARKNACL_RUNTIME_MODE with values "full" and "zfp" to control selection of the runtime. This is in addition to all the normal parameters - I tried to follow the best practice guidance for those...

No problem.
You can declare SPARKNACL_RUNTIME_MODE in alire.toml so that Alire users know that this parameter exists:
[gpr-externals]
SPARKNACL_RUNTIME_MODE = ["full", "zfp"]

In future versions of Alire this info might be used to provide a warning or an error that the value should be set.

OK... alire.toml updated - please check it looks OK.

One question: SPARKNaCl uses the "Relaxed_Initialization" aspect and the 'Initialized attribute, both of which are only available in GNAT Community 2020 (or better) or GNAT Pro 20.x (??? is that right?)  So... can I specify in the alire.toml file that a particular version of GNAT is required?

OK... alire.toml updated - please check it looks OK.

Looks good to me!

can I specify in the alire.toml file that a particular version of GNAT is required?
In theory you can with a depends-on entry:

[[depends-on]]
gnat = ">=2020"

OK... added that dependency.  If you're happy, could you approve the Review please? I will merge after that...


create cheat sheets for Bash-Snippets in cheat.sheets

Create cheat sheets for all commands/scripts in Bash-snippets in cheat.sheets (https://github.com/chubin/cheat.sheets), so users could find the best Bash-Snippets usage examples using a Bash-Snippet tool (cheat) only (without man, google, stackoverflow etc.).
$ cheat ytview
...
$ cheat stocks
...

You can create cheat sheets directly here (in this ticket) and then I add them to cheat.sh (not the best option), but it would be better if you could add them to the cheat.sheets repository directly (the bes option for now).
The third (and probably the best option in long run) if you add a cheat.sheets directory to your repository and it will be bound to cheat.sh (so you'll update your cheat sheets on your own and they will be still available to all cheat.sh users; read more on it in the cheat.sh README).
To summarize:
Bash-Snippets cheat sheets page are good because:

Bash-Snippets users can read its docs using only Bash-Snippets tools;
It will help other users of cheat.sh who are not aware of Bash-Snippets to discover it.
(if someone runs some seqrch query like say: cheat.sh/~youtube/i it will finds the snippets or to be more concrete the stocks command).
To start, create the cheat sheets and add them to cheat.sheets (and later migrate them to this repository).

Will look into adding this sometime soon, good idea.

Created cheatsheets here.

Thank you! I've merged it, it should be avaiable now.
Please try:
cheat movies
cheat short

Could you please also (1) give a short one line description
for each tool?
cloudup
crypt
currency
geo
movies
qrify
short
siteciphers
stocks
taste
todo
weather
ytview

and also (2) we need the parent-snippet for the whole tools "Bash-Snippets"
with a small description how to install and use the snippets (because otherwise you don't know from the cheat sheets where you can get these tools).
Can you create she Bash-Snippets cheat sheet?

Added description to each cheatsheet and created a bash-snippets cheatsheet here https://github.com/chubin/cheat.sheets/pull/4

I've updated the cheat sheets according to the cheat sheets syntax rules + renamed bash-snippets to Bash-Snippets.
Now you can list all bash-snippets available without installing them (perfect for the new users, that want to get an overview of the Bash-Snippets from the console). Just issue:
curl cheat.sh/~Bash-Snippets

Consider adding this command to the main README.md of Bash-Snippets.
People should know how they get the actual Bash-Snippets list without installing anything
and even without a browser!
(in the future we will add some additional info to the output: last version, last pubiished feature etc.)

we will move the cheat.sheets to this repository so you'll always can keep them up to date.

Question:
Does cheat (from Bash-Snippets) support tab completion? (cheat.sh does).
If not you should add it. And after that you can add bash completion to many of the Bash Snippets scripts (if they don't have any at the moment).
Write me if you need an example how you can do it.

Would you be able to submit a pull request adding the cheat sheets to this repository? I just want to make sure it is done correctly.
At the moment none of the tools support bash completion, I don't personally use this too often which is why it's not there. I have never really taken the time to learn it.


Any plan to enhance API documentation?

Hi, can I find precise API documentation? Here is an example from the current one:
EntityAnnotation Members
  boundingPoly
  EntityAnnotation boundingPoly.

It is very hard to figure out what are the methods and properties for.

Hi, please check out the latest version of the documentation on cloud.google.com. Here is the getBoundingPoly() method, which provides more detail.
BTW, we've replaced the link on this repo's README to point to the updated documentation. Is there another link pointing to the older documentation we need to replace?


Unable to disable field label

I am trying to disable the name of the field being displayed next to a toggle button. I tried working through the documentation - everything it tried has had zero effect on it. I'm clearly missing something.
In my schema:
ambitionProjectAvail: {
type: Boolean,
autoform: {
type: "toggle"
},
optional: true
}
In my template:
{{#autoForm id="updateUserProfile" collection="Meteor.users" doc=currentUser type="update" autosave=true label=false}}
{{> afQuickField name="profile.ambitionProjectAvail" label=false}}
{{/autoForm}}
The result is:

Can anyone advise what I'm missing? Thanks in advance.

Closing as I managed to sort my problem by removing my manually inserted 'Available' heading, setting the label in the Schema to 'Available', and then applying a class to adjust the format to make it fit properly.


HtmlPreview issue with

It seems like HtmlPreview has issue with <style> tag. No analysis as been done.
All CSS content is shown as text :

Here is the html file : 00-Supplementary_files_S00_Read_me_file.zip
Tested on all versions from v1.1.1 to v1.4

Closing assuming the RichHtml previewer solved the problem.


Add InterfaceDeclaration

Fixes #76
InterfaceDeclaration is very similar to ClassDeclaration but doesn't imply a constructor and replaces superclass and mixins with supertypes.

We're kind of entering murky waters here with the export for an interface:
     "exports": [
        {
+         "kind": "js",
          "name": "MyInterface",
          "declaration": {
            "name": "MyInterface",
            "module": "fixtures/-default/package/bar.js"
          }
        }
      ]

Do we think kind: 'js' is really correct here?


[Q]wandb: ERROR Error while calling W&B API: user is not logged in (<Response [401]>)

I'm using wandb in Visual Code Studio and for some reason I have issue logging in, I even tried entity= 'myusername' but it didn't work. I checked and I have the latest update of wandb. My project folder location in in Desktop
os.environ["WANDB_API_KEY"] = 'API_KEY'

!wandb login API_KEY

/Users/myname/.netrc
machine api.wandb.ai
  login user
  password API_KEY

when I run wandb.init  I get this error
Changes to your `wandb` environment variables will be ignored because your `wandb` session has already started. For more information on how to modify your settings with `wandb.init()` arguments, please refer to [the W&B docs](https://wandb.me/wandb-init).
wandb: ERROR Error while calling W&B API: user is not logged in (<Response [401]>)

Hi @qasara, thank you for reaching out.
Would you mind sharing some additional information to help us troubleshoot this:

What version of the SDK are you currently running?
Are you running this as a Jupyter Notebook in VSC (I assume so since you are running !wandb but would like to confirm).
Do you have a ./wandb folder created in your project folder? If so, you should have a ./wandb/run-date_time-runid/logs/ folder containing a debug.log and debug-internal.log files. Could you share those?

If you are running this in a Notebook, could you try replacing
!wandb login API_KEY

with:
wandb.login(key = os.environ["WANDB_API_KEY"])

making sure this is the first command running after import wandb in your notebook.
Thanks!

Hi @qasara , I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

Hi @qasara , since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!


Unwrap

[x] get, put, del
[x] batch
[x] iterator
[x] open
[x] close

Closes #46.

Supersedes https://github.com/Level/level.js/pull/55 (you can now pass a prefix option to the contructor) and I think https://github.com/Level/level.js/pull/53 as well (it seems the use case there is the same: specify a custom prefix).

This changes the default prefix and removes options that IDBWrapper had but we don't, so I'm adding the upgrading label.


Crash on loading, Fabric 1.18.2, when no trinkets is present

I've narrowed the crash down to this mod. No crash with everything but this mod enabled, crashes even with just this mod and AE2 enabled.
MC 1.18.2
Fabric 0.13.3
AE2 11.0.0 alpha1
AE2Wireless 10.1.1 beta 6
I would attach a crash log, however one did not seem to be generated, even after repeating the crash multiple times, unless the CF app is putting them somewhere other than the usual folder.
from console output:
00:15:24.030
net.minecraft.client.main.Main
Render thread
Unhandled game exception
java.lang.IllegalStateException: Some intrusive holders were not added to registry: [Reference{null=air}]
	at net.minecraft.class_2370.method_40276(class_2370.java:330)
	at net.minecraft.class_2378.method_40292(class_2378.java:369)
	at net.minecraft.class_310.handler$bbi001$onStart(class_310.java:8985)
	at net.minecraft.class_310.method_1514(class_310.java:716)
	at net.minecraft.client.main.Main.main(Main.java:236)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:416)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
00:15:24.040
net.minecraft.class_310
Render thread
Stopping!
00:15:24.090
net.minecraft.class_310
Render thread
Shutdown failure!
java.util.ConcurrentModificationException
	at java.base/java.util.HashMap.forEach(HashMap.java:1424)
	at net.minecraft.class_1060.close(class_1060.java:173)
	at net.minecraft.class_310.close(class_310.java:1048)
	at net.minecraft.class_310.method_1490(class_310.java:1026)
	at net.minecraft.client.main.Main.main(Main.java:252)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:416)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:77)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
00:15:24.782
launcher
main

00:15:24.782
monitor
Process Monitor
Process ended with exit code 0

I think I messed up something with my Trinkets compat.
It should stop crashing if you add Trinkets
My guess this is because I always add the trinket tags, and it seems 1.18.2 doesn't like adding tags which don't exist.

I found the root cause, I used to register an item when trinkets was installed and enabled, to disallow joining a server that has trinkets enabled with a client that has it disabled.
apparently 1.18.2 doesn't like instanced but not registered items.
The next version of ae2wtlib will fix this issue, for now, you just have to install trinkets.


[win] browser.close() blocks forever when combining puppeteer and readline.

Steps to reproduce
Tell us about your environment:

Puppeteer version: 1.11.0
Platform / OS version: Windows 10 1803
Node.js version: 10.14.2

What steps will reproduce the problem?
const puppeteer = require('puppeteer');
const readline = require("readline");
const rl = readline.createInterface({
    input: process.stdin,
    output: process.stdout
});
async function main() {
    browser = await puppeteer.launch();
    rl.close();
    await browser.close();
    console.log("this line will not be executed.");
}
main();

run above program, you will find program blocks at await browser.close(); and console.log("...") will never be reached.
move rl.close() after await browser.close(); solves this problem.
According to this answer, this issue also disappears if terminal option of readline.createInterface() is set to false.

What is the expected result?
Program exits normally. And "this line will not be executed." should be printed.
What happens instead?
Program hangs, no output.

puppeteer version 1.19.0 still has same issue. I found out _closeCallback function is the problem.
  async close() {
    await this._closeCallback.call(null); // this statement is a bottleneck
    this.disconnect();
  }

In lib/browser.js file, this._closeCallback is assigned with closeCallback(if any) or an anonymous function made by the function constructor.
  constructor(connection, contextIds, ignoreHTTPSErrors, defaultViewport, process, closeCallback) {
   // skip
    this._closeCallback = closeCallback || new Function;

So with the example above, there's no callback function so that this._closeCallback is an anonymous function. it seems an anonymous function made by new Function() blocks the code when used in a statement like that in the example.  if await is removed, the code works. also, if this._closeCallback is declared such as this._closeCallback = function() {}, the code runs well, too.


Project proposals - GSoC 2019

Hey all, here is the list of the open proposals for GSoC 2019 (proposals for 2018) that I'm going through in this format with these guidelines.
Please add yours here (create a comment on this thread with a link to your design doc / prototype).
I'll use this thread here as an opportunity for everybody to: (a) know what others are working on, (b) get inspiration from other's proposals and (c) see what patterns of comment/feedback occurs.
Importantly, I'll also use this list to organize myself and make sure no proposal falls through the cracks. Hopefully, this also makes @redblobgames 's life easier too to help steer the designs in the right direction :)
This list is sorted arbitrarily. The status bit shows on whose court the ball is.

Student
Design Doc
Prototype
Status

@namanZelawat
design doc ch13
Prototype
on student

@vishal260700
design doc ch4,20
prototype
on student

@ashwinvaidya17
design doc ch21
prototype
on student

@savvysiddharth
design doc ch4,18
prototype
on student

@kareemalsawah
design doc ch18
prototype
on student

@KanakalathaVemuru
design doc ch17,21
prototype
on student

user
design doc
prototype
status

Ping this thread if/when you are ready to share your design docs with me or need me to review them again.

@NamanZelawat that's a pretty awesome proposal, thanks for putting that together! I added that to the table and signaled that the action is on my side now. I'll take a look at your design doc and we can go from there.

Thank you, sir .

Hello Sam, this is my proposal document for NeuroEvolution Algorithm and the prototype. Please review it and suggest add-ons.

Hello @samuelgoto this is my proposal for part 5, reinforcement learning. Please review it and suggest any changes or corrections.

Hello @samuelgoto, please take a look at my proposal, and give me suggestions if possible. I've partially implemented a few diagrams for the prototype.

Hello @samuelgoto, this is my proposal for Chapter 18 "Learning from examples". This is my prototype for one of the demos (demo 5) in my proposal. Any suggestions would be appreciated. Thanks in advance.

Hello @samuelgoto, this is my design document for chapter 17 & 21. Please review it and suggest any corrections or changes. Thanks in advance.

Alright, I took an initial pass at all design docs / prototypes in this list. Ball on your side of court now.

I just took another pass at these design docs, wherever progress was made.

@samuelgoto I made changes as you suggested earlier, I didn't get your comment this time, If possible can you take a look at my design doc?

Hello @samuelgoto. Here are my design doc and prototype. It would help me out if you took a look at them. Thanks.

I have made changes to my design doc but they were not reviewed. I also changed my prototype to this to match my new design doc.


Zero-padded file modes in repository

After cloning this repository with git and you run "git fsck" there are multiple errors:
Checking object directories: 100% (256/256), done. warning in tree 0b404df8c030cdeaca7b373956c3a697efd32f78: contains zero-padded file modes warning in tree 51ea366fd4253b3a618289dc1c0c4bb16a3c2a22: contains zero-padded file modes warning in tree 679afdb340e9e1011927b52d2cd48bd221159131: contains zero-padded file modes warning in tree 77c7430020693d35500ca4fc292cff63fc3e672b: contains zero-padded file modes warning in tree 6a37da079f3bed362608b2558b162617c0c3af5c: contains zero-padded file modes Checking objects: 100% (12634/12634), done.
This prevents the repository from being push'ed to another git server, for example:
Counting objects: 12435, done. Delta compression using up to 8 threads. Compressing objects: 100% (3696/3696), done. remote: error: object 0b404df8c030cdeaca7b373956c3a697efd32f78: zeroPaddedFilemode: contains zero-padded file modes remote: fatal: Error in object error: pack-objects died of signal 13
I suggest the repository is rebuilt to correct the corruption in it.

I'm quite sure we don't want to do any kind of rebuild that results in new commit hashes throughout the whole repo. Is there a way to fix this in a new commit?

They are only warnings, so one option is to simply note the error on a documentation page somewhere with a suggested workaround (change your git config to turn off fsck on object transfers). I think this would help others who come across the problem.
The general workaround is indeed to ignore the errors. I think GitHub itself does this so that when you push changes to GitHub an fsck isn't done on objects so they push cleanly. Some git hosting software doesn't do this though, I hit the issue when upload flask to GitLab (self-hosted) and found it rejected pushing the whole repository. This is a rare use case however.
The standard option I found when researching was to do a rebuild via git fast-export/fast-import, but as you say this option is not acceptable as all the hashes change and tree references are lost.
There is a discussion about this happening to another repo here: https://github.com/holman/dotfiles/issues/231
I'm afraid I'm out of my depth to help much more than this, unless the project has some git experts I would suggest documenting the corrupted objects somewhere in the repo docs and closing this issue.

We can always document something, but I'm not sure how useful that would be. If somebody wants to spare that effort I'll merge it though :) Probably would belong in the CONTRIBUTING.rst rather than the sphinx docs.

I can add it there. @untitaker
According to me, git config fetch.fsckObjects false will be the solution for this error.
Or here's alternative solution - git config --global fsck.zeroPaddedFilemode ignore
Which one is better?

The latter I think
On 27 September 2016 22:15:29 CEST, Sahil Dua<EMAIL_ADDRESS>wrote:

I can add it there. @untitaker
According to me, git config fetch.fsckObjects false will be the
solution for this error.
Or here's alternative solution - git config --global fsck.zeroPaddedFilemode ignore
Which one is better?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/pallets/flask/issues/2029#issuecomment-249984632

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Cool, makes sense!
So should I just add a different section in the end named something like 'Caution' in CONTRIBUTING.rst (since there's no such section right now)?

That's one option though to be honest I haven't looked much into it
On 27 September 2016 22:26:44 CEST, Sahil Dua<EMAIL_ADDRESS>wrote:

Cool, makes sense!
So should I just add a different section in the end named something
like 'Caution' in CONTRIBUTING.rst (since there's no such section
right now)?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/pallets/flask/issues/2029#issuecomment-249987800

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Finding source after compiling patch

I am running into a weird issue for some of my patches (but strangely not all of them).
I have some patches which I put in a file and compile it. If I don't require the compiled file I am able to see the original function and get its source (through find-function-noselect). However, if I put the require in my init file and try to validate the patch, el-patch complains that it cannot find the source.
Indeed, find-function-noselect cannot locate the source because, it seems, the function is assumed to be defined in my compiled source file whose source is unavailable (in my case the reason is because the patch is defined through a template).
Is this expected?

Hmmm, so, it sounds like when you evaluate the patch, it overrides Emacs' idea of where the function was defined. This problem is the reason for el-patch--stealthy-eval, which attempts to evaluate a function definition while keeping Emacs oblivious (and thereby keeping the original information intact about where it was defined). Perhaps there is something in el-patch-template that is messing up this system?

I am not sure anymore. The problem seems to have disappeared completely now after recompiling my lisp files. Perhaps it was a result of me messing about while implementing el-patch-template; apologies.
I will close the issue and reopen if I observe it again (after further investigation).


tiny-cuda-nn- installation fails

Might want to add this to the readme.
$ pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
...
      In file included from /home/dheera/miniconda3/envs/nerfstudio/include/cuda_runtime.h:83,
                       from <command-line>:
      /home/dheera/miniconda3/envs/nerfstudio/include/crt/host_config.h:132:2: error: #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
        132 | #error -- unsupported GNU version! gcc versions later than 11 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
            |  ^~~~~
      error: command '/home/dheera/miniconda3/envs/nerfstudio/bin/nvcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tinycudann
  Running setup.py clean for tinycudann
Failed to build tinycudann
ERROR: Could not build wheels for tinycudann, which is required to install pyproject.toml-based projects

Workaround:
$ sudo apt install gcc-11 g++-11
$ export CC=/usr/bin/gcc-11
$ export CXX=/usr/bin/g++-11
$ pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch

I have to set it to gcc-10 and g++-10 but have found that it works

I met the same problem. Here is my solution.

you should check if tinycudann is available in the terminal.just open the terminal, and enter the following commands:
$ python
input
$ import tinycudann as tcnn
You will find the warning "no module name ‘tinniycudann’".
So then, you need to uninstall tinnycude ussing "pip uninstall tinycudann".
3.using the following instrctions:
$ git clone --recursive https://github.com/nvlabs/tiny-cuda-nn
$ cd tiny-cuda-nn

$ cmake . -B build
$ cmake --build build --config RelWithDebInfo -j
5.
$ pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
If no errors occur, tinycudann is installed correctly.


Updates all packages daily

Description
This PR adds a scheduled trigger to update all packages daily at midnight UTC.
Motivation and Context
I noticed VisualVM is not up to date. The current version on this repo is 2.1.6 but the latest version is 2.1.7.
Upon further investigation I noticed that the update script is working but there is no scheduled trigger to update the package.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Migrated package (a package has been migrated from another repository)

Checklist:

[x] My code follows the code style of this repository.
[ ] My change requires a change to documentation (this usually means the notes in the description of a package).
[ ] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[ ] I have updated the package description and it is less than 4000 characters.
[ ] All files are up to date with the latest Contributing Guidelines
[ ] The added/modified package passed install/uninstall in the chocolatey test environment.
[ ] The changes only affect a single package (not including meta package).

Hi @akirayamamoto,
Thanks for your contribution. Looks good to me 👍


Enable pre-commit

Use pre-commit to:

keep the code formatting consistent (black)
...

adding the following pre-commit hooks:
    -   id: check-added-large-files
    -   id: check-ast
    -   id: check-executables-have-shebangs
    -   id: check-json
    -   id: pretty-format-json
    -   id: check-toml
    -   id: check-yaml
    -   id: detect-private-key
    -   id: end-of-file-fixer
    -   id: requirements-txt-fixer
    -   id: trailing-whitespace


Rewording of JS: Comparisons with the Logical Or Operator

Describe your problem and how to reproduce it:
In the mentioned challenge, it's not clear that the user has to check for invalid values instead of valid values. I wrote my solution as if (val >= 10 || val <= 20)  with the intent being that the code would check for 10 and 20, inclusive and after awhile, I could not get it to work so I asked for help in the Discord and found out that in order to pass the tests, we have to check for invalid values. It would help if the text was explicit to indicate this but I was able to pass and move on to the next challenge.
Add a Link to the page with the problem:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/comparisons-with-the-logical-or-operator**Tell us about your browser and operating system:**

Browser Name: Google Chrome
Browser Version: 84.0.4147.105
Operating System: MacOS Catalina

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):

Hello there,
I do not understand the confusion with the instructions. What would you propose as a change to the wording?

we have to check for invalid values.

Invalid values?
if (val >= 10 || val <= 20)

Based on the existing instructions, you know if val is not between 10 and 20 (inclusive), you must return Outside.  This means if val is less than 10 OR val is greater than 20, you must return Outside.
Your code would return Outside for the value 15.  Why?  Because the val >= 10 is evaluated first and evaluates to true.  As learned in the exercise, when an || (OR) operator is used, if either the left or right condition evaluates to true, then the entire statement evaluates to true.
The instructions are very clear on this matter.  It seems more a matter of not understanding how the || operator works instead of the instructions being incorrect.
I am going to close this for now.  If you have a suggestion regarding how to word the challenge differently, please feel free to request it be reopened.
Thank you.