Reduce the number of calls to ZK to fetch the current ideal state in rebalancer

In TableRebalancer, after updating the ideal state (after moving segments), if we successfully persisted this in ZK, we were still going back and fetching the current ideal state from ZK again.
The changes here fetch the ideal state from ZK and re-compute target ideal state only if we failed to persist updated ideal state in ZK earlier due to version error. If there is no version error, we simply start the next iteration (if there are more segments to be moved to get to target) by taking ideal state we just wrote in ZK as the current ideal state.

cc @Jackie-Jiang , @mcvsubbu , @snleee

Not needed with after changes to rebalancer as part of instance assignment


bazel: update DEPS on googleurl

Commit Message: update DEPS on googleurl
Risk Level: Low
Testing: Current test suites.
Docs Changes: n/a

/assign @wrowe
Hi William, in this PR I added "-Wno-c++11-narrowing" in bazel compile options. It seems that Windows doesn't support it. Do you have any suggestion on this?

Waiting on moving this source to GitHub? Or ready to fly as-is?

/retest

A newer version of googleurl removes the use of -Wno-c++11-narrowing.
I updated the DEPS and this PR should be good to go.

/lgtm deps


Is it not possible to use 'useSupabaseClient' inside a composable?(Outside of component)

I want to have all my API requests inside a composable that uses useSupabaseClient(). Like so:
useAuth.ts:
const client = useSupabaseClient();
export default function () {
  const signIn = async (email: string, password: string) => {
    try {
      const { data, error } = await client.auth.signInWithPassword({
        email,
        password,
      });
      return { data, error };
    } catch (error) {
      console.error("Login error thrown from useAuth.ts:", error);
      throw error;
    }
  };

  // other calls...
}

Don't know why but sometimes .auth client works. Not every time.
useSupabase.ts:
const client = useSupabaseClient();
export default function () {
  const readProfiles = async (userId: string) => {
    try {
      const { data, error } = await client
        .from("profiles")
        .select("*")
        .eq("id", userId);
      return { data, error };
    } catch (error) {
      console.error("Read profiles error thrown from useSupabase.ts:", error);
      throw error;
    }
  };
    // other calls...
 }

But I am getting this: TypeError: Cannot read properties of undefined (reading 'from').
I think it has something to do with the timing? Maybe the client isn't ready by the time the component is mounted?
Am I doing something wrong or is it not posibble because the library depends on Nuxt components?

I think for client to be defined, you have to use it inside the composable function definition. Something like:

export default function () {
  _const client = useSupabaseClient();_ // add your supabase composable here
  const readProfiles = async (userId: string) => {
    try {
      const { data, error } = await client
        .from("profiles")
        .select("*")
        .eq("id", userId);
      return { data, error };
    } catch (error) {
      console.error("Read profiles error thrown from useSupabase.ts:", error);
      throw error;
    }
  };
    // other calls...
 }


How to save new effected audio?

Is there any way to save new audio(effect added). I have refer this stack overflow question but it is not working.

+1 !!!!!

@ibhavin Can you resolve the problem?

@emreozdil  @shalins
I haven't find any solution to save new effected audio. So, I have used AudioKit library.
Here is what I have done so far:

Install AudioKit to your project
pod 'AudioKit/Core'

Convert Audio and save file:

   var settings = [String : Int]()

   func generate_Voice(sourcePath: String, value: Float, rateOrPitch: String) {
        var sourceFile: AVAudioFile!
        var format: AVAudioFormat!
        do {
            sourceFile = try AVAudioFile(forReading: URL(string: sourcePath)!)
            format = sourceFile.processingFormat
        } catch {
            fatalError("could not open source audio file, \(error)")
        }

        //: ## Engine Setup
        //:    player -> pitch -> mainMixer -> output
        //: ### Create and configure the engine and its nodes
        let engine = AVAudioEngine()
        let player = AVAudioPlayerNode()

        engine.attach(player)
        let changeAudioUnitTime = AVAudioUnitTimePitch()
        let speedControl = AVAudioUnitVarispeed()

        if (rateOrPitch == "rate") {
            changeAudioUnitTime.rate = value
        } else {
            changeAudioUnitTime.pitch = value
        }

        speedControl.rate = 0.75
        engine.attach(changeAudioUnitTime)
        //engine.attach(speedControl)
        engine.connect(player, to: changeAudioUnitTime, format: nil)
        engine.connect(changeAudioUnitTime, to: engine.outputNode, format: nil)

        // schedule source file
        player.scheduleFile(sourceFile, at: nil)
        //: ### Enable offline manual rendering mode
        do {
            let maxNumberOfFrames: AVAudioFrameCount = 4096 // maximum number of frames the engine will be asked to render in any single render call
            try engine.enableManualRenderingMode(.offline, format: format, maximumFrameCount: maxNumberOfFrames)
        } catch {
            fatalError("could not enable manual rendering mode, \(error)")
        }
        //: ### Start the engine and player
        do {
            try engine.start()
            player.play()
        } catch {
            fatalError("could not start engine, \(error)")
        }
        //: ## Offline Render
        //: ### Create an output buffer and an output file
        //: Output buffer format must be same as engine's manual rendering output format
        let outputFile: AVAudioFile
        do {
            let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
            let outputURL = URL(fileURLWithPath: documentsPath + "/mixLoopProcessed.caf")
            outputFile = try AVAudioFile(forWriting: outputURL, settings: sourceFile.fileFormat.settings)
        } catch {
            fatalError("could not open output audio file, \(error)")
        }

        // buffer to which the engine will render the processed data
        let buffer: AVAudioPCMBuffer = AVAudioPCMBuffer(pcmFormat: engine.manualRenderingFormat, frameCapacity: engine.manualRenderingMaximumFrameCount)!

        //: ### Render loop
        //: Pull the engine for desired number of frames, write the output to the destination file
        while engine.manualRenderingSampleTime < sourceFile.length {
            do {
                let framesToRender = min(buffer.frameCapacity, AVAudioFrameCount(sourceFile.length - engine.manualRenderingSampleTime))
                let status = try engine.renderOffline(framesToRender, to: buffer)
                switch status {
                case .success:
                    // data rendered successfully
                    try outputFile.write(from: buffer)

                case .insufficientDataFromInputNode:
                    // applicable only if using the input node as one of the sources
                    break

                case .cannotDoInCurrentContext:
                    // engine could not render in the current render call, retry in next iteration
                    break

                case .error:
                    // error occurred while rendering
                    fatalError("render failed")
                }
            } catch {
                fatalError("render failed, \(error)")
            }
        }

        player.stop()
        engine.stop()

        print("Output \(outputFile.url)")
        print("AVAudioEngine offline rendering completed")
    }

Pass your sourcefilepath:
self.generate_Voice(sourcePath: filePath, value: 1200, rateOrPitch: "pitch")

This is working fine for me.

Thanks @ibhavin


Add two props: buttonSize and labelStyle to allow styling these two

I would like to change the button size (make it smaller) and label font/color (make it bigger, etc)

@williamhatsv
Thank you for your PR!
looks good!
I will merge it 😺

I bumped the version!
+<EMAIL_ADDRESS>
Please use this version 😺


When maps tilted and at high zoom level, symbol layer disappears

this is going to be fixed with using the 6.x dependency of the maps sdk.

Nice, moving off the 0.4.0 milestone then.

Nothing actionable in this repo to fix this. Closing.


docs: update

[
  {
    "dir": "A directory where depending on changed outputs. A relative path from the base directory",
    "files": [
      {
        "path": "A file depending on changed outputs. A relative path from dir",
        "outputs": [
          {
            "name": "changed output name",
            "change": "delete"
          }
        ]
      }
    ]
  }
]


Allow user to seen other clients in a channel

To help identify bots, it is useful to be able to see their nicks. This patch does not prevent multiple clients from joining with the same nick, but given that messages can only be recieved and not sent, the nick duplication should not be an issue.

I don't want to sound dismissive, but the idea that clients are in their own tiny sandbox and cannot see other clients is probably one of the most fundamental underlying architecture decisions of ircstream.
First of all there is a lot of underlying complexity that having a proper multi-user server entails. Listing duplicate nicknames -as you already mentioned- carries a significant risk of breaking clients out there that make the (protocol-compliant) assumption nicknames are unique. Moreover, clients typically issue NAMES upon joining a channel, then expect to see JOIN/PART/QUIT for subsequent changes. (Per RFC 2821 3.2.1: "Once a user has joined a channel, he receives information about all commands his server receives affecting the channel.  This includes JOIN, MODE, KICK, PART, QUIT and of course PRIVMSG/NOTICE.  This allows channel members to keep track of the other channel members, as well as channel modes.") Clients will also expect WHOIS against clients they've been told exist to work. Etc.
But, more broadly, ircstream has been designed from the ground up with the idea that you can operate multiple servers (on the same server, in multiple pods, across different AZs/regions etc.) and loadbalance/geobalance as necessary. Clients should be entirely oblivious of the fact that they may end up at a random server, and different with each reconnect. I (obviously!) did not want to implement the server-to-server part of the IRC protocol and build an entire IRC network with state syncing across it, so it's all built using a shared-nothing approach. The client list is state internal to the individual server, and the only guarantee that the server is making to clients is that the exist, and that rc-pmtpa exists. Reconnecting and getting an entirely different view of NAMES would "leak" an internal-to-the-server data structure, and, ultimately, be extra confusing for everyone.
Finally, I also wanted to avoid any potential bot authors from using NAMES as a heartbeat, for example to check whether their "primary" bot is online and having a backup bot take over. I'm not aware of anyone doing this, but they're pretty creative over all so it also wouldn't surprise me :grinning:
All that said, between this task and the Prometheus metrics one, I do hear the concern of (the lack of) introspection, where the operator wants to know how many clients or which are connected to a given server. A few years ago I had run some experiments of adding a "manhole" functionality, and I have some vague ideas of having an "ircstreamctl" for some common diagnostics and operations (like list clients and their streams, increase the debug level for a specific client, etc.). I'll revisit this, hopefully soon. Hopefully this would work for you?

That will work, it doesn't matter much how we locate or count clients, though I would like to avoid having to parse log files 😀
Something like an ircstreamctl would be fine, as locating and contacting bot owners is entirely manually anyway.


您好，我遇到一个小问题：可视化结果时程序出现报错。'feats.pth‘没有找到。

