[bug] Error: To use QR modal, please install @walletconnect/modal package

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
2
wagmi Version
2.5.7
Current Behavior
When configuring connectors in a wagmi setup to include various wallets, including walletConnectWallet, the build process fails with an error message indicating the absence of the @walletconnect/modal package. This issue arises during the build phase, specifically when walletConnectWallet is listed among the connectors. Removing walletConnectWallet from the configuration removes the error, pinpointing the cause to the WalletConnect integration.
This is the exact error message Error: To use QR modal, please install @walletconnect/modal package
This is how i define connectors in wagmi config file
const connectors = connectorsForWallets(
  [
    {
      groupName: "Wallets",
      wallets: [
        metaMaskWallet,
        walletConnectWallet,
        rainbowWallet,
        okxWallet,
        tahoWallet,
        coinbaseWallet,
        argentWallet,
        trustWallet,
        imTokenWallet,
        omniWallet,
        bitgetWallet,
        rabbyWallet,
        phantomWallet,
      ],
    },
  ],
  {
    projectId: projectId,
    appName: appName,
  },
);

Expected Behavior
The build process completes successfully without requiring the explicit addition of @walletconnect/modal package
Even if i install missing package, build still fails.
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response

@nakedfool Thanks for raising this issue.
May i ask you if you're using a VPN or if your dApp runs in a preview environment ? Are you testing this on localhost ?
Would be good to know what framework or library you're using as well since it might be a webpack issue as well 👀

I'm facing the same issue. I'm using a Next.js React project with the following package details:
 "@rainbow-me/rainbowkit": "2.0.0",
"viem": "^2.7.3",
"wagmi": "^2.5.5"

@nakedfool I can't reproduce this on my end. This seems more of a webpack build issue where it might ignore one of the dependencies during build time.
Are you able to share your webpack configuration or next.config.js ?

@KosmosKey sure!

@nakedfool Can you share a small reproducible example ? Seems like it works for me.

@nakedfool Can you share a small reproducible example ? Seems like it works for me.

Huh, i'll try to reproduce issue but it feels like it can be a webpack build issue?

I'm facing the same issue. I'm using a Next.js React project with the following package details:
 "@rainbow-me/rainbowkit": "2.0.0",
"viem": "^2.7.3",
"wagmi": "^2.5.5"

Let me know if you figured it out!

@nakedfool Can you share a small reproducible example ? Can you share a github code or codesandbox link ?

@nakedfool Can you share a small reproducible example ? Github code or codesandbox link would be enough

I'm only able to share code here https://github.com/jk-labs-inc/jokerace/tree/chore/upgrade-to-wagmi-v2 as reproducing it won't make sense in current situation :/

it won't make sense in current situation

why not? it's really hard to help without a minimal repro >.<

Hm i think because of the number of dependencies that are in my project, however, i'll try to reproduce it and install all of them in a single repo and share here!

are you bundling this into a package?

@nakedfool Are you able to setup a fresh new RainbowKit and Wagmi project and try to write the same code and then share it here ? It'd really helpful if you could do that since i can then help you to see what's going on 🙏

@nakedfool Sounds awesome! Thanks 🙏

@KosmosKey
could this actually be due to wagmi/connectors package itself?
Error: To use QR modal, please install @walletconnect/modal package
    at I.initialize (E:\jokerace\node_modules\@wagmi\connectors\node_modules\@walletconnect\ethereum-provider\dist\index.cjs.js:1:7377)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Function.init (E:\jokerace\node_modules\@wagmi\connectors\node_modules\@walletconnect\ethereum-provider\dist\index.cjs.js:1:2743)

not sure actually on which package this dependency fails, but if i remove custom connectors and try walletConnect from wagmi/connectors build would still fail.

Yeah even if i uninstall wagmi/connectors error is still the same as one above, this is still me debugging from the main repo.
I'll create basic repo with these dependencies until end of week :)

@KosmosKey
Here is the small repo that i've just bootstraped with create-rainbowkit https://github.com/nakedfool/jokerace-test-dependencies
Run it and you should be able to see exact error above with the config in wagmi.ts

@nakedfool Can you add ssr field to true in createConfig function like this ?
export const config = createConfig({
  connectors: connectors,
  chains: [mainnet, sepolia],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
  },
  ssr: true, // <- add 'true' here
});

@nakedfool Can you add ssr field to true in createConfig function like this ?
export const config = createConfig({
  connectors: connectors,
  chains: [mainnet, sepolia],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
  },
  ssr: true, // <- add 'true' here
});

hell yeah, this is it! thank youuuuuuuu :)

Hey @magiziz
While the ssr: true resolved the build, some hooks like useAccount are returning now undefined during page load, which is because of the ssr enabled
Any different way that this build error can be solved?

@nakedfool This shouldn't happen. useAccount should never return undefined, more info here. Did you wrap your <WagmiProvider>, <RainbowKitProvider> and <QueryClientProvider> in the right order ? Can you please share your code ?

Use cookies as storage
https://wagmi.sh/react/guides/ssr

Yeah you need the wagmi provider which hydrates the store if you're using the SSR flag

Yeah you need the wagmi provider which hydrates the store if you're using the SSR flag

Oh i see, much thanks for research & help here!
It looks like they only have an example for the nextjs app router, they still do not have an example for the pages router, i'll see if i can find a solution!


Random stops

@jordimas
Thanks for your effort to offer this great tool.
I've enjoyed it many times with diffferent audios and videos.
However, I've also encountered several stops, that the transcripting will stopped randomly at different localtions of a video, when I tried the 2nd or 3rd time by ending the 1st task, then it'll finish the transcripting that audio or video.
I'm using the Intel NUC11 with modified cooling fan (No GPU but will better cooling for CPU).
What's the possible reason and how to tackle it? Could you plz share your thoughts?
Thanks!

Hello. When Whisper get lots it uses random heuristics based on temperature.
Try to use the parameter "--temperature_increment_on_fallback None" to see if makes any difference.

