/srv/irclogs.ubuntu.com/2020/07/23/#smooth-operator.txt

* Chipaca EODs00:13
Chipacagooooood  morning!08:06
facubatista¡Muy buenos días a todos!11:08
facubatistaChipaca, please remember https://github.com/canonical/charmcraft/pull/8912:23
mupPR charmcraft#89: Store release <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/89>12:23
facubatistaChipaca, jam, is there a way to "re-send the work to Travis from GH"?12:25
facubatistaI need to do that here: https://github.com/canonical/charmcraft/pull/8912:25
mupPR charmcraft#89: Store release <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/89>12:25
Chipacafacubatista: let me look12:25
jamif you log into travis you can ask it to rebuild, IIRC12:25
facubatistajam, I don't see the work in travis12:25
facubatistas/work/job/whatever12:26
Chipacafacubatista: https://travis-ci.org/github/canonical/charmcraft/builds/710773290 ?12:26
Chipacaor is that the wrong commit12:26
facubatistaChipaca, that it's not listed here: https://travis-ci.org/github/canonical/charmcraft/builds12:27
Chipacafacubatista: https://travis-ci.org/github/canonical/charmcraft/pull_requests12:27
facubatistaoh12:28
Chipacathe commit hashes don't match so i dunno12:28
Chipacabut it's got two builds 22 hours ago, which matches the two commits from 22 hours ago :)12:29
facubatistaif I tell it to "see this commit in github" I see a diff like looks like my PR, but with a message "This commit does not belong to any branch on this repository."12:31
facubatistaso it looks it's a travis commit?12:31
facubatistaanyway, I'll trigger a re-build of one of the jobs to see if that pings GH correctly12:31
jamdid you rebase something?12:31
facubatistajam, nop12:38
facubatistameanwhile, this: https://github.com/canonical/charmcraft/pull/9312:39
mupPR charmcraft#93: Store status <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/93>12:39
facubatista(but note that it depends on 8912:39
facubatista)12:39
jamfacubatista, is there anything blocking 89 other than @Chipaca ?12:44
facubatistanop12:44
* Chipaca blocks all the things12:45
facubatistaChipaca, if you answer "ehhhh... maybe? :-)" in a review conversation it makes me try to find the new commit changes to see if you changed or not that particular line12:47
facubatistaChipaca, it's better IMO if you just say "no" (and continue talking) or "yes" (and I can assume you changed as suggested)12:47
Chipacafacubatista: my apologies. You are right.12:59
facubatistaChipaca, no problemo :)12:59
Chipacafacubatista: I changed it to a warning, but I don't know how much sense it makes, because I am not able to create the conditions that would cause that line of code to be exercised12:59
facubatistaChipaca, ack13:06
Chipacafacubatista: there are a couple of 'ifs' there that aren't covered because the docs say they can happen but not how :)13:07
Chipacaheh, jam, good idea about filtering, why didn't i look at that13:09
jamChipaca, for the OSError that we want to log?13:10
Chipacaye13:10
mupPR operator#361 opened: ops/testing.py: Basic support for checking pod spec <Created by jameinel> <https://github.com/canonical/operator/pull/361>13:19
Chipacafacubatista, jam, we standupping?13:33
jamChipaca, I'm sitdowning13:33
facubatistagoing13:34
Chipacawe're going to grow a shared lib between ops and charmcraft aren't we13:54
jamfacubatista, reading through your outline I think it flows fairly well.13:54
jamobviously needs fleshing out, but the basic flow seems good13:54
facubatistajam, thanks!13:54
Chipacafacubatista: venv is not always there fwiw14:03
Chipacawhy am i replying to reviews on irc14:03
* Chipaca chastises himself14:03
jamChipaca, because you want immediate feedback ?14:03
facubatistawe can talk here or in a HO about some specifics from the review (higher bandwidth), but I'd need more context14:06
Chipacafacubatista, jam, do neither of you have your name in gecos?14:15
facubatistait worked in my machine14:18
Chipacathat's: getent passwd $USER | cut -d: -f5 | cut -d, -f114:18
Chipacafwiw14:18
facubatistaChipaca, jam, store-status is formally ready for review (store-release landed and merged into it)14:44
Chipacafacubatista: WDYT of https://paste.ubuntu.com/p/8NqQx9mp9P/ ?15:02
facubatistaChipaca, I'm not sure... we do need to add a "long help", but not sure if the docstring is the proper place to put it.15:06
facubatistawe should dedent that at least15:06
Chipacathe default formatter does that already15:07
facubatistawhich we're replacing15:07
Chipacawe are?15:07
facubatistawe are15:07
Chipacaah15:07
facubatistathere's no way to conform to Canonical specifities using argparse help constructor15:07
Chipacafacubatista: the one we have does dedent though :)15:07
Chipacafacubatista, jam, virtualenv in the template README: env, or .env?15:37
facubatistaenv15:37
Chipacak15:37
facubatistaI don't think we should create hidden stuff if possible15:38
jamChipaca, I've always done venv15:38
jamI think that is the default if you just "python3 -m venv"15:38
Chipacajam: ENV_DIR is required for venv as well15:39
ChipacaOTOH 'env' might confuse people into thinking it's environment, not virtualenv-ish15:40
facubatistaI'm fine with it just being visible15:43
Chipacavisible is a terrible name for a virtual environment directory15:44
facubatistajajaj15:44
Chipacajam: i just hit the 'flake8 checks all the files in the venv' thing15:44
Chipacaadding a .flake8 :)15:44
facubatistaVirtual Included Super Important Basic Large Environment15:45
Chipaca\o/15:50
Chipacafacubatista: what's the pytest equivalent of assertRaises?16:14
facubatistaChipaca, pytest.raises()16:15
facubatistaChipaca, it have a `match` arg where you can pass a regex to check for the exception message16:15
facubatistaI've been comparing the exact text in a lot of places by doing `str(cm.value)`, though16:16
facubatista(cm is the context manager)16:16
facubatistawith pytest.raises(ValueError) as cm:16:16
facubatistaChipaca, for the `init` command, what about a "versions" file?16:21
Chipacafacubatista: ?16:27
Chipacafacubatista: what do you mean a versions file?16:27
facubatistaChipaca, a file named 'version'16:27
Chipacafacubatista: that sounds like a bad idea to me :)16:27
Chipacafacubatista: because i'd expect 'charmcraft build' to generate that16:27
Chipacafacubatista: as per charmcraft#3716:28
mupIssue charmcraft#37: Populate the 'version' file as part of 'charmcraft build' <Created by jameinel> <https://github.com/canonical/charmcraft/issues/37>16:28
facubatistaChipaca, ok :)16:28
facubatistaChipaca, mmm... however, what we'll put in the 'automatic version file'? we only have the git hash, users will want the version to be 1.0, 1.116:30
facubatistaI'm +1 for build to produce something if not there, but a good formed project probably should provide its own information there16:31
Chipacafacubatista: sounds like something we should figure out soon :) maybe comment on that bug?16:34
facubatistadone16:41
Chipacafacubatista: got a sec?17:34
facubatistaChipaca, got two!17:35
Chipacafacubatista: standup meet plz17:35
facubatistaChipaca, "series" in the metadata.yaml file is mandatory for the Store18:04
facubatistaChipaca, jam, updated https://gist.github.com/facundobatista/e279a6e5adac93bb6b048cbf5a9fe96f18:14
facubatistaChipaca, jam, unless "English corrections" or any specific comment from you, it would be done18:14
facubatistaChipaca, also proposed https://github.com/canonical/charmcraft/pull/9418:50
mupPR charmcraft#94: Store commands autocomplete <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/94>18:50
Chipacafacubatista: is the store really not answering anything other than 'rejected' when it doesn't like an upload?22:32
Chipacafacubatista: charmcraft writes everything to stederr :-(22:53
* Chipaca files a bug22:53
facubatistaChipaca, they landed an improvement these days22:54
facubatistaChipaca, we can fix the issue I opened for when they provide more info22:54
Chipacak22:54
facubatistaChipaca, regarding stderr, we need to decide what we'll send to stdout and stderr, check the "messages to the user" doc22:54
Chipacafacubatista: the expected output of a command is never stderr22:55
facubatistaChipaca, what about errors?22:56
facubatistaanyway, the doc22:56
* facubatista is not really here22:56
* Chipaca EODs23:12

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!