File "tools/get_vis_result.py", line 55, in
gallery_feats = torch.load(Cfg.LOG_DIR + 'feats.pth')
File "/home/gyc197/anaconda3/lib/python3.6/site-packages/torch/serialization.py", line 356, in load
f = open(f, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: './logfeats.pth'

You may save 'feaths.pth' as ''./logfeats.pth' as the error log shows.


Support wildcards for no_proxy setting

Describe what happened:
I used a wildcard hostname *.datadoghq.com as a list item in no_proxy setting. Requests to all subdomains (e.g. 6-11-2-app.agent.datadoghq.com) used the proxy
Describe what you expected:
Requests to any subdomain of datadoghq.com should not use the proxy
Steps to reproduce the issue:
Use a wildcard domain in the no_proxy settings, observe agent attempting to reach that domain via the proxy
Additional environment details (Operating System, Cloud provider, etc):
The generally expected behaviour for NO_PROXY is to respect wildcards as per https://www.gnu.org/software/emacs/manual/html_node/url/Proxies.html so it was a bit confusing when the DD agent didn't

Possible for no_proxy to support:

Private IP subnets range (e.g. <IP_ADDRESS>/8, <IP_ADDRESS>/12)
Host IP (or %%host%% equivalent). Need to bypass host IP as the Datadog-Agent running in Kubernetes will auto discover and perform health check on other services that running on same host.

This should be resolved now with the PR linked above.
See the go httpproxy docs here: https://godoc.org/golang.org/x/net/http/httpproxy#Config for supported matching.

This should be resolved now with the PR linked above.
See the go httpproxy docs here: https://godoc.org/golang.org/x/net/http/httpproxy#Config for supported matching.


Fix cancel/revert issues with service reconfigure (SCRD-5880)

Remove cancel from the playbook progress page for service reconfiguration (i.e. the page where the update has been kicked off and is running).
When cancel is clicked on the Configuration tab (when configuration files have been edited but no updated launched), reload the playbooks in addition to resetting their updated status

@guglo to test the reload logic... edit a configuration file (so it has the asterisk * next to it), then click "cancel". On Master the asterisk goes away and the copy of the file on disk gets reverted to its original state, but if you click on the file again to open the yml editor, the changes are still present. With my change, the contents of the yml editor will be updated as well.

@jeremy-moffitt  thanks will check again

@jeremy-moffitt  master does have some wiredness going on. I think reload could avoid that issue.


Missing: How to use User assigned managed identity to pull images from Azure Container Registry

This page talks about how System assigned Managed identity can be used to fetch from container registry. However, it does not mention what happens with VM scale sets which have a User assigned system identity.
Do we support using User assigned managed identities? If yes, how to specify clientId of the identity in case multiple User assigned managed identities are associated with the VM Scale set?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 8bce949c-a48a-9d33-5627-795a41cb0864
Version Independent ID: 0d51b682-6893-8640-3f5f-ae1b65378d81
Content: Azure Service Fabric - Configure container repository credentials - Azure Service Fabric
Content Source: articles/service-fabric/configure-container-repository-credentials.md
Service: service-fabric
GitHub Login: @erikadoyle
Microsoft Alias: edoyle

Thanks for the feedback! We are currently investigating and will update you shortly.

I am reaching out to the internal team to get the confirmation on this.

Please refer to this document for details on how to pull images from ACR using user assigned identity: https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tasks-authentication-managed-identity
@erikadoyle Can you please help confirm the following? Thanks :)

Do we support using User assigned managed identities? If yes, how to specify clientId of the identity in case multiple User assigned managed identities are associated with the VM Scale set?

@GiriB I checked with the SF team, and you can use the same steps documented here for user-assigned managed identities, provided the vmss has only a single identity. (I've updated the doc with a note.)
Assigning multiple identities to a vmss isn't a security best practice, but let me know if this is the case for you and you're blocked. (There is an undocumented way to specify a client id, however its unsupported and likely to be unavailable in the near future).


Display Item Count with Order Count in the Toolbar

What is the motivation for adding/enhancing this feature?
Currently, the app does not display the order item count along with the order count in the toolbar. This missing information hampers the users' ability to efficiently gauge the workload and estimate the time required to fulfill the orders.
What are the acceptance criteria?
Order item count is displayed with the orders.
Can you complete this feature request by yourself?

[ ] YES
[ ] NO

Additional information
Current scenario:

Expected scenario:

can you assign this to me

Closing this as not required for now.


2.6-beta: CommonHTML output with negative space gets wrong width in WebKit

If an expression includes negative skips, like x\hskip -.5em y will get the width of xy even though the y is positioned correctly.  Another example is \rm\LaTeX which uses backspacing to properly align the letters.
This is apparently a WebKit bug; it suggests that, when computing the width of a container, WebKit is adding up the widths of the elements without taking the negative margins into account, though it properly handles positive margins.  The bug affects both Chrome and Safari.
I do not currently have a work-around.

I think the way to handle this is to set the width explicitly for those mrow's that contain negative spacing.  There shouldn't be many of these, and the internal measurements should be accurate enough for those that do.

The issue1278 branch of my fork of MathJax includes this fix.

=> Merged.

=> In testsuite
MathMLToDisplay/issue1278.html
Note:  #1280 still needs to be handled to get full support for negative widths


Participation section

[x] Remove * in text
[x] Remove hyperlink in first paragraph ...
[x] Add new paragraph with button at the end, text: "Suggest Topic", link: https://sessionize.com/rust-linz/
[x] Declare new $contrast-color variable for each section type, the $contrast-color should be used for buttons and for the line in <h2>

Resolved


page template is ready

fix ENG-1285
overall:

[x] exam schemas and user.exams
[x] server support
[ ] styles
progressPage:
[x] timer
[x] level link

Summary by CodeRabbit

New Features

Introduced a new routing system for exam-related paths, including nested routes for exam stages.
Added functionality for managing exams, including starting, submitting, and retrieving user exams.
New Vue components for different stages of the exam process: Start, Progress, End, and Exam details.
Enhanced localization with a new section for exam-related translations.

Bug Fixes

Improved user experience by providing easier access to specific exam data.

Documentation

Updated schemas for Exam and UserExam to define their structures.

Refactor

Improved state management for exams within the Vuex store.

Also, the testcases seem to be failing on the CI

i think this test case should not related to current pr. but I can try fix it

ok the bug relates. i add localVue and uses vuex in exam tests. but it makes other vue tests fails. but without localVue exams tests cannot work. i need to find a way fix both


loadCount ignores $connection property in a related model when applied against a belongsToMany relation

Laravel Version: 5.8.23
PHP Version: 7.3.0
Database Driver & Version: Mysql 5.7.17

Description:
I have a multi tenant application with a core db connection named 'main' and multiple tenant DBs with connection name 'tenant'. The database param of 'tenant' connection is chosen dynamically using a http middleware.
I have the following two models:
Lead
class Lead extends Authenticatable
{

    protected $connection = 'tenant';

    public function favoriteProperties() {
        $dbName =$this->getConnection('tenant')->getDatabaseName();
        return $this->belongsToMany(\App\Property::class, "$dbName.favorite_properties");
    }
}

Property
class Property extends Model
{
    protected $connection = 'main';
}

There is a pivot table inside each tenant db by the name of 'favorite_properties' created with the following migraion
public function up()
    {
        Schema::create('favorite_properties', function (Blueprint $table) {
            $table->unsignedInteger('property_id');
            $table->unsignedInteger('site_id');
            $table->unsignedInteger('lead_id');
            $table->timestamp('created_at');
        });
    }

The problem:
When I run the following code:
$leads = \App\Lead::orderBy('id', 'ASC')->take(5)->get();
$leads->loadRelation('favoriteProperties');
$leads->loadCount('favoriteProperties');

The call to loadRelation works and generates the following  query:
select `properties`.*, `tenant_1`.`favorite_properties`.`lead_id` as `pivot_lead_id`, `tenant_1`.`favorite_properties`.`property_id` as `pivot_property_id` from `properties` inner join `tenant_1`.`favorite_properties` on `properties`.`id` = `tenant_1`.`favorite_properties`.`property_id` where `tenant_1`.`favorite_properties`.`lead_id` in (2, 6, 12) and `properties`.`deleted_at` is null

This gives me the right result.
But the second call to loadCount generates the following query:
select `id`, (select count(*) from `properties` inner join `tenant_1`.`favorite_properties` on `properties`.`id` = `tenant_1`.`favorite_properties`.`property_id` where `leads`.`id` = `tenant_1`.`favorite_properties`.`lead_id` and `properties`.`deleted_at` is null) as `favorite_properties_count` from `leads` where `leads`.`id` in (2, 6, 12))

This results in the following exception:
Base table or view not found: 1146 Table 'tenant_1.properties' doesn't exist.
Even though I have given the connection name in Property model, it is not used in neither queries.
The hacky fix:
Modifying the Property model and overriding the getTable() function fixed the issue:
class Property extends Model
{
    protected $connection = 'main';

    protected $table = 'properties';

    public function getTable()
    {
        return $this->getConnection()->getDatabaseName() . '.' . $this->table;
    }
}

So the root cause of the issues is eloquent not using the connection name to find out the DB name of a related model.
Steps To Reproduce:

This is a known limitation (loadCount() uses withCount() internally): #23042

Closing this as a duplicate of #23042. We're still open to PRs to help solve this problem.


json imported twice leading to CodeQL alert

@giancarloaf noticed this: https://github.com/HTTPArchive/data-pipeline/security/code-scanning/6
It's because of JSON being imported twice:
https://github.com/HTTPArchive/data-pipeline/blob/b230ef86a7845a73b1d735104e9a6c7ed3965896/modules/transformation.py#L2-L6
Thoughts whether we should fix this, and best way to fix (stick with bottom and import loads and dumps from json and remove top import json, or stop importing JSONDecodeError and instead change reference to json.JSONDecodeError?).

No strong preference. Going to remove the JSONDecodeError import and change the reference to json.JSONDecodeError.


Implement Instance.ChildRemoved

Add and implement Instance.ChildRemoved, and add a small test for it.

Coverage increased (+0.004%) to 97.984% when pulling<PHONE_NUMBER>8c1ee484f9c3e6d0ef48d5c101ec42 on tiffany352:child-removed into 363631e14b9059b629d7485249fbdbf41c3938a2 on LPGhatguy:master.


Added Vagrant description

added description for Vagrant
updated gitignore to not commit idea files when use Webstorm IDE

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@raisedadead Check out the change to .gitignore

@RandellDawson We should consolidate all the .gitignore files together from the different sub projects.

Closing as stale/decayed.
Hi,
Thanks a lot for your pull request. We have not seen an update from you on this PR in a while. We are going to have to close this as stale. If you are still interested, please open a fresh PR.
In case you believe this is closed incorrectly please hit us up in the Contributors Chat room to get this re-opened.
Thanks and happy contributing.


Make it easier for auth to consume newer formats

Description:
Some cleanups and making it easier for auth to consume newer versions of the auth storage in case we need to be backwards compatible.
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

Should this go with 0.80?

It's already in. Also with new groups I made it backwards compatible so it's not needed


chore(scripts/publish-private): publish eslint config to remix registry

This PR adds the @remix-run/eslint-config package to scripts/publish-private.js, some ~users~ supporters still have a .npmrc file pointed to our registry which causes them to not be able to install dependencies.
https://canary.discord.com/channels/770287896669978684/771068344320786452/950398837460189234

Closes: #

[ ] Docs
[ ] Tests

yeah definitely not necessary, and is indeed a good way to make them upgrade to use the npm registry for the day when we officially deprecate and stop publishing to the private registry


cannot use folderid with uploadfile method