Thanks for your comments.
I've already been using this parameter, it still stops sometimes, especially when Windows gets into the sleep mode.
Below is the full command I'm using in Total Commander (a windows file manager):
"whisper-ctranslate2 %P%S --model medium --temperature_increment_on_fallback None --language en --compute_type int8 --vad_filter True --output_format srt  --output_dir %P"
Now I'm trying a small App called "Don't sleep" which will prevent the computer from going to sleep by monitor the CPU usage constantly.
(If CPU usage is higher than the setting value, it'll keep the windows awake)


Unexpected behavior when using initializer of LLamaParams

LLamaParams lamaParams = new LLamaParams()
{
    model = modelFullpath,
    n_ctx = 512,
    repeat_penalty = 1.0f,
    prompt = "",
    interactive = true,
    n_gpu_layers = 8,
}; // in this way, n_threads is set to 0 instead of processor count.

Solved.


PyDataset Documentation and Best Practices

Keras Version: 3.5.0
Tensorflow Version: 2.17.0
What I want to do:
Use PyDataset class in a data distributed environment.

I would like to ask about the status of PyDataset and some of its best uses and practices. I have a functioning PyDataset class that ingests and processes HDF files:
class HDFDataset(K.utils.PyDataset):
    '''
    Keras data loader to replace Tensorflow's Dataset API.
    Reads HDF5 files.
    Inputs:
        file_list: list
            list of file names, pre-globbed
        batch_size: int
            size of batches
        shuffle: bool
            whether or not to shuffle the dataset at the end of each epoch
        lons_lats: bool
            whether or not to include longitudes and latitudes

        -- Additional keyword arguments --
        workers=1
        use_multiprocessing=False
        max_queue_size=10
    '''
    def __init__(self,
            file_list: list | tuple | set,
            batch_size: int,
            shuffle: bool = False,
            lons_lats: bool = False,
            subsample: bool = False,
            **kwargs):
        super(HDFDataset, self).__init__(**kwargs)
        self.shuffle = shuffle
        self.batch_size = batch_size
        self.tmplen = len(self.file_list)

        self.subsample = subsample
        if self.subsample:
            self.slice = slice(64, 192)
            self.time_slice = slice(0,6)

    def __len__(self):
        return self.tmplen // self.batch_size

    def _extract_data_from_hdf5(self, file_list):
        input_list = ['priors', 'model']
        output_list = ['forecast']

        # Preparing input dictionary
        inputs_dict = {}
        for name in input_list:
            new_var = f'input_{name}'
            inputs_dict[new_var] = []

        outputs = []

        for f in file_list:
            with h5py.File(f, 'r') as h5:
                for k in input_list:
                    new_var = f'input_{k}'
                    if self.subsample:
                        inputs_dict[new_var].append(h5.get(k)[:, self.slice, self.slice, :])
                    else:
                        inputs_dict[new_var].append(h5.get(k)[...])
                for k in output_list:
                    if self.subsample:
                        outputs.append(h5.get(k)[0:6, self.slice, self.slice, :])
                    else:
                        outputs.append(h5.get(k)[0:6, self.slice, self.slice, :])

        for k in input_list:
            nv = f'input_{k}'
            inputs_dict[nv] = np.stack(inputs_dict[nv], axis = 0)

        outputs = np.stack(outputs, axis = 0)

        return inputs_dict, outputs

    def __getitem__(self,
            idx: int):

        if idx >= self.__len__(): raise StopIteration

        low = idx * self.batch_size

        high = min(low + self.batch_size, self.tmplen)

        inputs, outputs = self._extract_data_from_hdf5(self.file_list[low:high])

        return [inputs, outputs]

    def on_epoch_end(self):
        if self.shuffle: random.shuffle(self.file_list) # In-place shuffle

This works for my case really nicely. It avoids the memory leak nightmare with which I have been dealing by directly trying to use the tf.data API (https://github.com/tensorflow/tensorflow/issues/72014) for multiple inputs from the same file.
But the documentation on PyDataset stinks!
Looking inside the source code, PyDataset has an Adapter class that will make a Tensorflow data generator. Does this automatically get called during fit()? Is it best practice to call the data generator directly so I can distribute the dataset via TF's experimental distribute dataset function?
In the source, there is also a PyDatasetEnqueuer class. Do I need this? Why is this here? Who is the target audience? Is the expectation of the Enquerer in the PyDataset class also the reason I need to raise a StopIteration command in __getitem__?
Also digging into source, at this point, the shuffle is hard-coded to 8. That probably needs to go.
Anyway, I don't have any specific programming questions here, but I would like to know what best practices are, how do I use PyDataset in a (Tensorflow) distributed data environment, and so on.

In the source, there is also a PyDatasetEnqueuer class. Do I need this? Why is this here? Who is the target audience? Is the expectation of the Enquerer in the PyDataset class also the reason I need to raise a StopIteration command in getitem?

You should not ever need to use it. It's internal.

Looking inside the source code, PyDataset has an Adapter class that will make a Tensorflow data generator. Does this automatically get called during fit()? Is it best practice to call the data generator directly so I can distribute the dataset via TF's experimental distribute dataset function?

You can call it yourself, but you don't have to. If you don't, the framework will distribute your dataset for you.

Thanks @fchollet. I was too quick with the send, and that does appear to be happening. What is throwing me is that in my example, there's a shuffle attribute that gets propagated down to the tf.data call and the shuffle buffer is getting filled without my asking for it to do so explicitly. I think that's a bug.

I think it comes from an upper function passing shuffle:True on the training; you can see here that the warnings are commented out, probably because the function has default shuffle=False but again, seems to be passed True somewhere up the stack.

I'm also running into issues with subclassing keras.utils.PyDataset, namely that I found that I had to do bounds-checking on __getitem__() to ensure that idx <= the value of __len__() and raise an IndexError() exception if it exceeds the length. I was surprised that, when I pass an instance of my PyDataset to the numpy.array constructor, it calls __len__() but then iterates forever unless I add this bounds check.
Some other comments:
I'm guessing this is to support infinite datasets, but this should be documented in the PyDataset docs. Similarly, there was a change to use the num_batches property in lieu of len in one of the more recent commits, but there was no documentation to indicate we should implement a num_batches property.
Also, in my case, I need to use "floor" ( len // batch_size ) as I want all of my batches to be of the same size.
Lastly, an example of sliding window dataset would be appreciated. I assume that __len__() would be array size - batch size and __getitem__() would return array[idx:idx + batch size].

@CDKnightNASA I had to issue StopIteration manually in my code to get it to stop.
I need to test the shuffle. In my code above, I manually shuffle via on_epoch_end. Having it filled up in a tf.data construct was unexpected.


Outputting auto bracket function names when typing fast

First off, this plugin is great, I wish I'd found this earlier! Anyway, I was using this alongside the Auto-Pairs plugin, and occasionally would get some strange output. After a while, I managed to work out how to reproduce this - if I type a letter, followed in quick succession by a space or backspace, I get the following output respectively:
t=AutoPairsSpace()
t=AutoPairsDelete()
It also added the equals sign. I hoped it was a problem with AutoPairs, so I switched to lexima.vim, but had the same issue:
t=lexima#insmode#_map_impl('<SPACE>')
t=lexima#insmode#_map_impl('<BS>')
I figure these are too similar not to be related. Have you any idea how I could prevent this from happening? Thanks, and thanks for this plugin too!
Edit: sorry, I forgot to mention I'm using Vim 8.2 in an msys2 terminal in Windows 10. I'm gonna boot up my Linux vm and see if it happens there too.
Edit 2 : Yeah, it's happening on my LInux boot too. Linux Mint 20.3, with vim 8.2

Well, I guess I found a solution to this - I ended just writing a couple functions in my vimrc to handle brackets for me.

ok


Sonar Setup

Either SonarCube or SonarCloud shall be installed and used for code analyses in PRs

Duplicated of #32

Duplicated of #32

Duplicated of #32


New section about cleaning O-rings is not being rendered properly

https://github.com/SAEL-SWFSC/adrift-field-methods/blob/48c58ffad6aa3a82986bf35f0feb999bace45c0e/content/Field-Deployment-Preparation.qmd#L57C1-L67C81
I added a section describing how to clean O-rings and seal the sound traps, but it's not showing up in the rendered version.
@Kourtney-Burger Can you tell why that might be happening?

It looks like its stuck in the publish process. I pulled the changes into my Github Desktop and I could see them there so I just tried editing and pushing it back again to see if it goes through

It looks like my edits are still waiting to deploy as well. I will ask if anyone has seen this issue in the openscapes slack

Awesome. Thanks for your help navigating this :-)
On Wed, Jun 28, 2023 at 5:15 PM Kourtney Burger @.***>
wrote:

It looks like my edits are still waiting to deploy as well. I will ask if
anyone has seen this issue in the openscapes slack
—
Reply to this email directly, view it on GitHub
https://github.com/SAEL-SWFSC/adrift-field-methods/issues/16#issuecomment-1612263098,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADBM563VFOEBABXEISDUMCTXNTCKVANCNFSM6AAAAAAZXZEJEU
.
You are receiving this because you were assigned.Message ID:
@.***>

--
Anne Simonis (she/her https://www.mypronouns.org/she-her)
Acoustic Ecologist
Contractor with Ocean Associates in support of NOAA Fisheries
We are ADRIFT in the California Current. Check out our Sound Bytes blog
https://www.fisheries.noaa.gov/taxonomy/term/1000356091 here.
(619) 786-3578
www.fisheries.noaa.gov

This is resolved in the rendered document


Request Feature -  Parameter to reload the page when the logout function is called

I am having a problem due to the silver solution in the following issue: https://github.com/feathersjs-ecosystem/feathers-vuex/issues/10
When I use the logout feathers function and then reload the page it seems that I was loading the login page twice.
¿It is possible to add a parameter to the navout logout function?. So if that parameter is true, reload the page!

I'm not sure what code you're using for this issue, but the above solution works in my apps and doesn't show the login page twice.  Please reopen if you feel like there's something more to talk about.


Use a proper way to activate based on the bundle info on macOS

This PR will make it possible to detect if the program is running as an app bundle or not, and call proper functions for activation.
Closes #225

Will have to manually build some .app bundles to test this before merge. Our tooling can't do this yet. Otherwise looks good!


The Strongest Husband in Ten Thousand Realms

Source information
Novelhall
Steps to reproduce
Choose chapter 1 and it shows that error
Expected behavior
It should have shown the novel
Actual behavior
It shows nothing but it shows in web view
LNReader version
1.1.16
Android version
12
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 1.1.16.
[X] If this is an issue with the app itself, I should be opening an issue in the app repository.
[X] I will fill out all of the requested information in this form.

Not able to reproduce this, the chapter is loading fine.


API Error: trackStatus Confirmed invalid

Attempting any API call where trackStatus != All fails

Hii @dcolley
for any other status you just need to add another variable called proposalStatus which will an array on status
eg: ["Confirmed"]
Thank you


Buttons

Hi!

I'm writing avery simple app, based on TileView demo. Actually it's the "Real Map" activity adapted to my needs.
My question is:
The Tile View object seems to create a layout programatically, taking control of the whole screen. Is it still possible to add buttons that are superimposed over it? I want to add a button placed in corner of the screen, not the map.
I tried the examples like "...add a down-sampled image beneath the tile layer?" at the bottom of TileView website FAQ, but it seems to put the ImageView as a part of the map. It seems to srroll with the map, and I want it to be fixed to the screen.
My code is like:
package tileview.demo;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.Manifest;
import android.os.Build;
import android.support.v4.app.ActivityCompat;
import android.content.pm.PackageManager;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;

import com.qozix.tileview.TileView;
import com.qozix.tileview.markers.MarkerLayout;
import java.util.ArrayList;

public class RealMapTileViewActivity extends TileViewActivity {

  public static final double NORTH_WEST_LATITUDE = 621918;
  public static final double NORTH_WEST_LONGITUDE = 202826;
  public static final double SOUTH_EAST_LATITUDE = 608613;
  public static final double SOUTH_EAST_LONGITUDE = 221894;

  LocationManager locationManager;
  LocationListener locationListener;
  double coordGeoX, coordGeoY;

  @Override
   public void onCreate( Bundle savedInstanceState ) {
    super.onCreate( savedInstanceState );

    final LatLonToPUWG coordGeoX = new LatLonToPUWG();
    final LatLonToPUWG coordGeoY = new LatLonToPUWG();

    // we'll reference the TileView multiple times
    final TileView tileView = getTileView();

    // size and geolocation
    tileView.setSize( 7720, 5386 );

    // we won't use a downsample here, so color it similarly to tiles
    tileView.setBackgroundColor( 0xFFe7e7e7 );

    tileView.addDetailLevel( 0.0125f, "tiles/map/125/%d_%d.jpg" );
    tileView.addDetailLevel( 0.2500f, "tiles/map/250/%d_%d.jpg" );
    tileView.addDetailLevel( 0.5000f, "tiles/map/500/%d_%d.jpg" );
    tileView.addDetailLevel( 1.0000f, "tiles/map/1000/%d_%d.jpg" );

    // markers should align to the coordinate along the horizontal center and vertical bottom
    tileView.setMarkerAnchorPoints( -0.5f, -0.9f );

    // provide the corner coordinates for relative positioning
    tileView.defineBounds(
      NORTH_WEST_LONGITUDE,
      NORTH_WEST_LATITUDE,
      SOUTH_EAST_LONGITUDE,
      SOUTH_EAST_LATITUDE
    );

    // test higher than 1
    tileView.setScaleLimits( 0, 1 );

    // start small and allow zoom
    tileView.setScale( 0f );

    // with padding, we might be fast enough to create the illusion of a seamless image
    tileView.setViewportPadding( 256 );

    // we're running from assets, should be fairly fast decodes, go ahead and render asap
    tileView.setShouldRenderWhilePanning( true );

    final ImageView marker = new ImageView( this );
    marker.setImageResource( R.drawable.map_marker_normal);
    tileView.addMarker( marker, 211014 , 620884, -0.5f, -0.9f );

    //---------------------- GPS init---------------------------------
    locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
    locationListener = new LocationListener() {
      @Override
      public void onLocationChanged(Location location) {
        double coordXvalue = coordGeoX.LatLonToPUWG_northing(location.getLatitude(),location.getLongitude());
        double coordYvalue = coordGeoY.LatLonToPUWG_easting(location.getLatitude(), location.getLongitude());
        tileView.moveMarker( marker, coordYvalue , coordXvalue);
      }

      @Override
      public void onStatusChanged(String provider, int status, Bundle extras) {

      }

      @Override
      public void onProviderEnabled(String provider) {

      }

      @Override
      public void onProviderDisabled(String provider) {

      }
    };

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
      if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
        requestPermissions(new String[]{
                Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET
        }, 10);

        return;
      }
    } else {
      locationManager.requestLocationUpdates("gps", 5000, 0, locationListener);
    }
    //--------------------- GPS--------------------------------

  }//-------onCreate

}//-------activity

I would probably put the TileView in a RelativeLayout, then put the buttons above it.
e.g.,
<RelativeLayout
 ...>

  <TileView
    .../>

  <LinearLayout
    ...>

    <TextView
      .../>

    <Button
      .../>

    </LinearLayout>

</RelativeLayout>

I found an error when I defined TileView in xml
FATAL EXCEPTION: main
Process: com.example.android.navigation, PID: 27549
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.navigation/com.example.android.navigation.MapTile}: android.view.InflateException: Binary XML file line #7: Error inflating class TileView
my xml :

</LinearLayout>

</RelativeLayout>

In the activity , I am setting content view to this xml file ,
relLayout = (RelativeLayout)findViewById(R.id.rootView);
linearLayout=(LinearLayout)findViewById(R.id.linearview);
setContentView( R.layout.tilelayout );
tileView = new TileView(MapTile.this);
tileView=(TileView)findViewById(R.id.tileview1);
//Here som tileview preferences like setting scale and adding detailview
relLayout.addView( tileView );
Is this right or wrong ?
I am doing this because I want to have an xml , so that I can add buttons on the map(TileView) not above it or below it .
If this is wrong , how can I add a button on the tile view ?

There's nothing that you can do with XML that you can't do with Java.  The XML instructions are just converted to Java instructions anyway.
But the short answer to your question is that you need to say <com.qozix.tileview.TileView /> rather than just <TileView />


adds first draft for a layout page

This is one of the last docs remaining, Merging and addressing these comments!


Possibly weird Java highlighting

In general it looks really cool, but this looked a bit odd methinks:

(after :noh)

Hmm, it looks like the word register is getting marked as a javaError by these lines in the default Java syntax file:
if !exists("java_allow_cpp_keywords")
    syn keyword javaError auto delete extern friend inline redeclared
    syn keyword javaError register signed sizeof struct template typedef union
    syn keyword javaError unsigned operator
endif

:help java has this to say on the matter:
In order to help you write code that can be easily ported between Java and
C++, all C++ keywords can be marked as an error in a Java program.  To
have this add this line in your .vimrc file: >
    :let java_allow_cpp_keywords = 0

To this I say: wat?  Why is this the default?  How many people write Java that's constantly ported to C++?  Not cool, Vim.
If you set that variable in your vimrc it should fix things.


chore: refactor string match

fix:  https://github.com/envoyproxy/gateway/issues/2067

use the shared string match for stats match condition
rename string match type in shared types, if no special requirement like 'Distinct' in Rate limit, all the other EG APIs should consider using this common string match type
use the shared string match for rate limit - removed after discussion

should we merge this post v0.6 ?

should we merge this post v0.6 ?

I'm OK with that.

@arkodg can we merge it now? v0.6 has been released.


please re-open #13949 Hue unable to reach bridge issue

Home Assistant release with the issue:

0.72.1
Last working Home Assistant release (if known):
before move to asyncio
Operating environment (Hass.io/Docker/Windows/etc.):

Hassio
Component/platform:

Hue
[homeassistant.components.light.hue]
Description of problem:
constant disconnecting/reconnecting to the Hue bridge, resulting in showing lights as unavailable, and Hassio not connecting at boot.
Might have to do with lights not being powered, since when explicitly powered-on, the system seems stable and Hassio does load at boot.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
bridges:
  - host: !secret hue_ip
    allow_unreachable: false
    allow_hue_groups: true

changing to      allow_unreachable: true makes no difference to this issue
Traceback (if applicable):

Additional information:
has been documented in https://github.com/home-assistant/home-assistant/issues/13949 unfortunately the change to 0.72, and now 0.72.1 havent resolved the issue, seems to have gotten worse.
Before, one could try to mitigate the Hue not being seen, by fiddling on the Hue app during setup, and this made Hassio see the Bridge and connect, loading Hassio. This won't work any longer.
'Flapping' of the bridge is also still here unfortunately.
2018-06-26 11:07:31 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:07:35 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:07:44 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:07:50 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:08:00 INFO (MainThread) [homeassistant.components.light.hue] Reconnected to bridge <IP_ADDRESS>
2018-06-26 11:08:04 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:08:13 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge <IP_ADDRESS>
2018-06-26 11:08:15 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:08:19 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:08:25 INFO (MainThread) [homeassistant.components.light.hue] Reconnected to bridge <IP_ADDRESS>
2018-06-26 11:08:28 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:08:33 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:08:43 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 11:09:31 ERROR (MainThread) [homeassistant.core] Error doing job: Task was destroyed but it is pending!

setting up Hue passes in no time:
2018-06-26 10:46:37 INFO (MainThread) [homeassistant.setup] Setting up hue
2018-06-26 10:46:37 INFO (MainThread) [homeassistant.setup] Setup of domain hue took 0.0 seconds.

2018-06-26 13:00:49 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge <IP_ADDRESS>
2018-06-26 13:00:51 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-26 13:00:53 WARNING (MainThread) [homeassistant.setup] Setup of hassio is taking over 10 seconds.
2018-06-26 13:00:56 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/ping request
2018-06-26 13:00:56 ERROR (MainThread) [homeassistant.components.hassio] Not connected with Hass.io
2018-06-26 13:00:57 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 15.1 seconds.
2018-06-26 13:00:57 ERROR (MainThread) [homeassistant.setup] Setup failed for hassio: Component failed to initialize.

Config is alright, all checks pass. All functionality is working fine, except for all logic and functionality based on the Hue-lights. Which is clearly visible in the frontend, responses to automations or python scripts reading the lights.
rest sensors prove the hub to be reachable, and the 3 device_trackers show the Hub to be online through the various techniques.

Hue app works perfect and immediate, both at home over the network as via cloud when away.
Even if this woudlnt be caused by the Hue implementation , this is a severe issue. Please assist me in finding the cause, I have no ideas left how to proceed. Might it be related to the asuswrt router for example, and how to test that?
When Hassio indicates a config error at boot, it doesnt provide any reason why. Would be really helpful if Hassio indicates why it wont load. It must 'know' since it indicates it cant .....?
all in all, this issue might be 2 in one ( 1- hassio not connecting at boot, and 2- Hub being disconnected on /off), but since the are to heavily interrelated i hope this would help in analyzing.

I think I have almost the same issue with the hue component. I dont have a flapping connection but the error message is the same. The strange thing is that I get this error on every full and half hour.
2018-06-22 19:30:08 ERROR (Thread-19) [pyps4.ddp] failed to send data using socket, timed out
2018-06-22 19:30:11 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge <IP_ADDRESS>
2018-06-22 20:00:09 ERROR (Thread-7) [pyps4.ddp] failed to send data using socket, timed out
2018-06-22 20:00:09 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge <IP_ADDRESS>
2018-06-22 20:30:11 ERROR (Thread-5) [pyps4.ddp] failed to send data using socket, timed out
2018-06-22 20:30:12 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge <IP_ADDRESS>
.......
2018-06-22 21:00:11 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge <IP_ADDRESS>
2018-06-22 21:00:12 ERROR (Thread-16) [pyps4.ddp] failed to send data using socket, timed out
.....
2018-06-22 21:30:11 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge <IP_ADDRESS>
2018-06-22 21:30:12 ERROR (Thread-3) [pyps4.ddp] failed to send data using socket, timed out

@nelbs components.light.hue sets an asyncio timeout for 4 seconds, not HTTP timeout. In that way, by intention or not, it became a good tool to detect if we have bad actor in other components which has blocked main event loop. That is why @balloob was asking you provide the full platform list you used in in the original issue #13949 .
In you case, I am guessing there is some component is doing something every 30 minutes blocked the main event loop,

Timer got out of sync. Resetting

I bet your Hue starts working if you get these errors sorted.
Disable other components (like asuswrt) and see if it helps. Continue doing that until you find the culprit :-)

The timer out of sync error is probably a separate issue https://github.com/home-assistant/home-assistant/issues/7133

Timer out of sync has many causes and is definitely the culprit here. Maybe you have a speedtest sensor or something else that runs every 30 minutes?

could non-reachable lights have to do anything with this?
I ask since I have externally powered Hue lights in the setup (through a daylight sensor)

had Asuswrt on the radar also, so tried it as you suggested, unfortunately no success.:
018-06-27 10:12:13 INFO (MainThread) [homeassistant.setup] Setup of domain proximity took 0.2 seconds.
2018-06-27 10:12:21 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:25 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:29 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:33 INFO (MainThread) [homeassistant.setup] Setting up hassio
2018-06-27 10:12:34 WARNING (MainThread) [homeassistant.core] Unable to remove unknown listener <function async_track_point_in_utc_time.<locals>.point_in_time_listener at 0x6e4ae660>
2018-06-27 10:12:34 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback <function async_track_point_in_utc_time.<locals>.point_in_time_listener at 0x6e4ae660>
Traceback (most recent call last):
  File "uvloop/cbhandles.pyx", line 64, in uvloop.loop.Handle._run
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/event.py", line 211, in point_in_time_listener
    hass.async_run_job(action, now)
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 253, in async_run_job
    target(*args)
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/script.py", line 95, in async_script_delay
    self._async_listener.remove(unsub)
ValueError: list.remove(x): x not in list
2018-06-27 10:12:35 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:37 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:39 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:41 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:42 ERROR (MainThread) [homeassistant.components.light.hue] Unable to reach bridge <IP_ADDRESS>
2018-06-27 10:12:44 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:44 WARNING (MainThread) [homeassistant.setup] Setup of hassio is taking over 10 seconds.
2018-06-27 10:12:47 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /supervisor/ping request
2018-06-27 10:12:47 ERROR (MainThread) [homeassistant.components.hassio] Not connected with Hass.io
2018-06-27 10:12:47 INFO (MainThread) [homeassistant.setup] Setup of domain hassio took 13.3 seconds.
2018-06-27 10:12:47 ERROR (MainThread) [homeassistant.setup] Setup failed for hassio: Component failed to initialize.
2018-06-27 10:12:47 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:49 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:53 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:12:58 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:03 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:05 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:11 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:16 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:18 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:25 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:27 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:34 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:41 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:46 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:13:52 INFO (MainThread) [homeassistant.components.light.hue] Reconnected to bridge <IP_ADDRESS>
2018-06-27 10:13:54 ERROR (SyncWorker_14) [homeassistant.core] Error doing job: Task was destroyed but it is pending!
2018-06-27 10:13:56 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-06-27 10:14:07 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting

these issues seem to always start after proximity is setup. Is there a way to find out what is done after that during setup?  the Unable to remove unknown listener  of course indicates some kind of error, but i wouldn't know where to begin looking for that.
(sorry for the bigger snippet, but this might be indicative for the issue and solution..)