In my script that uses pycloud I cannot use folderid=folderid, where folderid is an integer, with the uploadfile method. It causes some exceptions and doesn't upload the file.
My script has fileinfo = pc.uploadfile(files=[upload_file], folderid=folderid) and is causes exceptions (see below). I have to change the folderid=folderid to path='/' like below:
fileinfo = pc.uploadfile(files=[upload_file], path='/')
The pcloud api says that path is discouraged but still accepted. In lieu of path it provides a folderid parameter: https://docs.pcloud.com/methods/file/uploadfile.html
Exceptions when folderid is used with pycloud.uploadfile:
  File "/pcloud-upload/./pcloud-upload.py", line 215, in <module>
    fileinfo = pc.uploadfile(files=[upload_file], folderid=folderid)
  File "/home/alarm/.local/lib/python3.10/site-packages/pcloud/validate.py", line 19, in wrapper
    return func(*args, **kwargs)
  File "/home/alarm/.local/lib/python3.10/site-packages/pcloud/api.py", line 274, in uploadfile
    return self._upload("uploadfile", files, **kwargs)
  File "/home/alarm/.local/lib/python3.10/site-packages/pcloud/api.py", line 242, in _upload
    m = MultipartEncoder(fields=fields)
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py", line 125, in __init__
    self._prepare_parts()
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py", line 246, in _prepare_parts
    self.parts = [Part.from_field(f, enc) for f in self._iter_fields()]
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py", line 246, in <listcomp>
    self.parts = [Part.from_field(f, enc) for f in self._iter_fields()]
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py", line 494, in from_field
    body = coerce_data(field.data, encoding)
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py", line 472, in coerce_data
    return CustomBytesIO(data, encoding)
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py", line 535, in __init__
    buffer = encode_with(buffer, encoding)
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/multipart/encoder.py", line 416, in encode_with
    return string.encode(encoding)
AttributeError: 'int' object has no attribute 'encode'

When I change folderid to using path then I get expected result, the file is uploaded.

Good catch @ikwyl6! Thanks.
The API call works, if you use folderid as string. But since the API documents it as int I added a fix here: https://github.com/tomgross/pycloud/commit/110c11497affea40f773fb587ad6c2dd16d8c3de


Fix ROSBridgeLib Submodule Reference

Made ROSBridgeLib into a Submodule.

What was it before?

It was migrated into this new repo as individual files. See commit e570f52 for the files I removed.

Does that mean we can now use a simpler command to initiate the submodules? (Instead of what's outlined in: https://github.com/immersive-command-system/ImmersiveDroneInterface)

well you use git submodule update --init --recursive
(Even ImmersiveDroneInterface uses that in RadVizIntegration branch). It was just during the migration over to ImmersiveDroneInterface_2, we lost the submodule reference and git thought ROSBridgeLib was part of this repo rather than a submodule.

Fixed. Also we should probably update the README to be less cluttered in the future. Maybe break into multiple pages / move some to the wiki?

seems to work fine. Do need to be careful about having a SSH key tho.


Fix speaker detection by using an unique id for each macro invocation

Fixes speaker detection on M1 Mac mini / Fedora.

Uh. Thanks!


bug:  Fill out secondSignature field

Proposed changes
Corrected bug where secondSignature field will be filled out when secondSign function is called.
Types of changes

[X] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Refactoring (improve a current implementation without adding a new feature or fixing a bug)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Build (changes that affect the build system)
[ ] Docs (documentation only changes)
[ ] Test (adding missing tests or fixing existing tests)
[ ] Other... Please describe:

Checklist

[X] I have read the CONTRIBUTING documentation
[X] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments
N/A

macOS build failures appear to be due to a circleci admin issue


Speed up ResourceManager tests on Travis

Tests that use the mock resource manager helper take a relatively long time to complete on Travis.  LocalResourceManagerHelperTest takes ~100 seconds and ResourceManagerImplTest takes ~45 seconds.  When running locally, these tests only tend to take 3-5 seconds.  This is likely because the HttpServer library used for the mock spins up threads and also uses sockets, and Travis probably handles these operations more slowly.  We should think of a way to speed up these tests.

Not sure if this is a pattern but the two tests seem to take much less in oraclejdk8 builds:

LocalResourceManagerHelperTest ~ 5 sec
ResourceManagerImplTest  ~ 3 sec

Interesting, the faster test runs in version 8 build seem to be a trend.  Perhaps related, ConcurrentHashMap (used by the mock) seems to have radically changed in implementation between version 7 and 8.  There must be a lot of lock contention if this is indeed the cause.

see this.
A suggested workaround to add  exchange.getResponseHeaders().add("Connection", "close");
just before exchange.sendResponseHeaders (line 189) seems to make it much faster.


Regression using BMP on nRF52

Describe the bug
Updating from the original Black Magic Probe PR branch (#2791) to 0.25 I found that my setup did not work any more.
Bisection showed that the regression was introduced in 5b0f5db39d5e13b55b1568e5c8695721e18a48de (#2924).
To Reproduce

Attach a Black Magic Probe via USB
Attach an nRF52840 to the BMP (I'm using a particle-xenon board, but that should not make any difference)
probe-rs run --protocol=swd --chip nrf52840_xxAA ../../build/bin/particle-xenon/coap/cargo/thumbv7em-none-eabi/release/coap (I don't have a minimal binary to show, but given things don't get very far, I trust that you'll have something sufficiently suitable at hand)

Result:
Error: Connecting to the chip was unsuccessful.

Caused by:
    0: An error with the usage of the probe occurred
    1: Failed to find or attach to the target. Please check the wiring before retrying.

Expected behavior
Progress bars "Erasing", "Programming" etc.
Stacktrace

Operating System
Linux (Debian)
Additional context
Across the version where running fails, there is no difference in the output of probe-rs info; in both cases, it is
Probing target via JTAG

ERROR probe_rs::probe::common: Fewer IRs detected than TAPs
Error identifying target using protocol JTAG: An error with the usage of the probe occurred

Probing target via SWD

ARM Chip with debug port Default:
Debug Port: DPv1, DP Designer: ARM Ltd
├── 0 MemoryAP (AmbaAhb3)
│   └── ROM Table (Class 1), Designer: Nordic VLSI ASA
│       ├── Cortex-M4 SCS   (Generic IP component)
│       │   └── CPUID
│       │       ├── IMPLEMENTER: ARM Ltd
│       │       ├── VARIANT: 0
│       │       ├── PARTNO: Cortex-M4
│       │       └── REVISION: 1
│       ├── Cortex-M3 DWT   (Generic IP component)
│       ├── Cortex-M3 FBP   (Generic IP component)
│       ├── Cortex-M3 ITM   (Generic IP component)
│       ├── Cortex-M4 TPIU  (Coresight Component)
│       └── Cortex-M4 ETM   (Coresight Component)
└── 1 Unknown AP (Designer: Nordic VLSI ASA, Class: Undefined, Type: 0x0, Variant: 0x0, Revision: 0x0)

Debugging RISC-V targets over SWD is not supported. For these targets, JTAG is the only supported protocol. RISC-V specific information cannot be printed.
Debugging Xtensa targets over SWD is not supported. For these targets, JTAG is the only supported protocol. Xtensa specific information cannot be printed.

The good thing is that the "breaking" commit is a very simple one -- the bad thing is that looking at it I still don't know why it breaks.
I could confirm that of the only place introduced there that could really make a difference, which is
+        if probe.scan_chain().iter().len() > 0 {
+            for core in &cores {
+                probe.select_jtag_tap(core.interface_idx())?;
+            }
+        }

we do really leave the flow there at the ?, but I don't know enough of the context to understand why that is. I'm a bit confused why we even get into anything JTAG related, given that I explicitly selected SWD … maybe that check should only run if JTAG is used. The error in probe-rs info indicates that something is really afoul on the JTAG side -- maybe that's a bug with BMP, but even then, the code might be a bit defensive here. (Even if it is a bug in the BMP implementation, maybe probing JTAG on some target could fail on some targets even with a perfect debugger?).

I think its a bug that we do this when you are on SWD. Seems like some check fails somewhere.

I can confirm the above issue and can repro if more data is needed


Enable NetfilterCompatibleMode on all versions of Kernels.

NetFilterCompatibleMode is a feature added in this PR, this guarantees that traffic will pass through netfilter and iptable rules will be enforced.
However in this  PR added support only from kernels 5.4 and above. To support on all kernels,  we need to make tail call in to_netdev function in bpf_host.c. However introducing a new tailcall  in bpf_host causing few cilium upgrade test to fail.
Once we have fix for tail call Issue, which is addressed here.
We can solve this Issue, by introducing a new tailcall in bpf_host.c.

This is blocked by https://github.com/cilium/cilium/issues/16561.


Everything centered

I'd like to center the arrow in the tooltip. Anyone can make this work? I tried playing around with percentages but since the length of the text is dynamic I couldn't manage... Is this possible?
Centering the tooltip would also be nice.
Any ideas?

@stevelacey :+1:!

Working on this as part of #94

This is not default behavior of the library since v2.0 :)

@chinchang now* ?

@stevelacey fixed the typo. Thanks...that was a dangerous one :P

:smile::ok_hand:


Implements difficulty level.

Easy - random moves
Intermediate - score algorithm with 2 random directions
Hard - score algorithm with all directions
Impossible - minmax depth=6
Godmode - minmax depth=7

Addresses #12

Addresses #12

I guess your fork was behind some comments from the main branch so your PR has merge conflicts. Could you look into it please?

The branch still has merge conflicts. Try to resolve them please.

Yeah I will, just haven't had the time

Conflicts resolved, also added a few bug fixes and casing fixes.


Fix id color when Supporting Assets Name is missing

The issue was

The fix:

To do so, the validate function calls have been adapted


Changed YAML output to use placeholder instead of default data

I did not find a way to make the text area the height of the placeholder.

Fixed in fc6b471f352669d83b2b5c1fa8754257b8eb62b8


All PMGs Submissions to us are returning 400 errors

Jim Duff noticed on 6/15/2022 that all of the PMGs submissions to us are returning 400 errors to them.
Here's a look at all the submissions to ReportStream over the last 24 hours.  Note the 599 PMG failures.  I have not had time to see how long this has been going on:

Any idea what could be causing the errors?
You can find the errors by looking in the action_log table, or by querying the submissions API.

Deployment on May 19 broke the ISO 8601 date parsing. PR #5857 will address the issue.

I believe this has been resolved now. Closing.


Suggestion: Area Labels for Spirit Tree Map

Here is a rough mock up of my suggestion, that I threw together real quick, basically labels on the main areas? as a toggle probably?

Would you prefer labels per area or per teleport? I have already started working on a version that has toggle-able labels per tree. These what basically display the name you see when you hover a tree, but at all times on the map.
Would that satisfy your request?

Would you prefer labels per area or per teleport? I have already started working on a version that has toggle-able labels per tree. These what basically display the name you see when you hover a tree, but at all times on the map. Would that satisfy your request?

Yup thats even better, I was going to suggest it as well but I figured it might get a bit cramped with all the names.

Any update on progress on this?

Sorry, haven't had a lot of free time lately. Back from holiday now, so I will get onto this pronto. 👍🏼


support webpack4

When I upgrade webpack4 from webpack3, have a problem
ERROR in Sentry Plugin: RequestError: Error: getaddrinfo ENOTFOUND fse.int.xiaohongshu.com fse.int.xiaohongshu.com:80

That error indicates that your domain is incorrect (not publicly resolvable, etc). There shouldn't be anything from webpack 3 -> webpack 4 that affects this. Other folks have reported in #59 that the plugin works fine with webpack 4 (I just haven't gotten around to reviewing that PR to formally support it).

Can confirm that we have no issues with webpack 4.


1.1

Ticket: #
Reviewer: @
Issue

Solution

Impact

Usage

Considerations

Testing

Coverage increased (+3.3%) to 91.795% when pulling adf9f02984e81f1d811104c8039f18e83a606cd7 on 1.1 into 70ca859e009591faa7781a2ab0e7e17ad31dbb3a on master.


flist btc base

see maxux
as part of flist

flist ubuntu 22.04
zinit
docker tools
btc full node data (so can be mapped to a docker container)

purpose us to launch VM like this then use docker compose to quickly have all docker lightening node tools up & running

flist : threefolddev-btc_lnd-latest.flist


This is because _restore_patches() does not correctly undo what _try_patch() does in all cases. Specifically in the case where cxn methods are already patched with an instance-level bound method, the behaviour is correct, but in the simple case where commit and rollack are only defined as functions on type(cxn), the net effect is that they get turned into bound methods on the instance.
In the case where they are not originally bound methods in the starting state, the correct way to restore this is:
del cxn.commit
del cxn.rollback

This will remove the bound methods from the instance dictionary, and allow the type-level functions to be accessible once again.

Some inspiration on the correct approach, from the python mock library:
# From mock._patch#get_original
        try:
            original = target.__dict__[name]
        except (AttributeError, KeyError):
            original = getattr(target, name, DEFAULT)
        else:
            local = True

# From mock._patch#__exit__
        if self.is_local and self.temp_original is not DEFAULT:
            setattr(self.target, self.attribute, self.temp_original)
        else:
            delattr(self.target, self.attribute)
            if not self.create and not hasattr(self.target, self.attribute):
                # needed for proxy objects like django settings
                setattr(self.target, self.attribute, self.temp_original)

        del self.temp_original
        del self.is_local
        del self.target


IE (Garden Cloche) Support Not Working?

Minecraft 1.12.2
Forge <IP_ADDRESS>54
Avaritia 1.1x <IP_ADDRESS>
Mystical Adaptations 1.8.5
Mystical Agradditions 1.3.2
Mystical Agriculture 1.7.5
Mystical Agriculture Tiered Crystals 1.0.1-hotfix
Mystical Creations 1.6
Looking in config there is support for it but any seed I've created will not work with the Immersive Engineering Garden Cloche. The items can be inserted to the Cloche but seeds will not grow?
Example of seed config:
infinity;6;D8C7C3;avaritia:block_resource:1;null
This of course uses the Infinity Block from Avaritia as the Crux, I can insert the block and custom seed into Cloche but nothing happens and yes the Cloche has water and Energy.
This setting is also set within the config:
compat {
# Immersive Engineering Garden Cloche Compat [default: true]
B:IMMERSIVE_CLOCHE=true
}
Am I missing something? Or is it possible that one of the other Mystcal mods is interfering with this one?

Oh, when I did some code rework a while ago I forgot to change the Garden Cloche compat.
Thanks for the report!
I have uploaded a new version on CurseForge fixing this issue: https://www.curseforge.com/minecraft/mc-mods/mystical-creations/files/3221155
Another known issue for Garden Cloche is that it don't respect the Crop color (because this mod doesn't use a normal texture for crops, they are colored through code), so the crop is always white. I still need to do a workaround for that, just need to know how, maybe generating textures at runtime.
I'll keep this issue open for me to remember to fix the color issue.
Thanks again for the report!

Awesome and thank you so much it's working as intended now.
Though this might be a little off topic is there any chance of getting compatibility for Agricraft Crops Sticks?
This would be a nice feature to have as well.

Yeah but I'll need to fix the color issue first, or it will happen when planting a Mystical Creations crop on an Agricraft Crops Sticks.


"YARN" required to run locally

Need to add 'YARN' requirement in documentation, so that local run can be achieved smoothly.

It's already there. Please check README under the documentation.
https://hi-imcodeman.github.io/stock-nse-india/

Thank you. Have a nice day.
On Thu, Jul 18, 2024 at 12:16 AM Asraf Ali @.***> wrote:

It's already there. Please check README under the documentation.
https://hi-imcodeman.github.io/stock-nse-india/
—
Reply to this email directly, view it on GitHub
https://github.com/hi-imcodeman/stock-nse-india/issues/95#issuecomment-2234012290,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATENAWRYNRSU6XFBTQHPWRLZM23WXAVCNFSM6AAAAABJ6GP6OWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZUGAYTEMRZGA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Some GraphQL Queries for Relationships fail on 1.2

Environment

Python version: 3.8
Nautobot version: 1.2.2

Steps to Reproduce

Have a relationship e.g. between cluster and devices (one to many)
Run a graphql query like:

device(id:"bb91df1c-61ec-4a85-8138-cdb97c6c890e")
{
  name
  rel_cluster_to_device{
    id
  }
  }
}

Expected Behavior
Get the ID of the relationship

Observed Behavior
{
  "errors": [
    {
      "message": "Cannot call only() after .values() or .values_list()",
      "locations": [
        {
          "line": 5,
          "column": 3
        }
      ],
      "path": [
        "device",
        "rel_cluster_to_device"
      ]
    }
  ],
  "data": {
    "device": {
      "name": "R10-S3",
      "rel_cluster_to_device": null
    }
  }
}

Traceback:
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]: Traceback (most recent call last):
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:   File "/opt/nautobot/lib/python3.9/site-packages/graphql/execution/executor.py", line 452, in resolve_or_error
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:     return executor.execute(resolve_fn, source, info, **args)
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:   File "/opt/nautobot/lib/python3.9/site-packages/graphql/execution/executors/sync.py", line 16, in execute
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:     return fn(*args, **kwargs)
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:   File "/opt/nautobot/lib/python3.9/site-packages/nautobot/core/graphql/generators.py", line 139, in resolve_relationship
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:     queryset_ids = gql_optimizer.query(
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:   File "/opt/nautobot/lib/python3.9/site-packages/graphene_django_optimizer/query.py", line 40, in query
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:     return QueryOptimizer(info, **options).optimize(queryset)
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:   File "/opt/nautobot/lib/python3.9/site-packages/graphene_django_optimizer/query.py", line 60, in optimize
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:     return store.optimize_queryset(queryset)
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:   File "/opt/nautobot/lib/python3.9/site-packages/graphene_django_optimizer/query.py", line 378, in optimize_queryset
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:     queryset = queryset.select_related(*self.select_list)
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:   File "/opt/nautobot/lib/python3.9/site-packages/django/db/models/query.py", line 1047, in select_related
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]:     raise TypeError("Cannot call select_related() after .values() or .values_list()")
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465945]: graphql.error.located_error.GraphQLLocatedError: Cannot call select_related() after .values() or .values_list()
Jan 04 10:31:23 dh01-a-06-18 nautobot-server[2465940]: An error occurred while resolving field DeviceType.rel_device_to_vm