Samme issue here:
Unable to reach bridge <IP_ADDRESS>
10:56 AM components/light/hue.py (ERROR)

@hvbhome I think you already validatede you hue connection in another thread. Please post your full configuration.yaml, it will help.
For all people have interest in this issue, 'Unable to reach bridge' doesn't meant really connection issue. It could cause by some bad code in other components or your custom components. If you want to us to help, please do following basic check up.

Remove all other components except hue lights from your configuration, and test. If you still have problem, please open a new issue.
If hue lights works well, add back your other component one by one until you can reproduce the problem. Then please tell us which component caused issue, post your configuration and logs
If you cannot or would not do step 2, please at lease post your full configuration here. Otherwise we cannot help you.

Disable everything but Hue and see if the issue exists

will do....
quick report back:
sensor.log_tail to show the errors in the log, is causing this itself:
2018-06-27 13:49:41 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity id: sensor.log_tail. State max length is 255 characters.
2018-06-27 13:49:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: timestamp=1530100181.1763537, level=ERROR, message=Error doing job: Task exception was never retrieved, exception=Traceback (most recent call last):
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity id: sensor.log_tail. State max length is 255 characters.

error-checker causing errors...

DUDE, from the issue template:

Do not report issues for components if you are using custom components: files in /custom_components

That's not our code. It's someone else code.

only 1 to the 3 issues at hand here. sorry, for the 1, but the other 2 are 'your' code... and, Hue is still not connecting properly. Without the CC. Any CC.

The Python script execution environment itself is fine. It's your code that is running inside it.
Anyway, this issue is about Hue not working, that seems to be resolved, issue closed.


Configurable Indexing

[x] #82
[x] #81
[x] #80
[x] #79
[x] #78
[x] #76
[x] Support Carbon dictionary writer #70

$82 not taking up now as per @jackylk opinion and suggestion


ci: promote to upbound marketplace

Fixes the CI job to promote this provider to the marketplace.

cc/ @hasheddan Can you enlighten us?

I don't really understand how this works right now --- there's this
https://github.com/crossplane-contrib/provider-sql/blob/61a16726f9782ddfa117045e87adfa8937e318c0/Makefile#L54-L56
Just wondering if that matters, mainly being new to this pipeline and not knowing anything about publishing to the marketplace. 🙃

hey there @iainlane -- this isn't required to publish to the Upbound marketplace. this repo is already configured to do so when CI is run on specific branches (see: https://github.com/upbound/build/blob/master/makelib/xpkg.mk#L119-L123)
I see a few tags have already been pushed to the repository: https://explore.ggcr.dev/?repo=xpkg.upbound.io%2Fcrossplane-contrib%2Fprovider-sql. To have these be indexed into a Marketplace listing, they will need to have an explicit release tag, e.g. v0.7.0.

Thanks for the work here - how long do you think it'll take before the marketplace lists this provider?

Hello,
I would like to test the new v0.9.0 version but image is not available on the Upbound marketplace. Would it be possible to publish this image ? I guess it would also make the marketplace lists this provider on their UI.
Thanks

@fgaillot-qosenergy it's now available via: xpkg.upbound.io/crossplane-contrib/provider-sql:v0.9.0 - started the public listing in Upbound Marketplace - will be happen latest next week

marketplace listing is done https://marketplace.upbound.io/providers/crossplane-contrib/provider-sql/v0.9.0


⚠ GitLab Server has degraded performance

In b5e7649, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 6863 ms

Resolved: GitLab Server performance has improved in e70cc7f.


Add property 'getHeaders' to http$ServerResponse

hi 👋 I'm currently trying to use this in a node application and it's missing. can I just make a PR and add it?
here it is in the node docs: https://nodejs.org/api/http.html#http_response_getheaders
and here it is (missing, among other properties) in flow: https://github.com/facebook/flow/blob/master/lib/node.js#L1251
edit: I'm sure you guys get tons of these daily, so I'll just add it to the local flow-typed definitions we use.

For what it’s worth, clear-cut PRs like these are generally appreciated.
You’ve found it in the Node docs and in the missing section of the
libdefs, and an issue/PR search for getHeaders doesn’t reveal that
this has been proposed and rejected before. Feel free to submit a PR if
you like. :-)


[nrf fromtree] Bluetooth: HCI: Add option CONFIG_BT_HCI_ACL_DATA_SIZE

Add the option CONFIG_BT_HCI_ACL_DATA_SIZE which allows the user
to configure the max HCI ACL data payload. This is needed for platorms
where the BLE LL, HCI uart and host run on three different cores.
Fixes: #30441
Signed-off-by: Johan Stridkvist<EMAIL_ADDRESS>Cherry-picked from commmit a81765bbe407063110c127fb078494d2ddb99108

Included in #479.


added support for specifying multiple files for flow playback (aka scenario support first dependencies)

Hi Max,
As we agreed in https://github.com/mitmproxy/mitmproxy/pull/432 i'm PR you with (server|client)_replay supporting a list of files and modified _readflow to read all of them.
I've done it in DumpMaster (dump.py) but also in cmdline.py (for mitmproxy to support it as well)
I've also fixed a bug (that i previously added), replay_ignore_payload_params was not been passed to start_server_playback when called in mitmproxy (it was ok in mitmdump)
Regards.
Marcelo

Hey Marcelo,
sorry for the late reply - the last week was super hectic and this PR got buried below a bunch of other mails. Looks excellent for me so far, but I think we should fix the open file handle on the way as well. :-)
Cheers,
Max

Hi Max,
No problem.
I will change the open's behavior this afternoon and update the PR.
Regards.
Marcelo

:+1:

done

Hi Marcelo,
I finally get around reviewing your PRs - thanks for the great work. I just merged this one (modulo your latest merge commit, which is why it is not shown as merged here). If you encounter any duplicate code as in this case, please don't refrain from refactoring and unifying functionality. :smiley: I cleaned this whole mess (which certainly has been there before your additions) up in https://github.com/mitmproxy/mitmproxy/commit/0ac3227b7bb27a76b6f49aa1605f1b1887a01a10 .
Cheers,
Max

Hi max,
I haven't found any issue
Regards.
Marcelo


Backend building twice

** Please describe which feature you have a question about? **
Console building backend twice.
** Provide additional details**
Recently we have seen that the backend is building twice for both our connected branches.
This extends the build time and of course the cost. I've tried updating various stuff in configuration, but nothing helps and we have a pretty standard configuration. Running CLI 4.26.0 but this started before we began using that version.
Logs:
UPDATE_COMPLETE redacted6161e7         AWS::CloudFormation::Stack Tue Aug 04 2020 04:47:18 GMT+0000 (Coordinated Universal Time)
UPDATE_COMPLETE redacted-prod-20190630205950 AWS::CloudFormation::Stack Tue Aug 04 2020 04:47:18 GMT+0000 (Coordinated Universal Time)
2020-08-04T04:47:54.589Z [WARNING]: ✔ All resources are updated in the cloud
2020-08-04T04:47:54.590Z [INFO]:
2020-08-04T04:47:54.591Z [INFO]: GraphQL endpoint: https://redacted.appsync-api.us-east-1.amazonaws.com/graphql
2020-08-04T04:47:54.592Z [INFO]: REST API endpoint: https://redacted.execute-api.us-east-1.amazonaws.com/prod
2020-08-04T04:47:54.594Z [INFO]: Hosting endpoint: http://redacted-redacted-hostingbucket-prod.s3-website-us-east-1.amazonaws.com
2020-08-04T04:47:54.597Z [INFO]:
2020-08-04T04:47:55.725Z [INFO]: Note: It is recommended to run this command from the root of your app directory
2020-08-04T04:47:59.567Z [WARNING]: - Initializing your environment: prod
2020-08-04T04:48:04.248Z [WARNING]: ✔ Initialized provider successfully.
2020-08-04T04:49:55.540Z [WARNING]: - Updating resources in the cloud. This may take a few minutes...

Then right after that, it starts again and once it finished the second time this is the output:
UPDATE_COMPLETE redacted6161e7         AWS::CloudFormation::Stack Tue Aug 04 2020 04:51:24 GMT+0000 (Coordinated Universal Time)
UPDATE_COMPLETE redacted-prod-20190630205950 AWS::CloudFormation::Stack Tue Aug 04 2020 04:51:24 GMT+0000 (Coordinated Universal Time)
2020-08-04T04:51:36.702Z [WARNING]: ✔ All resources are updated in the cloud
2020-08-04T04:51:36.703Z [INFO]:
2020-08-04T04:51:36.705Z [INFO]: GraphQL endpoint: https://redacted.appsync-api.us-east-1.amazonaws.com/graphql
2020-08-04T04:51:36.706Z [INFO]: REST API endpoint: https://redacted.execute-api.us-east-1.amazonaws.com/prod
2020-08-04T04:51:36.710Z [INFO]: Hosting endpoint: http://redacted-redacted-hostingbucket-prod.s3-website-us-east-1.amazonaws.com
2020-08-04T04:51:36.743Z [INFO]: Initialized your environment successfully.
2020-08-04T04:51:36.744Z [INFO]: Your project has been successfully initialized and connected to the cloud!
                                 Some next steps:
                                 "amplify status" will show you what you've added already and if it's locally configured or deployed
                                 "amplify add <category>" will allow you to add features like user login or a backend API
                                 "amplify push" will build all your local backend resources and provision it in the cloud
                                 "amplify console" to open the Amplify Console and view your project status
                                 "amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud
                                 Pro tip:
                                 Try "amplify add api" to create a backend API and then "amplify publish" to deploy everything
2020-08-04T04:51:36.833Z [INFO]: # Completed phase: build

@houmark thanks for reporting - can you share your appId, region, and buildspec (redacting any sensitive data)? Also the branch and build number(s) when this happened would help us investigate.

Please send me an email I can send this information to. Sharing I here redacted I don't think will help you much.

Awaiting email to send detailed information to @kahdojay....

Sorry for the delay, please send it to<EMAIL_ADDRESS>

@behrooziAWS Sent!

@houmark sorry for the late response. Were you able to get this addressed?

Nope, still happening on CLI 4.29.1.

Repro steps?

I just deploy using the Console as I always have. Build settings are the same. Happens in all environments. Nothing has changed in my end. I've sent logs and build configuration to the above email almost a month ago.

@houmark apologies. I found your email and will ensure someone looks at this.

Thank you! Looking forward to a resolution.

Hi @houmark can you share your amplify/backend/backend-config.json file?
You can post here or email<EMAIL_ADDRESS>Thanks!

@Athena96 Yep, just emailed it now. Please confirm it's received.

Oops, another email coming with package.json from the root folder. Missed that one on the first email.

@swaminator @Athena96 Any update on this? I've sent anything you requested, so please remove the pending-customer-response tag.
Currently, I am releasing to production using Console and it's been building the backend for 14 minutes, and just started all over and are uploading files for the second time. This means a release is closer to 30 minutes than the 8-12 minutes normal time before this problem started appearing out of nowhere.

@houmark can you try the latest version of the CLI?

I'm on 4.29.8 which is almost latest. Considering some bugs were reported with 4.30 we are holding back on upgrading as we don't want regressions. Are there any changes in 4.30+ that will potentially fix this?

@houmark the bug that you're talking about is fixed in 4.31.1. Upgrade to that and your issue should be resolved.

OK, I will close my eyes and cross my fingers and toes and attempt and update and hope nothing breaks one of the upcoming days, and report back here with the results.
Thanks!

After a hiccup on the first build, which seems unrelated to this issue (build log below), I was able to build the backend just once in about 6 minutes, so this seems to be fixed — thank you!
Build log from failed build 518 (redacted sensible information):
                                 # Starting phase: build
                                 # Executing command: amplify -v
2020-11-03T05:25:36.728Z [INFO]: 4.31.1
2020-11-03T05:25:36.804Z [INFO]: # Executing command: amplifyPush --simple
2020-11-03T05:25:42.648Z [INFO]:
2020-11-03T05:25:42.649Z [INFO]: For more information on AWS Profiles, see:
                                 https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
2020-11-03T05:25:42.662Z [WARNING]: (node:1978) ExperimentalWarning: The fs.promises API is experimental
2020-11-03T05:25:42.981Z [INFO]: Amplify AppID found: ----. Amplify App name is: ---
2020-11-03T05:25:43.045Z [INFO]: Backend environment dev found in Amplify Console app: ---
2020-11-03T05:25:45.427Z [INFO]:
2020-11-03T05:25:45.433Z [WARNING]: - Fetching updates to backend environment: dev from the cloud.
2020-11-03T05:25:48.023Z [WARNING]: ✔ Successfully pulled backend environment dev from the cloud.
2020-11-03T05:25:48.737Z [INFO]:
2020-11-03T05:25:49.873Z [INFO]: Note: It is recommended to run this command from the root of your app directory
2020-11-03T05:25:53.704Z [WARNING]: - Initializing your environment: dev
2020-11-03T05:25:53.726Z [WARNING]: (node:1989) ExperimentalWarning: The fs.promises API is experimental
2020-11-03T05:26:01.498Z [WARNING]: ✔ Initialized provider successfully.
2020-11-03T05:26:38.044Z [WARNING]: - Uploading files...
2020-11-03T05:26:38.096Z [WARNING]: - Uploading files...
2020-11-03T05:26:38.099Z [WARNING]: - Uploading files...
2020-11-03T05:26:39.995Z [WARNING]: - Uploading files...
2020-11-03T05:26:49.833Z [WARNING]: - Uploading files...
2020-11-03T05:26:51.443Z [WARNING]: - Uploading files...
2020-11-03T05:27:10.700Z [WARNING]: - Uploading files...
2020-11-03T05:27:25.524Z [WARNING]: - Uploading files...
2020-11-03T05:27:27.435Z [WARNING]: - Uploading files...
2020-11-03T05:27:46.202Z [WARNING]: - Uploading files...
2020-11-03T05:27:53.172Z [WARNING]: - Uploading files...
2020-11-03T05:27:54.138Z [WARNING]: - Uploading files...
2020-11-03T05:27:55.548Z [WARNING]: - Uploading files...
2020-11-03T05:27:56.265Z [WARNING]: - Uploading files...
2020-11-03T05:28:00.665Z [WARNING]: - Uploading files...
2020-11-03T05:28:01.687Z [WARNING]: - Uploading files...
2020-11-03T05:28:03.168Z [WARNING]: - Uploading files...
2020-11-03T05:28:07.749Z [WARNING]: - Uploading files...
2020-11-03T05:28:10.300Z [INFO]: GraphQL schema compiled successfully.
                                 Edit your schema at /codebuild/output/src1----639/src/----amplify/amplify/backend/api/---/schema.graphql or place .graphql files in a directory at /codebuild/output/src16----39/src/----amplify/amplify/backend/api/---/schema