Thanks for the report! Looks likely to be a regression introduced by #769. Investigating.

Interestingly, this query reproduces the error:
query {
  device(id: "a7c1dcc8-80eb-4754-9981-e2f63a9ab11e") {
    id
    name
    rel_bgp_device_router_id {
      id
    }
  }
}

but the following variant query works just fine:
query {
  device(id: "a7c1dcc8-80eb-4754-9981-e2f63a9ab11e") {
    id
    name
    rel_bgp_device_router_id {
      id
      address
    }
  }
}

Also it's worth noting that the inner id field returned by this query is not the ID of the RelationshipAssociation model instance, it's the ID of the object on the other end of the relationship association (e.g. the Cluster object ID in your example above). Just wanted to make that clear because it tripped me up as well. :-)

Hi @glennmatthews,
I just tried the fix from #1230, and it looks good - I just wait for confirmation from @manawyrm to confirm that.
Do you think this fix can make it into a 1.2.4?
Thanks,
Tom

Hi @glennmatthews,
yep, the fix looks good, the GraphQL data is now back to the old state! :+1:
Thanks,
Tobias

Yes, we're aiming to release a 1.2.3 in the near future and this fix should make the cut for that release. Thanks!


validate logged user using cookie

when calling GET auth/user to validate logged in user after logout is executed I get status 200, resp.body: { ok: true} instead of 401

Fixed in seneca-auth


Add sound playback for sound timer.

Coverage decreased (-0.78%) to 73.86% when pulling 21b83186a67050ff4f64172d6619a132ad330fca on feature/sound into e29fbae7253f72f18490ed0396eef76baace3c90 on master.


Question: component data availability in lifecycle

I am using version 0.8.14
I have the following component declaration
<Concurrence aclId={{acl.id}} common={{common}} initial={{initialConcurrences}} concurrence={{acl.concurrence}} comments={{comments}} decisionAuthorities={{decisionAuthorities}} />

At which component lifecycle will these data be available?
I tried at onrender and oncomplete but the data are not available, e.g.:
   onrender: function () {
            const self = this
            alert(self.get('aclId'));

will alert undefined.
My goal is to setup select2 jquery plugin in my dropdown e.g
 onrender: function () {
            const self = this
            const globalPsfa: any = $('#concurrence_global_psfa');
            globalPsfa.select2(concurrenceSelect2Option());
            globalPsfa.val(["102"]).trigger('change');
}

however none of the passed data to the component are available at the lifecycles I tried.

Never mind. I use this.observe instead.

Data is available as early as onconfig. Lifecycle events after that (i.e. oninit, onrender and oncomplete) should already have access to that data. Having them undefined tells me that whatever is supplying the data has not supplied it yet (which isn't mentioned in the OP).


Google Calendar API

There's better ways to get the Google api. I'm fairly certain there's a node module for it. I'm happy to help with this over the holidays if you'd like (also, permission to make a novelty app?)

So I did download the node apio (googleapis).... and it didn't compile (because it's designed for Node.js, NOT vanilla JS, it uses Node.js libs like http2 and not fetch, hence why it doesn't work`)
But, since you offered, I'll open a feature tracker branch with the stuff I want to implement.
Also yes, you can make a novelty app - if you want I'll open up the repo to you so you can add a PR so everything is in this repo

Actually, this is the perfect opportunity to use GH Projects?
Thoughts?

having the app in the same repo might be quite a good idea

Actually, this is the perfect opportunity to use GH Projects?
Thoughts?

also yes

Added as collaborator
Check email for invite.

iCal: https://calendar.google.com/calendar/ical/calendar%40camphillboys.bham.sch.uk/public/basic.ics

iCal: https://calendar.google.com/calendar/ical/calendar%40camphillboys.bham.sch.uk/public/basic.ics

KECHG iCal: https://calendar.google.com/calendar/ical/calendar%40kechg.org.uk/public/basic.ics (hopefully)

KECHG iCal: https://calendar.google.com/calendar/ical/calendar%40kechg.org.uk/public/basic.ics (hopefully)


Bugfix missing =

Hello,
Thank you so much for starting this; definitely making some debugging easier already.
Ran into the decoder crashing on some of my captures due to vdo_command not being defined that this fix is for.
Also ran into decode_request_data_object crashing due to missing second arg for pdo_type but for now I've hard coded that to get the rest of the analyzer to run. (Not in this PR)
Happy to send some random sample captures if they would be of interest (Not sure of your preferred method of sending them).
So far signal integrity seems fine (Saleae pro 16 at 1.2v trigger). Though definitely running into not defined commands I need to look into adding :)
❤

Ralim

Thanks! Sample captures are greatly appreciated, I suggest creating an new pull request with the example captures saved in the example directory.
Sorry for seeing this late, I need to tune my github notifications.


Error "failed to create volume: gluster block command failed"

While I was trying to use gluster block provisioner, the volume wasn't created, the console log of the glusterblock-provisioner container was:
I0816 06:26:54.493049       1 controller.go:1068] scheduleOperation[provision-default/claim1[721d8868-824b-11e7-bf7e-0050569fb5aa]]
E0816 06:26:54.493102       1 controller.go:1075] Error scheduling operaion "provision-default/claim1[721d8868-824b-11e7-bf7e-0050569fb5aa]": Failed to create operation with name "provision-default/claim1[721d8868-824b-11e7-bf7e-0050569fb5aa]". An operation with that name failed at 2017-08-16 06:26:09.4997438 +0000 UTC. No retries permitted until 2017-08-16 06:27:13.4997438 +0000 UTC (1m4s). Last error: "glusterblock: failed to create volume: gluster block command failed".

As I was reading https://github.com/gluster/gluster-block, I thought the command should be gluster-block instead of gluster block?

@humblec PTAL, thanks

@jhou1 the issue is different, its a setup issue, we will work on this tomo.

/assign @humblec

/assign @humblec

@jhou1 iic, this works with proper configuration. Can you please confirm ? accordingly I will close this or keep it open.

This works with proper configuration, I'll close it, thank you.


Upgrade Traefik to v2.11.9 to address CVE-2024-45410

The latest K3s release uses Traefik v2.11.8 which is affected by the high severity CVE-2024-45410 (Github labels it as Critical). While it was commented https://github.com/k3s-io/k3s/issues/10526 it can be easily missed and it doesn't have to be fixed by upgrading Traefik to v3.x, it can simply be fixed by doing a minor upgrade of Traefik to v2.11.9.
Thanks

Duplicate of https://github.com/k3s-io/k3s/issues/10938


tabletserver test: Fix up faking scheme

I found a few problems and shortcomings in the mocks:

A lock was being held while connecting to mysql, which should
be avoided.
Tests depended on a global variable (DefaultDB) being initialized
to different values at the beginning of each test. This would prevent
parallelization.
There was no way to use a real mysql connection in tests once
a fakesqldb was setup, which is needed for the queryservice tests
to be ported to go.

In the new scheme, I've added an Engine field to ConnParams. If it's
empty, then the default (MySQL) connection is used without locks.
If there is a name, then we use the map where other test engines
are registered.
The next change will convert the memcache faking to a similar scheme.

LGTM once travis is green...


workflow: moving from gvt to dep

What version of Go are you using (go version)?
What operating system and processor architecture are you using?
go version go1.8.3 darwin/amd64
dep v0.1.0-ish 7885eaee569e21f6f8ad372ee628ce11b478f556 (Tue May 30)
gvt (Nov 18 2016)
What did you do?
dep init an existing project
What did you expect to see?
Utilizing my old vendor/manifest (gvt) to lock things in without a huge diff in my vendor folder?
Well maybe I didn't really expect to see that, but something along those lines would be nice. 😉
I'd like to switch to dep without huge changes to the dependencies in the project so that those can be upgraded incrementally. Also, I think that will help with team buy-in of a new tool.
What did you see instead?
Following dependencies were not found in GOPATH. Dep will use the most recent versions of these projects.
  github.com/aws/aws-sdk-go
  github.com/go-resty/resty
  github.com/gorilla/handlers
  github.com/icrowley/fake
  github.com/sethgrid/pester
  github.com/twinj/uuid
  github.com/pmezard/go-difflib

So I undid the changes dep made, fetched those repos and tried gvt restore. Then I got some new ones:
Following dependencies were not found in GOPATH. Dep will use the most recent versions of these projects.
  github.com/go-ini/ini
  github.com/jmespath/go-jmespath

After all that, I'm still seeing a huge diff in my vendor folder. I think that's an issue with gvt restore or my expectations of it. It doesn't seem to be using the commit SHAs in my vendor/manifest to make the repositories in my $GOPATH align with what's in vendor.
Scanning the files below reveals that the commit SHAs don't align.
ref #138 ref #186 @FiloSottile
vendor/manifest
{
	"version": 0,
	"dependencies": [
		{
			"importpath": "github.com/PuerkitoBio/goquery",
			"repository": "https://github.com/PuerkitoBio/goquery",
			"vcs": "git",
			"revision": "3cb3b8656883c2cc3deb9c643d93ea6e5157e425",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/Sirupsen/logrus",
			"repository": "https://github.com/Sirupsen/logrus",
			"vcs": "git",
			"revision": "61e43dc76f7ee59a82bdf3d71033dc12bea4c77d",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/andybalholm/cascadia",
			"repository": "https://github.com/andybalholm/cascadia",
			"vcs": "git",
			"revision": "349dd0209470eabd9514242c688c403c0926d266",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/aws/aws-sdk-go/aws",
			"repository": "https://github.com/aws/aws-sdk-go",
			"vcs": "git",
			"revision": "baba9e786eae5ba978f2007f8e718557b29157c8",
			"branch": "master",
			"path": "aws",
			"notests": true
		},
		{
			"importpath": "github.com/aws/aws-sdk-go/private/protocol",
			"repository": "https://github.com/aws/aws-sdk-go",
			"vcs": "git",
			"revision": "baba9e786eae5ba978f2007f8e718557b29157c8",
			"branch": "master",
			"path": "private/protocol",
			"notests": true
		},
		{
			"importpath": "github.com/aws/aws-sdk-go/service/kinesis",
			"repository": "https://github.com/aws/aws-sdk-go",
			"vcs": "git",
			"revision": "baba9e786eae5ba978f2007f8e718557b29157c8",
			"branch": "master",
			"path": "/service/kinesis",
			"notests": true
		},
		{
			"importpath": "github.com/aws/aws-sdk-go/service/sqs",
			"repository": "https://github.com/aws/aws-sdk-go",
			"vcs": "git",
			"revision": "a5b389b7b05c59adf7ac44f50d0d8be6e0c85710",
			"branch": "master",
			"path": "/service/sqs",
			"notests": true
		},
		{
			"importpath": "github.com/aws/aws-sdk-go/service/sts",
			"repository": "https://github.com/aws/aws-sdk-go",
			"vcs": "git",
			"revision": "baba9e786eae5ba978f2007f8e718557b29157c8",
			"branch": "master",
			"path": "service/sts",
			"notests": true
		},
		{
			"importpath": "github.com/aws/aws-sdk-go/vendor/github.com/go-ini/ini",
			"repository": "https://github.com/aws/aws-sdk-go",
			"vcs": "git",
			"revision": "baba9e786eae5ba978f2007f8e718557b29157c8",
			"branch": "master",
			"path": "vendor/github.com/go-ini/ini",
			"notests": true
		},
		{
			"importpath": "github.com/aws/aws-sdk-go/vendor/github.com/jmespath/go-jmespath",
			"repository": "https://github.com/aws/aws-sdk-go",
			"vcs": "git",
			"revision": "baba9e786eae5ba978f2007f8e718557b29157c8",
			"branch": "master",
			"path": "vendor/github.com/jmespath/go-jmespath",
			"notests": true
		},
		{
			"importpath": "github.com/braintree/manners",
			"repository": "https://github.com/braintree/manners",
			"vcs": "git",
			"revision": "82a8879fc5fd0381fa8b2d8033b19bf255252088",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/corpix/uarand",
			"repository": "https://github.com/corpix/uarand",
			"vcs": "git",
			"revision": "1d58d0383c4d7a4697f63d1097d466864c9ab6d3",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/dahernan/backoff",
			"repository": "https://github.com/dahernan/backoff",
			"vcs": "git",
			"revision": "16994679f40f16943ebe2f96cb96aa9c89913f1a",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/dgrijalva/jwt-go",
			"repository": "https://github.com/dgrijalva/jwt-go",
			"vcs": "git",
			"revision": "2268707a8f0843315e2004ee4f1d021dc08baedf",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/gemnasium/migrate/driver",
			"repository": "https://github.com/gemnasium/migrate",
			"vcs": "git",
			"revision": "0e161f43df9892cb6f29f16cdbc98b50caa12d55",
			"branch": "master",
			"path": "driver",
			"notests": true
		},
		{
			"importpath": "github.com/gemnasium/migrate/file",
			"repository": "https://github.com/gemnasium/migrate",
			"vcs": "git",
			"revision": "0e161f43df9892cb6f29f16cdbc98b50caa12d55",
			"branch": "master",
			"path": "file",
			"notests": true
		},
		{
			"importpath": "github.com/gemnasium/migrate/migrate",
			"repository": "https://github.com/gemnasium/migrate",
			"vcs": "git",
			"revision": "0e161f43df9892cb6f29f16cdbc98b50caa12d55",
			"branch": "master",
			"path": "/migrate",
			"notests": true
		},
		{
			"importpath": "github.com/gemnasium/migrate/pipe",
			"repository": "https://github.com/gemnasium/migrate",
			"vcs": "git",
			"revision": "0e161f43df9892cb6f29f16cdbc98b50caa12d55",
			"branch": "master",
			"path": "pipe",
			"notests": true
		},
		{
			"importpath": "github.com/go-resty/resty",
			"repository": "https://github.com/go-resty/resty",
			"vcs": "git",
			"revision": "ef723efa2a1b4fcdbafb5b1e7c6cf42065519728",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/go-sql-driver/mysql",
			"repository": "https://github.com/go-sql-driver/mysql",
			"vcs": "git",
			"revision": "2e00b5cd70399450106cec6431c2e2ce3cae5034",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/gocql/gocql",
			"repository": "https://github.com/gocql/gocql",
			"vcs": "git",
			"revision": "4d2d1ac71932f7c4a6c7feb0d654462e4116c58b",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/golang/snappy",
			"repository": "https://github.com/golang/snappy",
			"vcs": "git",
			"revision": "7db9049039a047d955fe8c19b83c8ff5abd765c7",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/gorilla/context",
			"repository": "https://github.com/gorilla/context",
			"vcs": "git",
			"revision": "08b5f424b9271eedf6f9f0ce86cb9396ed337a42",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/gorilla/handlers",
			"repository": "https://github.com/gorilla/handlers",
			"vcs": "git",
			"revision": "13d73096a474cac93275c679c7b8a2dc17ddba82",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/gorilla/mux",
			"repository": "https://github.com/gorilla/mux",
			"vcs": "git",
			"revision": "599cba5e7b6137d46ddf58fb1765f5d928e69604",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/hailocab/go-hostpool",
			"repository": "https://github.com/hailocab/go-hostpool",
			"vcs": "git",
			"revision": "e80d13ce29ede4452c43dea11e79b9bc8a15b478",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/hashicorp/golang-lru",
			"repository": "https://github.com/hashicorp/golang-lru",
			"vcs": "git",
			"revision": "0a025b7e63adc15a622f29b0b2c4c3848243bbf6",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/herenow/go-crate",
			"repository": "https://github.com/herenow/go-crate",
			"vcs": "git",
			"revision": "2338d3626906d73552c99ac3780ad675dfd1af11",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/icrowley/fake",
			"repository": "https://github.com/icrowley/fake",
			"vcs": "git",
			"revision": "3b3219b5a6684b64a425535d9a9a20bd92a4e062",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/jmoiron/sqlx",
			"repository": "https://github.com/jmoiron/sqlx",
			"vcs": "git",
			"revision": "f980a91bdc37abef88269b8f122d7de6352102f5",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/kelseyhightower/envconfig",
			"repository": "https://github.com/kelseyhightower/envconfig",
			"vcs": "git",
			"revision": "8bf4bbfc795e2c7c8a5ea47b707453ed019e2ad4",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/lib/pq",
			"repository": "https://github.com/lib/pq",
			"vcs": "git",
			"revision": "67c3f2a8884c9b1aac5503c8d42ae4f73a93511c",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/mattn/go-sqlite3",
			"repository": "https://github.com/mattn/go-sqlite3",
			"vcs": "git",
			"revision": "ce9149a3c941c30de51a01dbc5bc414ddaa52927",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/newrelic/go-agent",
			"repository": "https://github.com/newrelic/go-agent",
			"vcs": "git",
			"revision": "60ed7aa03a85a1355b4189f66e23604de8f27d57",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/sethgrid/pester",
			"repository": "https://github.com/sethgrid/pester",
			"vcs": "git",
			"revision": "2c5fb962da6113d0968907fd81dba3ca35151d1c",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/stretchr/testify",
			"repository": "https://github.com/stretchr/testify",
			"vcs": "git",
			"revision": "4d4bfba8f1d1027c4fdbe371823030df51419987",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "github.com/twinj/uuid",
			"repository": "https://github.com/twinj/uuid",
			"vcs": "git",
			"revision": "7bbe408d339787c56ec15568c947c0959db1b275",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "golang.org/x/net/context",
			"repository": "https://go.googlesource.com/net",
			"vcs": "git",
			"revision": "f2499483f923065a842d38eb4c7f1927e6fc6e6d",
			"branch": "master",
			"path": "/context",
			"notests": true
		},
		{
			"importpath": "golang.org/x/net/html",
			"repository": "https://go.googlesource.com/net",
			"vcs": "git",
			"revision": "f2499483f923065a842d38eb4c7f1927e6fc6e6d",
			"branch": "master",
			"path": "html",
			"notests": true
		},
		{
			"importpath": "golang.org/x/net/idna",
			"repository": "https://go.googlesource.com/net",
			"vcs": "git",
			"revision": "6b27048ae5e6ad1ef927e72e437531493de612fe",
			"branch": "master",
			"path": "idna",
			"notests": true
		},
		{
			"importpath": "golang.org/x/net/publicsuffix",
			"repository": "https://go.googlesource.com/net",
			"vcs": "git",
			"revision": "6b27048ae5e6ad1ef927e72e437531493de612fe",
			"branch": "master",
			"path": "/publicsuffix",
			"notests": true
		},
		{
			"importpath": "golang.org/x/sync/errgroup",
			"repository": "https://go.googlesource.com/sync",
			"vcs": "git",
			"revision": "450f422ab23cf9881c94e2db30cac0eb1b7cf80c",
			"branch": "master",
			"path": "/errgroup",
			"notests": true
		},
		{
			"importpath": "golang.org/x/sys/unix",
			"repository": "https://go.googlesource.com/sys",
			"vcs": "git",
			"revision": "d75a52659825e75fff6158388dddc6a5b04f9ba5",
			"branch": "master",
			"path": "/unix",
			"notests": true
		},
		{
			"importpath": "golang.org/x/text/encoding",
			"repository": "https://go.googlesource.com/text",
			"vcs": "git",
			"revision": "ece019dcfd29abcf65d0d1dfe145e8faad097640",
			"branch": "master",
			"path": "encoding",
			"notests": true
		},
		{
			"importpath": "golang.org/x/text/internal/gen",
			"repository": "https://go.googlesource.com/text",
			"vcs": "git",
			"revision": "ece019dcfd29abcf65d0d1dfe145e8faad097640",
			"branch": "master",
			"path": "internal/gen",
			"notests": true
		},
		{
			"importpath": "golang.org/x/text/internal/tag",
			"repository": "https://go.googlesource.com/text",
			"vcs": "git",
			"revision": "ece019dcfd29abcf65d0d1dfe145e8faad097640",
			"branch": "master",
			"path": "internal/tag",
			"notests": true
		},
		{
			"importpath": "golang.org/x/text/internal/utf8internal",
			"repository": "https://go.googlesource.com/text",
			"vcs": "git",
			"revision": "ece019dcfd29abcf65d0d1dfe145e8faad097640",
			"branch": "master",
			"path": "internal/utf8internal",
			"notests": true
		},
		{
			"importpath": "golang.org/x/text/language",
			"repository": "https://go.googlesource.com/text",
			"vcs": "git",
			"revision": "ece019dcfd29abcf65d0d1dfe145e8faad097640",
			"branch": "master",
			"path": "language",
			"notests": true
		},
		{
			"importpath": "golang.org/x/text/runes",
			"repository": "https://go.googlesource.com/text",
			"vcs": "git",
			"revision": "ece019dcfd29abcf65d0d1dfe145e8faad097640",
			"branch": "master",
			"path": "runes",
			"notests": true
		},
		{
			"importpath": "golang.org/x/text/transform",
			"repository": "https://go.googlesource.com/text",
			"vcs": "git",
			"revision": "ece019dcfd29abcf65d0d1dfe145e8faad097640",
			"branch": "master",
			"path": "transform",
			"notests": true
		},
		{
			"importpath": "golang.org/x/text/unicode/cldr",
			"repository": "https://go.googlesource.com/text",
			"vcs": "git",
			"revision": "ece019dcfd29abcf65d0d1dfe145e8faad097640",
			"branch": "master",
			"path": "unicode/cldr",
			"notests": true
		},
		{
			"importpath": "gopkg.in/airbrake/gobrake.v2",
			"repository": "https://gopkg.in/airbrake/gobrake.v2",
			"vcs": "git",
			"revision": "668876711219e8b0206e2994bf0a59d889c775aa",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "gopkg.in/gemnasium/logrus-airbrake-hook.v2",
			"repository": "https://gopkg.in/gemnasium/logrus-airbrake-hook.v2",
			"vcs": "git",
			"revision": "bfee1239d796830ca346767650cce5ba90d58c57",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "gopkg.in/inf.v0",
			"repository": "https://gopkg.in/inf.v0",
			"vcs": "git",
			"revision": "3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4",
			"branch": "master",
			"notests": true
		},
		{
			"importpath": "gopkg.in/olivere/elastic.v5",
			"repository": "https://gopkg.in/olivere/elastic.v5",
			"vcs": "git",
			"revision": "4ba548ef864c4198c5f2961828fd7c0c987a8b9d",
			"branch": "master",
			"notests": true
		}
	]
}