2020-11-03T05:28:10.310Z [WARNING]: - Uploading files...
2020-11-03T05:37:50.714Z [WARNING]: ✖ An error occurred when pushing the resources to the cloud
2020-11-03T05:37:50.716Z [WARNING]: ✖ There was an error initializing your environment.
2020-11-03T05:37:50.719Z [INFO]: init failed
2020-11-03T05:37:50.721Z [INFO]: { RequestTimeout: Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
                                 at Request.extractError (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/services/s3.js:700:35)
                                 at Request.callListeners (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
                                 at Request.emit (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
                                 at Request.emit (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:688:14)
                                 at Request.transition (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:22:10)
                                 at AcceptorStateMachine.runTo (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
                                 at /root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/state_machine.js:26:10
                                 at Request.<anonymous> (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:38:9)
                                 at Request.<anonymous> (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/request.js:690:12)
                                 at Request.callListeners (/root/.nvm/versions/node/v10.16.0/lib/node_modules/@aws-amplify/cli/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
                                 message:
                                 'Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.',
                                 code: 'RequestTimeout',
                                 region: null,
                                 time: 2020-11-03T05:37:50.714Z,
                                 requestId: 'DC7D90A2B98A9FF2',
                                 extendedRequestId:
                                 'RIhe7S7vFwv66Ig2Pf922McI----wdziATs5Ymu72VoQs8cOwxgYgomfywkA2xpqE=',
                                 cfId: undefined,
                                 statusCode: 400,
                                 retryable: true }
2020-11-03T05:37:50.816Z [ERROR]: !!! Build failed
2020-11-03T05:37:50.816Z [ERROR]: !!! Non-Zero Exit Code detected
2020-11-03T05:37:50.816Z [INFO]: # Starting environment caching...
2020-11-03T05:37:50.817Z [INFO]: # Uploading environment cache artifact...
2020-11-03T05:37:50.900Z [INFO]: # Environment caching completed
Terminating logging...


--with-orgs subcommand does not work with chef-server-ctl user-show

Following command works well:
$ sudo chef-server-ctl user-show --verbose
INFO: Using configuration from /etc/opscode/pivotal.rb
chefadmin: https://<IP_ADDRESS>/users/chefadmin
pivotal:   https://<IP_ADDRESS>/users/pivotal
wstation1: https://<IP_ADDRESS>/users/wstation1
At the same time the next command fails:
$ sudo chef-server-ctl user-show --verbose --with-orgs
INFO: Using configuration from /etc/opscode/pivotal.rb
INFO: HTTP Request Returned 404 Object Not Found: error
ERROR: The object you are looking for could not be found
Response: Could not find user organizations
Without --verbose parameter it fails as well:
$ sudo chef-server-ctl user-show --with-orgs
ERROR: The object you are looking for could not be found
Response: Could not find user organizations
$ uname -a
Linux ip-172-31-61-75 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ cat /proc/version
Linux version 3.13.0-48-generic (buildd@orlo) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015
$ dpkg --list chef-server-core
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version       Architecture  Description
+++-=================-=============-=============-=======================================
ii  chef-server-core  12.0.8-1      amd64         The full stack of chef-server
Please let me know if any other information is necessary.

Please can you file this issue at https://github.com/chef/chef-server/issues ?


Is there a way to do batch inference?

I'm trying to do inference in batch by padding each sentence to the max length(pad by 0), but it turns out that the model did fine on the text part, but generated noises for the padded part. Is there a proper way to do this?

Even I am looking for a solution to this. Were you able to find anything ?

I create batched inference script since I had to run things on scale. Feel free to use it:
https://github.com/piyushsinghpasi/VITS-Batched-Inference

I created batched inference script since I had to run things on scale. Feel free to use it: https://github.com/piyushsinghpasi/VITS-Batched-Inference

thanks，I have the same problem and solved by your solution


ELM model output evaluation tools/scripts

We need to convert @Tamannasubba's current scripts to a toolkit of scripts that can be run after ELM ensembles or single ensemble runs to generate model-data comparison (benchmark) plots. This toolbox should be created in a new repo and version controlled with specific releases

Moved issue to the new analysis repo


Support for includes-script in custom places

It would be nice to be able to include scripts in custom places with custom tags.
For example, it would be nice if a script could be inserted using the command tag in when using the nick-invision/retry action

Any idea on what could be a workable syntax?

Perhaps something like this?
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  includes-script: [ "command", script.py ]

This should expand to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  shell: python
  command: |
    <script.py content>

Option 1
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  includes-script:
    command: script.py

should expand to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  shell: python
  command: |
    <script.py content>

Then also;
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  includes-script: script.py

is equivalent to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  includes-script:
    runs: script.py

Option 2 -- outputs dictionary
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  includes-script:
    uses: script.py
    outputs:
      script: command
      shell: shell-type

should expand to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  shell-type: python
  command: |
    <script.py content>

Then also;
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  includes-script: script.py

is equivalent to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  includes-script:
    uses: script.py
    outputs:
      script: runs
      shell: shell

Option 3 -- includes-script under key
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  command:
    includes-script: script.py

should expand to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  shell-type: python
  command: |
    <script.py content>

Then also;
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  runs:
    includes-script: script.py

is equivalent to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  runs: |
    <script>

Option 4 - !include
Use same syntax as https://github.com/codeindulgence/yaml-includes and https://www.home-assistant.io/docs/configuration/splitting_configuration/ and https://pypi.org/project/pyyaml-include/
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  command: !include: script.py

should expand to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  shell-type: python
  command: |
    <script.py content>

Then also;
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  runs: !include: script.py

is equivalent to
uses: nick-invision/retry@v2
with:
  timeout_minutes: 10
  max_attempts: 3
  runs: |
    <script>

Another action that might benefit from this:
https://github.com/marketplace/actions/github-script


Adding the admin API to the router causes a lot extra compilations

Describe the bug
Adding a snippet like ash_admin "/admin", apis: [GenTracker.API] to your phoenix app's router, causes the router to have a lot of compile-time dependencies.
To Reproduce
Add a line of ash_admin "/admin", apis: [GenTracker.API] to a phoenix app's router and check the output of mix xref graph --format dot
Expected behavior
Adding ash_admin to not add significant compile-time dependencies to the router.
** Runtime

Elixir version: Elixir 1.12.0-rc.0
Erlang version: 24.0-rc2
OS: Arch Linux
Ash version: 1.41.6
any related extension versions ash_admin 0.2.10

Additional context
Add any other context about the problem here.

Yeah, there is a bunch of work done at compile time that should likely just be done by a controller/plug to find the appropriate resources. Anyone who wants to rewrite the router logic to do that is more than welcome :)

The main problem is directly the router. Given this definition in the router:
    ash_admin "/admin", apis: [GenTracker.API]

That causes a compile dependency from the router to GenTracker.API
This means that if we can avoid referencing the MyApp.API (GenTracker.API) in this case within the router we would not have the compile-time dependency. I'm working around this right now very hackily with:
    # Trick the Elixir compiler
    ash_admin "/admin", apis: ["Elixir.GenTracker.API" |> String.to_atom()]

Which is pretty terrible (although it is working well). Another somewhat bad option is to have the user provide the Api's via application config. But a naive approach to that would mean that there could only be a single ash_admin for a project. Of course that could be solved by the user providing a specific key into the application configuration which seems like it will be quite unweildy.

So the implementation of the router actually does logically (not just as a detail of mentioning the module name) depend on the api modules at compile time, because it (naively) builds the full list of routes at compile time. To fix it, the router macro should be rewritten to just forward to a Plug.Router that has a single match that matches up the routes at runtime. That would also make live reload better as users change their routes.

I'm rewriting the router now :)

Great!

The latest release candidate is out, which actually just does away with routing entirely because, to be honest, it was just a huge PITA to rewrite dynamically. Now it just uses query params, which I figure is fine since its just an admin ui, not something customer facing.

It also updates to the latest versions of surface/phoenix and friends, so there may be some issues using it, we'll see. Its working for me in my applications right now though :)


Analytics not shown anymore in WP admin dashboard

Since WP 6.1 the dashboard>analytics menu is showing a blank page.

It appeared to be my Ghostery add-on that was blocking this.


[Source compatibility suite] CareKit if failing after version bump

https://github.com/apple/swift-source-compat-suite/pull/858
/Users/ec2-user/jenkins/workspace/swift-PR-source-compat-suite-test-macOS/swift-source-compat-suite/project_cache/CareKit/CareKitStore/CareKitStore.xcodeproj: error: Missing package product 'Collections' (in target 'CareKitStore' from project 'CareKitStore')
I'm not exactly sure whether the issue is here either Xcode package integration or package manager but it doesn't reproduce with Xcode 15. I'm going to use this issue for XFAIL until Xcode is updated in CI.

And we needed to update the project due to incorrect use of optional chaining which was accepted before but is now fixed - https://github.com/apple/swift/pull/69292


Add meeting note from Feb 2024

📚 Documentation preview 📚: https://docs-community--106.org.readthedocs.build/

If the items in "Follow-ups from previous meeting(s)" were not discussed, we should probably remove this section.

I am not sure about this style:

I personally would prefer something like:

[Ezio] Adding examples to the docs...

[Dainele] Examples work best as ...
[Ezio] Maybe we should ...
[Daniele] An example sections sounds like ...
[Ned] I like examples for ...

IMHO just feels easier to read.

I am not sure about this style:

I find the transcript a bit difficult to read, since it tries to follow the (sometime erratic) conversations.  This style also makes it difficult to add more comments, notes, and clarification afterwards.
Maybe we should try to summarize each conversation with a few bullets points and either get rid of the (already abridged) transcript or move it to a separate section.
@CAM-Gerlach, any thoughts about this?

I am going to go ahead and merge this. We can make any corrections or style changes in a separate PR. Thanks everyone.


[C++] Linking static library (error or bug?) to load python trained model

Hi. I'm trying to train a simple model using python api and load the trained model for predicting using c++ api.
Following the tutorials, I've already built mxnet from source with USE_CPP_PACKAGE=1 and USE_BLAS = openblas. Then I got libmxnet.a libmxnet.so files.
While I build executable program with linking to dynamic library (libmxnet.so), my codes work well. However, if I tried to build executable program with linking to static library (libmxnet.a), then I receive an error like "transformer: lrcplus/main.cc:101: int main(): Assertion 'pred_hnd' failed."
Please help out. Thanks in advance!!!
Environment info
Compiler: gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) | Cmake version 3.9.4
Package used (Python/R/Scala/Julia): C++
MXNet commit hash (git rev-parse HEAD):  c2110ada6d43f10710d181c0deb0673fe6d829b2
Steps to reproduce
I'm running my own project. The tree is like this.
lrcplus
├── CMakeLists-static.txt
├── CMakeLists-dynamic.txt
├── build
├── main.cc
├── include
│   ├── mxnet (Contains header files, copy from `/mxnet/include/`)
└── lib
│   ├── libmxnet.so  (Copy from  `/mxnet/lib/`)
│   ├── libmxnet.a (Copy from  `/mxnet/lib/`)
│   ├── libdmlc.a (Copy from  `/mxnet/3rdparty/dmlc-core/`)
│   └── libnnvm.a (Copy from  `/mxnet/3rdparty/3rdparty/tvm/nnvm/lib/`)
└── python
│   ├── train.py  (Implement a simple network and save with export)
│   ├── net-0000.params (Generated by train.py)
│   ├── net-symbol.json (Generated by train.py)
│   └── test.csv (Generated by train.py)

The train.py file is like this:
from __future__ import print_function
import mxnet as mx
from mxnet import nd, autograd, gluon

data_ctx = mx.cpu()
model_ctx = mx.cpu()

num_inputs = 2
num_outputs = 1
num_examples = 10000

def real_fn(X):
    return 2 * X[:, 0] - 3.4 * X[:, 1] + 4.2

X = nd.random_normal(shape=(num_examples, num_inputs))
noise = 0.01 * nd.random_normal(shape=(num_examples,))
y = real_fn(X) + noise

batch_size = 4
train_data = gluon.data.DataLoader(gluon.data.ArrayDataset(X, y), batch_size=batch_size, shuffle=True)
net = gluon.nn.Dense(1, in_units=2)
net.initialize(mx.init.Normal(sigma=1.), ctx=model_ctx)
net.hybridize()

trainer = gluon.Trainer(net.collect_params(), 'sgd', {'learning_rate': 0.0001})
sq_loss = gluon.loss.L2Loss()
sq_loss.hybridize()

epochs = 5
loss_sequence = []
num_batches = num_examples / batch_size

for e in range(epochs):
    cumulative_loss = 0
    for i, (data, label) in enumerate(train_data):
        data = data.as_in_context(model_ctx)
        label = label.as_in_context(model_ctx)
        with autograd.record():
            output = net(data)
            loss = sq_loss(output, label)
        loss.backward()
        trainer.step(batch_size)
        cumulative_loss += nd.mean(loss).asscalar()

    print("Epoch %s, loss: %s" % (e, cumulative_loss / num_examples))
    loss_sequence.append(cumulative_loss)

net.export('net')

f = open('test.csv','w',encoding='utf-8')
a = X[0].asnumpy()
s = ','.join([str(x) for x in a])
f.write(s)
f.close()

The main.cc file is like this:
#include "mxnet/c_predict_api.h"

#include <assert.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>

using namespace std;

class BufferFile {

public:
	string file_path_;
	int length_;
	char* buffer_;

	explicit BufferFile(string file_path)
		:file_path_(file_path) {

		ifstream ifs(file_path.c_str(), ios::in | ios::binary);
		if (!ifs) {
			cerr << "Can't open the file. Please check " << file_path << ". \n";
			length_ = 0;
			buffer_ = NULL;
			return;
		}

		ifs.seekg(0, ios::end);
		length_ = ifs.tellg();
		ifs.seekg(0, ios::beg);
		cout << file_path.c_str() << " ... " << length_ << " bytes\n";

		buffer_ = new char[sizeof(char) * length_];
		ifs.read(buffer_, length_);
		ifs.close();
	}

	int GetLength() {
		return length_;
	}
	char* GetBuffer() {
		return buffer_;
	}

	~BufferFile() {
		if (buffer_) {
			delete[] buffer_;
			buffer_ = NULL;
		}
	}
};

int main(){
    ifstream fin("test.csv");
    string line;
    vector<mx_float> data;
    while (getline(fin, line)) {

        istringstream sin(line);
        string field;
        while (getline(sin, field, ',')) {
            data.push_back(atof(field.c_str()));
        }
    }
    fin.close();

    string json_file = "net-symbol.json";
    string param_file = "net-0000.params";

    BufferFile json_data(json_file);
    BufferFile param_data(param_file);

    mx_uint num_input_nodes = 1;
    const char* input_key[1] = { "data" };
    const char** input_keys = input_key;

    int input_shape[1] = { 2 };
    const mx_uint input_shape_indptr[2] = { 0,2 };
    const mx_uint input_shape_data[2] = { 1, static_cast<mx_uint>(input_shape[0])};

    mx_uint input_data_size = input_shape[0];
    PredictorHandle pred_hnd = 0;

    int dev_type = 1;
    int dev_id = 1;

    MXPredCreate(static_cast<const char*>(json_data.GetBuffer()),
        static_cast<const char*>(param_data.GetBuffer()),
        static_cast<int>(param_data.GetLength()),
        dev_type,
        dev_id,
        num_input_nodes,
        input_keys,
        input_shape_indptr,
        input_shape_data,
        &pred_hnd);

    assert(pred_hnd);

    MXPredSetInput(pred_hnd, "data", data.data(), input_data_size);

    MXPredForward(pred_hnd);
    mx_uint output_index = 0;

    mx_uint* shape = nullptr;
    mx_uint shape_len;

    // Get Output Result
    MXPredGetOutputShape(pred_hnd, output_index, &shape, &shape_len);

    size_t size = 1;
    for (mx_uint i = 0; i < shape_len; ++i) { size *= shape[i]; }

    vector<float> output(size);

    MXPredGetOutput(pred_hnd, output_index, &(output[0]), static_cast<mx_uint>(size));

    for (auto i = output.begin(); i != output.end(); ++i) {
        std::cout << *i << ' ';
    }
}

The CMakeLists-dynamic.txt file is like this:
cmake_minimum_required(VERSION 3.9)

set (CMAKE_CXX_STANDARD 11)

add_executable(transformer
        main.cc
)

target_link_libraries(transformer
        ${PROJECT_SOURCE_DIR}/lib/libmxnet.so
)

target_include_directories(transformer PUBLIC
        ${PROJECT_SOURCE_DIR}/include
)

The CMakeLists-static.txt file is like this:
cmake_minimum_required(VERSION 3.9)

set (CMAKE_CXX_STANDARD 11)

add_executable(transformer
        main.cc
)

target_link_libraries(transformer
        rt
        ${PROJECT_SOURCE_DIR}/lib/libmxnet.a
        ${PROJECT_SOURCE_DIR}/lib/libdmlc.a
        ${PROJECT_SOURCE_DIR}/lib/libnnvm.a
)

target_include_directories(transformer PUBLIC
        ${PROJECT_SOURCE_DIR}/include
)

so, to try my situation easily.
# Try model using python script
cd lrcplus/python
python train.py

# Try to build executable program with linking to dynamic library
cd ../build
cp ../CMakeLists-dynamic.txt ../CMakeLists.txt
cmake ../
make
mv ./transformer ../python/
cd ../python
./transformer

#Then you may see message like this
#net-symbol.json ... 1022 bytes
#net-0000.params ... 164 bytes
#4.0142

# Try to build executable program with linking to static library
cd ../build
cp ../CMakeLists-static.txt ../CMakeLists.txt
cmake ../
make
mv ./transformer ../python/
cd ../python
./transformer

#Then you may see message like this
#net-symbol.json ... 1022 bytes
#net-0000.params ... 164 bytes
#transformer: /data1/qspace/christding/workspace/mxnet_c++/Basic/lrcplus/main.cc:101: int main(): Assertion `pred_hnd' failed.

I really appreciate your  cooperation.

@hengdos I was trying to reproduce this issue on Mac and Ubuntu. But I was not able to invoke 'make' while building the 'transformer' with statically linked libraries. Can you please ensure that CMakelist.txt for static library is correct?
I will try it again as well.

@hengdos I was trying to reproduce this issue on Mac and Ubuntu. But I was not able to invoke 'make' while building the 'transformer' with statically linked libraries. Can you please ensure that CMakelist.txt for static library is correct?
I will try it again as well.

@leleamol hi, I have tested the following CMakelist.txt for static library on macOS Mojave 10.14.3.
cmake_minimum_required(VERSION 3.9)

set (CMAKE_CXX_STANDARD 11)

add_executable(transformer
        main.cc
)

target_link_libraries(transformer
        ${PROJECT_SOURCE_DIR}/lib/libmxnet.a
        ${PROJECT_SOURCE_DIR}/lib/libdmlc.a
        ${PROJECT_SOURCE_DIR}/lib/libnnvm.a
)

target_include_directories(transformer PUBLIC
        ${PROJECT_SOURCE_DIR}/include
)

The output is like this:
$ ./transformer
net-symbol.json ... 954 bytes
net-0000.params ... 164 bytes
Assertion failed: (pred_hnd), function main, file /Users/heng/Projects/lrcplus/main.cc, line 101.
[1]    30126 abort      ./transformer

Thanks for your reply.

I checked with @perdasilva, in our current CI setup, we build the static and shared libraries. However, the testins is extensively done on dynamic (shared) libraries.
Currently, we do not have test static targets.
I would add this requirement (providing support for static libraries of mxnet) as feature request.
I will remove the C++ lable as the issue/question is not related to C++ API.
@mxnet-label-bot add [Feature Request]
@mxnet-label-bot remove [C++]

@mxnet-label-bot remove [C++]

It would be useful if you can provide a backtrace.   ulimit -c unlimited and doing gdb on the core, or runnning directly with gdb and doing "bt"


Improve Jest configuration and tests

Summary of changes:

Install @babel/preset-env as a dependency.
Write jestTransformerBabelJest to handle transforms for .js and .jsx ESModule files.
Rename the Jest transformer files to camelCase.
Write tests for the prebuild function.
Clean up the Jest config object in src/.jestrc.ts and make it DRYer.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Merge OpenAI Triton till Nov 8th

It is essential to keep up to date with OpenAI Triton, to get the latest features, and reduce the difficulty to upstream our changes to OpenAI Triton.
This ticket is continuation of:

#2483
#2383

Moved up from Oct 24 to Nov Triton version from OpenAI. [https://github.com/intel/intel-xpu-backend-for-triton/pull/2634, https://github.com/intel/intel-xpu-backend-for-triton/pull/2636, https://github.com/intel/intel-xpu-backend-for-triton/pull/2639, https://github.com/intel/intel-xpu-backend-for-triton/pull/2643, https://github.com/intel/intel-xpu-backend-for-triton/pull/2645, https://github.com/intel/intel-xpu-backend-for-triton/pull/2649, https://github.com/intel/intel-xpu-backend-for-triton/pull/2652, https://github.com/intel/intel-xpu-backend-for-triton/pull/2659 ]


bpffs: Use defaults.BPFFSRoot to distinguish default/custom mount location

Apart from empty string, also use the value from defaults.BPFFSRoot to distinguish whether the default or a custom mount location is being used.
When Cilium is deployed via Helm, the bpfRoot value in checkOrMountFS is never empty, but set to /sys/fs/bpf by default. However, even if this is the default value, this was handled by the checkOrMountCustomLocation() path instead of the checkOrMountDefaultLocations(), which caused an unnecessary warning BPF filesystem is not mounted.
Fixes: https://github.com/cilium/cilium/issues/36148

/test


Inserting a value only if it does not exist

Is your feature request related to a problem? Please describe.
Right now, there is no way to set a value in a way such that no key is ever overwritten, i.e. you can't specify "only add the value if the key does not already exist".
Describe the solution you'd like
Something like Map's putIfAbsent function, so I could do something like:
if (box.putIfAbsent(key, () => value) == value) {
  /* value was inserted */
}

Describe alternatives you've considered
This works, but it isn't fully atomic:
if (!box.containsKey(key)) {
  await box.put(key, value);
}

From what I can tell from the Hive source, containsKey will not return true until the put transaction is entirely completed. In other words:

The code is suspended while awaiting on box.put.
Other asynchronous code tries to insert a value with the same ID.
containsKey will be false, since the original suspended code has not yet finished inserting the value.

The safer workaround would be to use a synchronization / mutex package around this code section.
Version

Platform: Web
Flutter version: [e.g. 1.5.4] N/A
Hive version: [e.g. 0.5.0] 1.4.1

The code is suspended while awaiting on box.put.
Other asynchronous code tries to insert a value with the same ID.
containsKey will be false, since the original suspended code has not yet finished inserting the value.

Actually containsKey will return true. Because box.put puts value to the memory synchronous..

I also tried this test too.
import 'package:hive/hive.dart';

Box box;

Future test(String name) async {
  if (!box.containsKey('name')) {
    box.put('name', name);
  }
}

void main() async {
  box = await Hive.openBox('testBox');
  await box.clear();

  await Future.wait([
    test('Jane'),
    test('David'),
  ]);

  print('Name: ${box.get('name')}');
}

The result will be:
Name: Jane

@refi64 Like @TheMisir Said, the following code
if (!box.containsKey(key)) {
  await box.put(key, value);
}

works and is fully atomic. Registering keys is always a synchronous operation and since Flutter is single threaded, you can be sure that the result of containsKey() is reliable.

Ah, thanks for the response. I had glanced through the code but didn't
realize the key registration was synchronous.
On Sun, Aug 2, 2020 at 10:44 AM Simon Leier<EMAIL_ADDRESS>wrote:

@refi64 https://github.com/refi64 Like @TheMisir
https://github.com/TheMisir said, the following code
if (!box.containsKey(key)) {
await box.put(key, value);
}
works and is fully atomic. Registering keys is always a synchronous
operation and since Flutter is single threaded, you can be sure that the
result of containsKey() is reliable.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hivedb/hive/issues/340#issuecomment-667689980, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAM4YSN636IBB5NVEJTOO7TR6WCUXANCNFSM4NZ2IBRQ
.

--
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
https://refi64.com/


improve error messages for render graph runner

Objective
Currently, errors in the render graph runner are exposed via a Result::unwrap() panic message, which dumps the debug representation of the error.
Solution
This PR updates render_system to log the chain of errors, followed by an explicit panic:
ERROR bevy_render::renderer: Error running render graph:
ERROR bevy_render::renderer: > encountered an error when running a sub-graph
ERROR bevy_render::renderer: > tried to pass inputs to sub-graph "outline_graph", which has no input slots
thread 'main' panicked at 'Error running render graph: encountered an error when running a sub-graph', /[redacted]/bevy/crates/bevy_render/src/renderer/mod.rs:44:9

Some errors' Display impls (via thiserror) have also been updated to provide more detail about the cause of the error.

@dataphract could you update this on current main?

bors r+


add retry-ability to write / set functions

Optionally functions like upsert etc... should automatically handle Temporary failure errors and automatically retry those ops. This should be configurable setting as well # of retries and retry interval.

https://developer.couchbase.com/documentation/server/current/sdk/nodejs/handling-error-conditions.html


Node lineRange() values are off by 1

Description:
The values returned by node.lineRange().startLine().line() and node.lineRange().startLine().offset() are off by 1 compared to the bal file.
Refer to the red boxes below.

Suggested Assignees (optional):

Now all internal components and the semantic API use 0-based positioning. Hence the position given above is correct.


exe built on .net version 4.7 adds System.Windows.Forms.ApplicationConfigurationSection in app.confing on 4.6 version when i run .exe

Hello,
I have an application(.net) which is built on .net version 4.7.1 , when i run this application (.exe) on .net 4.6 version System.Windows.Forms.ApplicationConfigurationSection node automatically gets added to my configuration file. i gone through code there not any such code of adding System.Windows.Forms.ApplicationConfigurationSection to config file.
Does .net adds this automatically?
can you please tell me how come out of this as i don't want to remove "System.Windows.Forms.ApplicationConfigurationSection" every time from config file manually. is there another way that can prevent "System.Windows.Forms.ApplicationConfigurationSection" getting added to app.config
Note-when i remove "System.Windows.Forms.ApplicationConfigurationSection" it gets added automatically on 4.6 version of .net

This repo is no longer actively monitored. Closing up old issues that have not had activity in while. If this is still an issue, please open a new issue in an appropriate repo listed in microsoft/dotnet#1275

This repo is no longer actively monitored. Closing up old issues that have not had activity in while. If this is still an issue, please open a new issue in an appropriate repo listed in microsoft/dotnet#1275


SpecASFIS: Code CTL, probable wrong description

The ASFIS code CTL was in the vocabulary with the description Sepiida (order), and was changed in September to Sepiidae, sepiolidae (families)
https://vocab.ices.dk/?codeguid=83d27f5a-fa74-45fe-80aa-7e17fb3be284
In IC_species, the code CTL has still the description Sepiida.
We traced back the ASFIS lists and it seems that the code always had the description Sepiidae, sepiolidae, so it seems that this was intentionally decided at some point, to use a more general description.

@MariaMakri ask FAO for a new ASFIS for Sepiida (order). Leave the old code only for historical data.
Communicate with WGCEPH if they will be happy with this solution

We looked at the data in RDBES, and have seen that all countries except France which has used Sepiida, have reported data using either sepiidae or sepiolidae, which have corresponding ASFIS codes. Therefore, I suggested that they continue to report data for the two families separately, when they can. They can then group them during their assessment process.
I sent an email to the WGCEPH chairs, to ask what they think. One responded that:
Analysis of stock trends and tentative assessment is undertaken for cuttlefish Sepiida. As sepiolid landings in ICES are absolutely negligible, we take code CTL as the face value for Sepiidae. However, reporting of sepiids and sepiolids separately would be useful though I do not expect any major changes in our perception of the situation.
It is worth noting that 'Sepiida', only leads to the other two families and does not contain other taxa, which means that when they are using the code Sepiidae, Sepiolidae, this only contains the two families. We can, nevertheless, request a new code for Sepiida, instead of using CTL.
So, in RDBES, the stock can be defined as CTL or with the new code that will be requested.


Keybase on Ubuntu 16.04 is broken

Tried to remove a device (my Windows 10 machine) using my Ubuntu server and got this.

ERROR dial unix /run/user/1000/keybase/keybased.sock: connect: no such file or directory

Did you run run_keybase.sh?
Cc: @oconnor663 and @cjb

keybase log send would be very helpful if you get a chance. I suspect something along the lines of "XDG_RUNTIME_DIR doesn't actually exist".

Yeah, I'd guess that you forgot to run run_keybase on the Ubuntu server.


Add initial query page

Changes made

Added query page containing placeholder app logo
Used controlled input behaviour on query input
Added prettier package and put prettier config in .prettierrc file
Add format command to package.json
Add simple grid styling to content
Add temporary fake API call returning fake data when query sends

Before sending query

After sending query

Also, I believe file naming convention should be spinal case, e.g. content-component, query-component.

Renamed appropriately

@Arif-Khalid Is it possible for you to add the .prettierrc file, and possibly an npm command to do style correction?

Added format command to package.json and moved prettier config to .prettierrc

After the most recent review I have also added simple grid styling, a button that sends the query and a custom hook that calls a simulated fetch.

A few comments on the UI:

The screen before searching should not have any scroll bar. This can be done by setting the overflow property to overflow: auto instead of overflow: scroll.
User should be able to press enter to do the search, instead of having to press the send button. I would suggest wrapping the input field in a form element, because the form element handles hitting enter for you. But up to you how you want to resolve.

Besides, some comment on quality of code below.

Good observations which have been addressed by my latest commits


Not able to use LDAP Authentication

Hi, Ldap Authentication doesn't work
I use FreeIpa and make configuration in config.yml
 ldap:
    http_enabled: true
    transport_enabled: true
    order: 1
    http_authenticator:
      type: basic
      challenge: true
    authentication_backend:
      type: ldap
      config:
        enable_ssl: false
        enable_start_tls: false
        enable_ssl_client_auth: false
        verify_hostnames: true
        hosts:
          - ipahostname:389
        bind_dn: 'username'
        password: 'pasword'
        userbase: 'dc=example,dc=org'
        # Filter to search for users (currently in the whole subtree beneath userbase)
        # {0} is substituted with the username
        usersearch: '(uid={0})'
        # Use this attribute from the user as username (if not set then DN is used)
        username_attribute: uid

i see thic config in kibana web, but there is only one Authentication backend. it is Internal Users Database, when i try to login whith ldap credentials , it fails  : [2019-04-11T10:44:46,316][WARN ][c.a.o.s.a.BackendRegistry] [VeBKci6] Authentication finally failed for username from <IP_ADDRESS>:36614
how can i make ldap Authentication up and use it by default?

it works, problem was in incorrect userbase


extension protocol handler response is always lower case

Describe the bug
After upgrading from 5.5 to 6.0, my extension gets a lowered protocol routing.
To Reproduce
Steps to reproduce the behavior:

Go to 'lens://extension/bla/bla/TEST/TEST'
Wait for lens to be focus, see log.

Expected behavior
Case should send correctly.
Environment (please complete the following information):

Lens Version: 6.0.1
OS: Linux
Installation method (e.g. snap or AppImage in Linux): rpm

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
info: [PROTOCOL ROUTER]: routing lens://extension/bla/bla/test/test

Additional context
Add any other context about the problem here.

Do you have evidence that the values being provided to your extension are lowercased as well? I tried to reproduce both in unit tests (wasn't happening there) and manually testing on macOS and linux find that we don't lowercase them at all.
On linux I ran lens lens://app/FOOBAR from the command line and within lens the uppercase was still present.
So this sort of sounds like whatever is configured to run the through the opening (probably xdg-open) is lowercasing it.

We changed our logic. So, we don't need any more the protocol feature.

We have the same bad behavior in our lens extension in latest lens version. The extension has authorization and uses authorization code flow to retrieve token from identity provider.
When external browser after successful authorization step redirects to lens via url (for example, lens:\\extension\<name of extension>\pathToHandler?code=AbC&state=DeF) the whole url converted to lowercase. Then app uses code from query string to retrieve token.
Our identity provider supposes that code is bad because token validation case-sensitive and also signature check of the code fails.
I think, the problem related to these parts:
https://github.com/lensapp/lens/blob/master/packages/core/src/main/start-main-application/runnables/show-initial-window.injectable.ts#L15
https://github.com/lensapp/lens/blob/master/packages/core/src/main/electron-app/runnables/setup-deep-linking.injectable.ts#L67


Deploy a second node in a separate environment

Martin: my original plan was to deploy in a different hyper scaler. But for now a different AWS region is sufficient.
We have selected Stockholm to expose ourselves to some of the network delay problems we might encounter.

We are fully running in Stockholm


Fix linker error upon following README’s Carthage instructions

Resolves #1183. See commit messages for more details.

These instructions were added in https://github.com/ably/ably-cocoa/commit/9a1e84cb10aace173bd43348b23ce75fdecf2f98, as part of the PR for adding
Swift Package Manager support

I bet it should be another commit hash here.

This is the issue described by https://github.com/ably/ably-cocoa/pull/1599, which was resolved in https://github.com/ably/ably-cocoa/commit/9a1e84cb10aace173bd43348b23ce75fdecf2f98
by no longer embedding the dependency frameworks inside Ably.framework.

Not sure if "Emit retry attempt in state changes" has anything related to embedding frameworks.

Sorry @maratal — the commit hash is right but the linked issue is wrong, should be #1594. I've updated the commit message.

Ah yes, sorry! The first commit was meant to be 9691ebc. I've updated. Does that look right now?

@maratal pointed out that the commit message is still wrong — the mention of 9a1e84c should actually be 9691ebc. Unfortunately this is now merged so there's not loads that I can do, but leaving a message here in case somebody ends up on this PR in the future.


Master

Docs Build status updates of commit 960b190:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

DocsLegal/docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Codify and document base-image production + Enable testing with Fedora

Summary of additions/changes:

General re-organizing of .cirrus.yml for readability.  Moved all env. vars to a single section at the top, added labels/comments.
Added semi-automation for building non-native GCE base-images (e.g. Fedora & Atomic).  Infrequent but complex process, requires human attention for every new distribution release.
Fully documented the non-native GCE base-image production process.
Converted JSON configuration to YAML for readability, and Implemented Makefile to drive image-building processes.  Added simple unit-test to verify YAML syntax and JSON conversion.
Updated all the .cirrus.yml values for *_BASE_IMAGE to GCE images produced using the documented (Makefile) process (above).
Updated scripts function in Fedora Atomic VMs
Enabled PR testing on Fedora 29

CIRRUS: REBUILD IMAGES

Oops, dupe PR.

note to me:

FAH 29 fails w/ permission-denied creating /go
Fedora 29 finds lint in cmd/podman/rmi.go

@rhatdan Work is on pause for https://github.com/containers/conmon/pull/6 then I'll hop back here (unless someone else wants to take over).  The major task left on this one is getting FAH to play nice with Cirrus's VM bootup script.  I think all that requires is moving $GOPATH from /go to /tmp/go, but there could be other SNAFU's hiding.  The other failures (Ubuntu and Fedora) are trivial typo's to fix IIUC, just a typo.
An option here could be that I split it up into smaller PR's, but then they become dependent on merge-order (which can be annoying).  Only advantage I see there is getting the new (easier to read) organization, and updated documentation.  Making FAH work could be more involved than just changing directories.

/approve

Sure, LGTM

I've playedf on Ubuntu with rootless containers, but the runc available there is too old and doesn't work with rootless containers.  Unless we build a custom runc, we should probably just disable rootless tests there

I've playedf on Ubuntu with rootless containers, but the runc available there is too old and doesn't work with rootless containers. Unless we build a custom runc, we should probably just disable rootless tests there

@giuseppe for the Cirrus tests we do build runc (and other deps) from source on all platforms.  However, to save testing-time, it's done when the VM image is produced.  It's possible the images could get out of sync with each other, but I don't think that's an issue here.  In either case, I should probably make that detail available.

@baude @mheon Okay I think I've got it this time.  The winning combination is to use the *-libpod-0c954a67 images which have the freshly built runc, and also include Giuseppe's fix.  Fingers-crossed.

(adding a jira card to simplify the runc + other deps situation, so we just install the packages at test-time instead of VM image build time)

*sigh* still seeing rootless tests fail on F29: https://cirrus-ci.com/task/5966156714213376

@giuseppe thx again for the help w/ runc.  @baude @mheon PTAL (when you have a moment).  Only change other than rebasing is, I added a big list of env. vars to murder (unset) prior to testing. Maybe there's a cleaner way to do this, or it's not necessary.  I'm open to changing/dropping that part if you like.
The major improvements in this PR are:
* Testing with both Ubuntu and Fedora
* Documentation
* Makefile for working with VM images
* Manual-but-scripted base-image importing into GCE

resolved conflict, rebased, --force pushed.

/retest

bot, retest this please

rebased, updated to include RUNC_COMMIT from #1887, --force pushed.

Rebased & --force pushed

@mheon @baude all green now.

This LGTM, but will defer merge to @baude - he's worked a lot more with our CI than I have

@mheon of course, no problem at all.  Though it would be good to take a look at some point.  It's not as complicated as you may think.  Everything below .cirrus.yml is very linear.  There's even (gasp) contrib/cirrus/README.md documentation :grin:

/lgtm