Gopkg.toml
[[projects]]
  branch = "master"
  name = "github.com/Sirupsen/logrus"
  packages = ["."]
  revision = "3ec0642a7fb6488f65b06f9040adc67e3990296a"

[[projects]]
  branch = "master"
  name = "github.com/aws/aws-sdk-go"
  packages = ["aws","aws/awserr","aws/awsutil","aws/client","aws/client/metadata","aws/corehandlers","aws/credentials","aws/credentials/ec2rolecreds","aws/credentials/endpointcreds","aws/credentials/stscreds","aws/defaults","aws/ec2metadata","aws/endpoints","aws/request","aws/session","aws/signer/v4","private/protocol","private/protocol/json/jsonutil","private/protocol/jsonrpc","private/protocol/query","private/protocol/query/queryutil","private/protocol/rest","private/protocol/xml/xmlutil","service/kinesis","service/sqs","service/sts"]
  revision = "a202fff91075d482fbeb32f98322a4b39126bc92"

[[projects]]
  branch = "master"
  name = "github.com/braintree/manners"
  packages = ["."]
  revision = "82a8879fc5fd0381fa8b2d8033b19bf255252088"

[[projects]]
  branch = "master"
  name = "github.com/corpix/uarand"
  packages = ["."]
  revision = "1d58d0383c4d7a4697f63d1097d466864c9ab6d3"

[[projects]]
  branch = "master"
  name = "github.com/dahernan/backoff"
  packages = ["."]
  revision = "16994679f40f16943ebe2f96cb96aa9c89913f1a"

[[projects]]
  branch = "master"
  name = "github.com/davecgh/go-spew"
  packages = ["spew"]
  revision = "5215b55f46b2b919f50a1df0eaa5886afe4e3b3d"

[[projects]]
  branch = "master"
  name = "github.com/dgrijalva/jwt-go"
  packages = ["."]
  revision = "2268707a8f0843315e2004ee4f1d021dc08baedf"

[[projects]]
  branch = "master"
  name = "github.com/gemnasium/migrate"
  packages = ["driver","driver/postgres","file","migrate","migrate/direction","pipe"]
  revision = "0e161f43df9892cb6f29f16cdbc98b50caa12d55"

[[projects]]
  branch = "master"
  name = "github.com/go-ini/ini"
  packages = ["."]
  revision = "afbc45e87f3ba324c532d12c71918ef52e0fb194"

[[projects]]
  branch = "master"
  name = "github.com/go-resty/resty"
  packages = ["."]
  revision = "7a8134d8718193eb857994adee49d73a302e7718"

[[projects]]
  branch = "master"
  name = "github.com/gorilla/context"
  packages = ["."]
  revision = "1c83b3eabd45b6d76072b66b746c20815fb2872d"

[[projects]]
  branch = "master"
  name = "github.com/gorilla/handlers"
  packages = ["."]
  revision = "a4043c62cc2329bacda331d33fc908ab11ef0ec3"

[[projects]]
  branch = "master"
  name = "github.com/gorilla/mux"
  packages = ["."]
  revision = "599cba5e7b6137d46ddf58fb1765f5d928e69604"

[[projects]]
  branch = "master"
  name = "github.com/hashicorp/golang-lru"
  packages = [".","simplelru"]
  revision = "0a025b7e63adc15a622f29b0b2c4c3848243bbf6"

[[projects]]
  branch = "master"
  name = "github.com/icrowley/fake"
  packages = ["."]
  revision = "9f67e8561905ff9c2b64fdd801ee70cf852b3b89"

[[projects]]
  branch = "master"
  name = "github.com/jmespath/go-jmespath"
  packages = ["."]
  revision = "bd40a432e4c76585ef6b72d3fd96fb9b6dc7b68d"

[[projects]]
  branch = "master"
  name = "github.com/jmoiron/sqlx"
  packages = [".","reflectx"]
  revision = "d9bd385d68c068f1fabb5057e3dedcbcbb039d0f"

[[projects]]
  branch = "master"
  name = "github.com/kelseyhightower/envconfig"
  packages = ["."]
  revision = "8bf4bbfc795e2c7c8a5ea47b707453ed019e2ad4"

[[projects]]
  branch = "master"
  name = "github.com/lib/pq"
  packages = [".","oid"]
  revision = "2704adc878c21e1329f46f6e56a1c387d788ff94"

[[projects]]
  branch = "master"
  name = "github.com/newrelic/go-agent"
  packages = [".","_integrations/nrgorilla/v1","internal","internal/jsonx","internal/logger","internal/sysinfo","internal/utilization"]
  revision = "60ed7aa03a85a1355b4189f66e23604de8f27d57"

[[projects]]
  branch = "master"
  name = "github.com/pmezard/go-difflib"
  packages = ["difflib"]
  revision = "792786c7400a136282c1664665ae0a8db921c6c2"

[[projects]]
  branch = "master"
  name = "github.com/sethgrid/pester"
  packages = ["."]
  revision = "4f4c0a67b6496764028e1ab9fd8dfb630282ed2f"

[[projects]]
  branch = "master"
  name = "github.com/stretchr/objx"
  packages = ["."]
  revision = "cbeaeb16a013161a98496fad62933b1d21786672"

[[projects]]
  branch = "master"
  name = "github.com/stretchr/testify"
  packages = ["assert","mock","require"]
  revision = "4d4bfba8f1d1027c4fdbe371823030df51419987"

[[projects]]
  branch = "master"
  name = "github.com/twinj/uuid"
  packages = ["."]
  revision = "7bbe408d339787c56ec15568c947c0959db1b275"

[[projects]]
  branch = "master"
  name = "golang.org/x/net"
  packages = ["idna","publicsuffix"]
  revision = "3da985ce5951d99de868be4385f21ea6c2b22f24"

[[projects]]
  branch = "master"
  name = "golang.org/x/sys"
  packages = ["unix"]
  revision = "9ccfe848b9db8435a24c424abbc07a921adf1df5"

[[projects]]
  branch = "master"
  name = "golang.org/x/text"
  packages = ["internal/gen","internal/triegen","internal/ucd","secure/bidirule","transform","unicode/bidi","unicode/cldr","unicode/norm","unicode/rangetable"]
  revision = "470f45bf29f4147d6fbd7dfd0a02a848e49f5bf4"

[solve-meta]
  analyzer-name = "dep"
  analyzer-version = 1
  inputs-digest = "c5dc717bd5645fac67b903d48d39da0102f172b33ec35b1aedae6388d1f3be85"
  solver-name = "gps-cdcl"
  solver-version = 1

@nathany We would like to have init recognize and import config from other tools (see epic #186) but that isn't implemented yet. I'm hoping once #500 is merged, which adds support for importers, someone can tackle gvt. 😀


Unmarshal error and panic

2023/01/06 12:10:04 [Threadfin] [ERROR] json: cannot unmarshal object into Go value of type []*src.GithubReleaseInfo () - EC: 0
* * * * * FATAL ERROR * * * * *
OS:   linux
Arch: amd64
Err:  runtime error: index out of range [0] with length 0
panic.go:838 runtime.gopanic
panic.go:89 runtime.goPanicIndex
xepg.go:217 threadfin/src.createXEPGMapping.func1
xepg.go:260 threadfin/src.createXEPGMapping
xepg.go:109 threadfin/src.buildXEPG
config.go:268 threadfin/src.StartSystem
threadfin.go:197 main.main
proc.go:259 runtime.main
asm_amd64.s:1572 runtime.goexit
* * * * * * * * * * * * * * * *

Patched in 0.9.21 - To be released

0.9.21 deployed. Closing for now. Please re-open if this issue persists.


Private submodule cloning with known public key

** Please describe which feature you have a question about? **
First - I have already read topic #150 , I was able to get the build working using the private key -> environment variable method. I have a different question.
Bitbucket allows me to see the actual public key added to the access keys AWS Amplify for the main repository. I added said public key to the submodule repository's access keys and would have expected the build to work.
** Provide additional details**
This is the access key configuration I'm talking about in Bitbucket:

After adding the auto-generated public key from the parent repo to the submodule repo, we still fail to authenticate:
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

@dougleville are you still experiencing any issues here?

@dougleville are you still experiencing any issues here?

@litwicki I was never able to get this working so I fell back to the environment variable approach. Is this something that you'd expect to work in principle? If so I can go back and try it again.

@dougleville no this would not be expected to work, so let's consider this closed and if you experience any similar issues please reopen

@litwicki OK sure - with #150 closed, is there any guidance on how to clone private submodules with Amplify without adding encoded ssh keys as environment variables?


Embed UI should display gist loading progress

When loading a gist, the new embed UI should display a message to the user indicating what's going on and lock down the UI with a modal of some kind.

Fixed by #997.


Document using pachctl with bash/WSL on Windows

According to @najib in #users pach "works great" with Bash/WSL on Windows
We should walk through this (I think @derekchiang is the only one with a windows box internally?) and document the process and limitations so that we have some alternative until we can land #1636 (or an equivalent that gives full, native windows support)

@msteffen i think you were saying you have windows installed on your machine, right?

I kept notes as I figured out how to do a local deployment of pachyderm on Win10+Hyper-V+WSL. You can review them here: https://gist.github.com/williballenthin/8bbb7710ca8faa93d6eb57a44eda785b

Thanks @williballenthin!

I am also interested in the progression of Pachyderm for local Windows deployment

@rmuellerjr and others. Currently, pachctl works in the WSL, and can be installed via the *.deb that is specified in the docs. The other issue is really minikube. However, now Docker for windows desktop apparently includes k8s, which should make that part easier. We just haven't tested it yet. I will hopefully do this for the Mac Desktop version soon, which should be similar.

@pappasilenus I think you were asking about this yesterday. Did you get this sorted out?

I posted to the user, waiting for response.
John Karabaic
gpg key available at hkp://keys.gnupg.net
513.295.6365

On Dec 7, 2018, at 20:32, Gabriel Grant<EMAIL_ADDRESS>wrote:
@pappasilenus I think you were asking about this yesterday. Did you get this sorted out?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

I used Docker for Desktop's Kubernetes cluster, with the Linux pachctl binary on WSL successfully, along lines of
REM generate manifest and apply
wsl pachctl deploy local --no-guaranteed --dry-run | kubectl apply -f -
REM wait a bit, then contact pachd
wsl pachctl create-repo images

This doesn't handle path mapping for local files, so maybe a Windows native binary would be nice at this point.

Thanks a lot for testing this out and updating us, @maedoc

From the #users channel:
I'm a beginner with pachyderm and I'm trying to
setup pachyderm locally in my Windows 10 Home machine. I'm using VirtualBox 6.0.8 and Docker Toolbox 18.09.3. minikube is already running and I already installed pachctl in WSL Ubuntu 18.0.4. Attached here are some screen snips that might help.
Previous steps I did were:

Run minikube start
Inside WSL, I ran pachctl deploy local --dry-run > pachyderm.json
I copied the json file into /mnt/c/Users/user/dev/pach and using powershell in C:\Users\user\dev\pach, I ran kubctl create -f .\pachyderm.json. All went well until the ADDRESS=<IP_ADDRESS>:30650 pachctl version command

Using PACHD_ADDRESS instead of ADDRESS solved the issue.

This came up again yesterday: https://pachyderm-users.slack.com/messages/C3UN0S0Q0/convo/C3UN0S0Q0-1563190674.495800/

Wesley Yesterday at 4:37 AM
I'm trying to install Pachyderm and got all the way to getting pachctl installed before running into an error on Windows 10. When I ran the $ curl -o /tmp/pachctl.deb -L https://github.com/pachyderm/pachyderm/releases/download/v1.9.0/pachctl_1.9.0_amd64.deb && sudo dpkg -i /tmp/pachctl.deb    command, I got a "Warning: Failed to create the file /tmp/pachctl.deb: No such file or directory" and a "curl: (23) Failed writing body (0 != 16384)" Any ideas how to fix this?
...
I found that I had to install WSL first, then it worked perfectly
Wesley  1 day ago
Maybe put that in the docs?
Wesley  1 day ago
This link proved useful https://docs.microsoft.com/en-us/windows/wsl/install-on-server

https://github.com/pachyderm/pachyderm/pull/3928

Done in #3928


[Fix] StaticFileServer request path extraction

Context and Description
When StaticFileServer was added as a middleware, and it was added not to the root router but to a sub-router, and it had redirect folders to trailing slash turned on (default setting) then its redirection would be incorrect.
Environment Details
Reproduced Swift 4.0.3 & 4.2; MacOS and Linux
Steps to Reproduce

Setup a simple Kitura app with a router
Add a sample HTML file relative to the project at ./src/users/user_id/settings/index.html
Add a StaticFileServer to a sub-router of the main router

router.route("/users/:user_id").get(middleware: StaticFileServer(path: "./src/users/user_id/"))

HTTP GET /users/me/settings

Expected vs. Actual Behaviour
Expected to happen...

Redirect issued to /users/me/settings/ and then the html file loaded

Actually happened...

Redirect issued to /settings/ which does not exist (404)

Fix
Extract path of request from "request.parsedURL" instead of "request.parsedURLPath" as this takes into account the whole request path.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@kilnerm Added tests. Will fix the CLA issue later (github seems to be having issues right now and wont let me access settings to add my other email to my account).


[Feature Request] RDF4J-compliant HTTP REST API

A bunch of popular graph store services backends expose a RDF4J-compatible REST API, including GraphDB, Jena, Stardog, Blazegraph, Virtuoso, and Marklogic.
The OpenAPI spec for the RDF4J REST API is here:  https://rdf4j.org/documentation/reference/rest-api/
The Oxigraph HTTP interface already seems to be partially compliant (with separate /query and /update endpoints), and I believe it would be relatively straight forward to add the rest of the endpoints and functionality.
My use case:

In the Python RDFLib project we are planning on adding a native RDF4J-comaptible store connector, that will work with any graph backend that exposes a compatible REST interface. This will be a much more capable alternative than the existing SPARQLConnector store in RDFlib, and will allow new features such as querying the remote namespaces list, getting a list of named graphs in the repository, getting the remote repository size (aka triples count), and most importantly it can use the RDF4J standardised transactions interface for running transactional operations on the repository.
I'd like to be able to add Oxigraph to the list of compatible backends that RDFLib supports through the RDF4J store connector.
I know Pyoxigraph and Oxrdflib packages exist, this is not a replacement for them, this is about supporting a standardised HTTP REST API.

I believe this is tangentially related to, given that ResearchSpace uses the Java RDF4J library to try to connect to Oxigraph.
Related to https://github.com/oxigraph/oxigraph/issues/957

This is definitely a great idea!
However, there are some challenges I see:

Oxigraph server currently handles a single repository, managing multiple ones would be a big change
Oxigraph transaction API is not compatible with the one exposed by RDF4J API. I hope to fix that but it's not very high on the priority list at the moment (this is also blocking transaction support in oxrdflib)

Small question: would a degrated mode only relying on both SPARQL protocol and graph store procol be possible?
BTW, thank you for your work on rdflib, it's great to see it's actively maintained!

I anticipated these questions. :smile:

Oxigraph server currently handles a single repository, managing multiple ones would be a big change

I don't think there is need for oxigraph to handle multiple repositories, I wasn't expecting you to be able to implement the whole "repositories" protocol. You could simply expose a single default repository that represents the currently loaded dataset, and simply doesn't support dataset creation/deletion.
http://localhost:7878/repositories/oxigraph
http://localhost:7878/repositories/oxigraph/statements

or
http://localhost:7878/repositories/default
http://localhost:7878/repositories/default/statements

would a degrated mode only relying on both SPARQL protocol and graph store protocol be possible?

Yes, I think that would be fine. The RDFLib RDF4J connector won't be using the repository create/list/delete protocol anyway, and support for transactions is a long way from landing in RDFlib.
Other than "SPARQL" and "graph store" protocols, the only other ones I'd like to see implemented is the "repository size" endpoint:
http://localhost:7878/repositories/oxigraph/size

and the "protocol" endpoint:
http://localhost:7878/protocol


Daphne Lib - l1 norm calculation

I would like to calculate the L1 norm in daphne-lib like that:
test_temp = np.array([0, 1, 2, 3, 4, 5])
support_temp = np.array([1, 2, 3, 4, 5, 6])

a = dc.from_numpy(test_temp)
b = dc.from_numpy(support_temp)

c = a - b

c_numpy = c.abs().sum().compute()

Output:
AttributeError: 'Matrix' object has no attribute 'abs'

For my understanding https://github.com/daphne-eu/daphne/blob/main/doc/DaphneLib/APIRef.md abs() should be available.
So I tried:
test_temp = np.array([0, 1, 2, 3, 4, 5])
support_temp = np.array([0, 1, 2, 3, 4, 5])

a = dc.from_numpy(test_temp)
b = dc.from_numpy(support_temp)

c = a - b

c = c**2
c_numpy = c.sqrt().sum().compute()

Output:
TypeError: unsupported operand type(s) for ** or pow(): 'Matrix' and 'int'

Any suggestions how to do that?
LG
Bernhard

Hi @BacchusX1, your scripts are valid. On the current main branch of DAPHNE they pass successfully, i.e., when doing print(c_numpy), the first script prints 6, the second one 0.0. Support for abs() on DaphneLib matrices was added in 2c1b7013dfea7e7ad839b40a93bbb10cb6edd9b2 in Sep 2023. Could it be that you use an outdated version of DAPHNE, e.g., the v0.2 release? If so, please try using the current state of the main branch, e.g., by following the quickstart guide for developers.

Ye


Add detailed error for swapping two arguments

This supports the recent breaking change to swap filename and path by giving a clear error on how to fix it.

I like having diagnostics that are this good. However, this feels like kind of a lot of code to cover just a couple APIs. Is there anything we can do to make all of our APIs report better errors when there's a type mismatch?
In theory, it feels like we should be able to know the type of the parameters to functions. If there's some way that we can leverage that information to make every API have a good type mismatch error, it feels like that'd be a big win.

It might be straight forward to have this for <T, U>, but anything larger than that sounds unwieldy. I can do that though.

It would also prevent being able to write "filename" rather than just type_name() (string), at least without more ceremony.

Hmm, it doesn't even let me write out "string" for stuff like f(x) (where you forgot to add y). Do you see any way around that? Only way I can think of is some more complicated code like a trait that would require setting up a custom struct anyway.


First release for EVA Handrails Pack Continued

Released on Friday

Sorry for not getting to this earlier. Couple of things:

If the original mod has been abandoned for good and you're taking over active maintership we can just update the existing .netkan. That way anyone with the original mod will get your version on upgrade.

If you don't want to replace the original, then a conflicts relationship should be added.

The ModuleManager assembly should be filtered, although you may just want to change the packaging since ModuleManager assemblies are usually distributed directly under GameData not within mod-specific subdirectories. The filter clause would look like:
  "install": [
      {
          "file"       : "NEBULA",
          "install_to" : "GameData",
          "filter_regexp": "ModuleManager.+\\.dll"
      }
  ]

Hi,
I would rather NOT replace the old one, just in case he comes back.
I created one already, EVAHandrailsContinued.netkan, can you update it
for me?
Thanks
JBB
On 6/21/2015 1:21 PM, Dwayne Bent wrote:

Sorry for not getting to this earlier. Couple of things:

If the original mod has been abandoned for good and you're taking
over active maintership we can just update the existing |.netkan|
https://github.com/KSP-CKAN/NetKAN/blob/master/NetKAN/NebulaEVAHandrails.netkan.
That way anyone with the original mod will get your version on
upgrade.
If you /don't/ want to replace the original, then a |conflicts|
relationship should be added.

The |ModuleManager| assembly should be filtered, although you may
just want to change the packaging since |ModuleManager| assemblies
are usually distributed directly under |GameData| not within
mod-specific subdirectories. The filter clause would look like:

   "install": [
       {
           "file"        :"NEBULA",
           "install_to"  :"GameData",
           "filter_regexp":"ModuleManager.+\\.dll"
       }
   ]

—
Reply to this email directly or view it on GitHub
https://github.com/KSP-CKAN/NetKAN/pull/1642#issuecomment-113933069.

Implemented in #1645.

Thank you
JBB
On 6/21/2015 7:28 PM, Dwayne Bent wrote:

Implemented in #1645 https://github.com/KSP-CKAN/NetKAN/pull/1645.
—
Reply to this email directly or view it on GitHub
https://github.com/KSP-CKAN/NetKAN/pull/1642#issuecomment-113968519.


model: h2oautoml: Add h2o AutoML

Codecov Report

Merging #1024 (0337f56) into master (214675d) will decrease coverage by 1.95%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1024      +/-   ##
==========================================
- Coverage   84.84%   82.88%   -1.96%
==========================================
  Files         143      150       +7
  Lines        9461     9823     +362
  Branches     1603     1659      +56
==========================================
+ Hits         8027     8142     +115
- Misses       1112     1332     +220
- Partials      322      349      +27

Impacted Files
Coverage Δ

dffml/plugins.py
92.50% <ø> (ø)

dffml/noasync.py
43.63% <0.00%> (-35.68%)
:arrow_down:

tests/test_docstrings.py
68.99% <0.00%> (-28.47%)
:arrow_down:

dffml/util/packaging.py
58.06% <0.00%> (-22.59%)
:arrow_down:

dffml/operation/math.py
63.63% <0.00%> (-18.19%)
:arrow_down:

dffml/high_level.py
73.41% <0.00%> (-12.66%)
:arrow_down:

dffml/util/data.py
64.08% <0.00%> (-11.61%)
:arrow_down:

dffml/operation/db.py
52.83% <0.00%> (-11.33%)
:arrow_down:

dffml/util/net.py
66.92% <0.00%> (-6.89%)
:arrow_down:

dffml/db/sql.py
94.02% <0.00%> (-5.98%)
:arrow_down:

... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 214675d...0337f56. Read the comment docs.


feat: Find All Donors

What feature?
Instead of Finding Recipient based on blood group give all the recipients on the website and add the filter to filter based on the blood group. This increases the UI/UX of the website. I will be happy to work on this issue
Add screenshots

Record

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I agree to follow this project's Code of Conduct
[X] I want to work on this issue

Go ahead @srexrg, Nice Idea

But please share the UI of it or any rough idea of it.

this will be the ui

@Saurav-Pant can i do a pr ?

Yes sure, do a PR @srexrg


[21.05] tonelib-jam: init at 4.7.0 && tonelib-zoom init at 4.3.1 && tonelib-gfx init at 4.7.0

Motivation for this change
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

When backporting changes, please follow https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#backporting-changes.
Namely, you should be doing git cherry-pick -x <rev> from a commit that has already landed in master. If the branches have diverged, you may alter the commit or add another commit to ensure that the package is able to still evaluate and build

I know how the backporting is being done, but it's not that having happened, I don't even have these packages in this Branch, in general, from the word completely, even old versions, so it is not backporting, but the first release is here.

When backporting changes, please follow https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#backporting-changes.
Namely, you should be doing git cherry-pick -x <rev> from a commit that has already landed in master. If the branches have diverged, you may alter the commit or add another commit to ensure that the package is able to still evaluate and build

I even don't even have a sheet here in Maintainer, I'm not push anything here.

 If the branches have diverged, you may alter the commit or add another commit to ensure that the package is able to still evaluate and build

Each commit should be referencing the commit which landed in master

Namely, you should be doing git cherry-pick -x  from a commit that has already landed in master. If the branches have diverged, you may alter the commit or add another commit to ensure that the package is able to still evaluate and build

ok


[BUG] New-PnPTenantSite creates site but warning: "The requested operation is part of an experimental feature that is not supported in the current environment."

Reporting an Issue or Missing Feature
Issue
Expected behavior
Use the 'New-PnPTenantSite' cmdlet to create a new site collection without warnings.
https://pnp.github.io/powershell/cmdlets/New-PnPTenantSite.html
Actual behavior
First noticed today (April 23rd, 2024) around 5am UTC, the 'New-PnPTenantSite' cmdlet started to report:
"New-PnPTenantSite: The requested operation is part of an experimental feature that is not supported in the current environment."
Even with this warning, the New-PnPTenantSite cmdlet succeeds in creating the new site collection. I am also able to create new site collections by all other means (New-PnPSite, SPO and Graph API, SPO Admin Center, SPO PowerShell Module, etc).
This is affecting a large tenant, and I am unable to reproduce the behavior in my dev tenant(s).
I am also receiving the same error with the 'Get-PnPTenant' cmdlet as well.
"Get-PnPTenant: The requested operation is part of an experimental feature that is not supported in the current environment."
Steps to reproduce behavior
New-PnPTenantSite -title "Test Site -url sites/pnptenantsite -Owner -TimeZone 4 -Template "STS#3" -Lcid 1033 -StorageQuota 1024 -StorageQuotaWarningLevel 512
New-PnPTenantSite: The requested operation is part of an experimental feature that is not supported in the current environment.
I have tried the New-PnPTenantSite cmdlet with as many or as little parameters as possible, including -debug and -verbose flags, and although the sites are being created, I continue to receive the same 'experimental feature' warning.
What is the version of the Cmdlet module you are running?
2.40.  I also tried other versions such as 2.3.0, and 1.12.0 and am received the same warning.
Which operating system/environment are you running PnP PowerShell on?

[ ] Windows
[ ] Azure Cloud Shell
[ ] Azure Functions

Closing this as fixed by Microsoft server side change. Was a temporary regression which impacted this.


Is changing the locale reflected in the UI?

Ember's data bindings are cool, but it's hard to get them listen to changes to moment's locale settings. When I use your helpers, would that work?
(E.g. I display a list of categories with creation dates on my page, and the user can select a different language via dropdown. When changing that, the i18n helper automatically updates all texts: does the same happen for your moment helpers?)

This addon allows you to pass the locale in with the helper, so if you have some variable exposed like selectedLocale you should be able to pass it in like so:
{{month-and-day createdAt selectedLocale}}

And, since it's a boundHelper, changes in either createdAt and selectedLocale will be updated.

Ah, okay. I am relying on a global language setting, so that doesn't really help me, unfortunately.
Thanks for your help, though!


Lobster Image Service

In the bounty image we will use the identicon service from lobstr as
https://id.lobstr.co/{bounty_owner}.png
example:
https://id.lobstr.co/GCZMT5BHS2HIWT2NVYPPLE5MIG7P2TUWBWLGCSMGJ7CZDQFGHMVVCVYE.png

ID must match Public Address.