Skip to content

Instantly share code, notes, and snippets.

FAIL tests/unit/amo/components/TestInstallWarning.js
FAIL tests/unit/amo/components/TestInstallWarning.js
● Test suite failed to run
TypeError: getConsoleOutput is not a function
21 | // prettier-ignore
22 | this.log(
> 23 | ` ${TITLE_BULLET}Console\n\n${getConsoleOutput(
| ^
render() {
const { version } = this.props;
return (
<LinterProvider
versionId={version.id}
validationURL={version.validationURL}
selectedPath={version.selectedPath}
>
{this.renderWithMessages}
~/Documents/gitRepos/addons-server[master*]$ docker-compose logs elasticsearch
WARNING: The CIRCLECI variable is not set. Defaulting to a blank string.
Attaching to addons-server_elasticsearch_1
elasticsearch_1 | [2020-01-07T21:23:16,975][INFO ][o.e.n.Node ] [] initializing ...
elasticsearch_1 | [2020-01-07T21:23:17,305][INFO ][o.e.e.NodeEnvironment ] [J2wjORB] using [1] data paths, mounts [[/ (overlay)]], net usable_space [47.2gb], net total_space [58.4gb], spins? [possibly], types [overlay]
elasticsearch_1 | [2020-01-07T21:23:17,306][INFO ][o.e.e.NodeEnvironment ] [J2wjORB] heap size [494.9mb], compressed ordinary object pointers [true]
elasticsearch_1 | [2020-01-07T21:23:17,315][INFO ][o.e.n.Node ] node name [J2wjORB] derived from node ID [J2wjORBoRtez7UyZkoso5A]; set [node.name] to override
elasticsearch_1 | [2020-01-07T21:23:17,315][INFO ][o.e.n.Node ] version[5.4.1], pid[1], build[2cfe0df/2017-05-29T16:05:51.443Z], OS[Linux/4.9.184-linuxkit/
{"Timestamp": 1578432989214824704, "Type": "PIL.PngImagePlugin", "Logger": "http_app_addons", "Hostname": "6d864fed9eaa", "EnvVersion": "2.0", "Severity": 7, "Pid": 1428, "Fields": {"uid": "", "remoteAddressChain": "", "msg": "STREAM b'IHDR' 16 13"}, "severity": 100}
{"Timestamp": 1578432989216493312, "Type": "PIL.PngImagePlugin", "Logger": "http_app_addons", "Hostname": "6d864fed9eaa", "EnvVersion": "2.0", "Severity": 7, "Pid": 1428, "Fields": {"uid": "", "remoteAddressChain": "", "msg": "STREAM b'IDAT' 41 1413"}, "severity": 100}
{"Timestamp": 1578432989258680832, "Type": "z.amo", "Logger": "http_app_addons", "Hostname": "6d864fed9eaa", "EnvVersion": "2.0", "Severity": 6, "Pid": 1428, "Fields": {"uid": "<anon>", "remoteAddressChain": "", "msg": "Optimizing image: /code/src/olympia/../../storage/shared_storage/uploads/previews/full/0/5.png"}, "severity": 200}
{"Timestamp": 1578432989727889152, "Type": "z.amo", "Logger": "http_app_addons", "Hostname": "6d864fed9eaa", "EnvVersion": "2.0", "Severity": 6, "Pid":
22"}, "severity": 200}
{"Timestamp": 1578424948294715904, "Type": "z.task", "Logger": "http_app_addons", "Hostname": "3b4862b183dc", "EnvVersion": "2.0", "Severity": 6, "Pid": 1692, "Fields": {"uid": "<anon>", "remoteAddressChain": "", "msg": "starting task timer; id=f5ceff4f-dea0-45fc-9313-2861136d0eb5; name=olympia.ratings.tasks.addon_bayesian_rating; current_dt=2020-01-07 19:22:28.292954"}, "severity": 200}
{"Timestamp": 1578424948298687232, "Type": "z.task", "Logger": "http_app_addons", "Hostname": "3b4862b183dc", "EnvVersion": "2.0", "Severity": 6, "Pid": 1692, "Fields": {"uid": "<anon>", "remoteAddressChain": "", "msg": "[1@None] Updating bayesian ratings."}, "severity": 200}
{"Timestamp": 1578424948445936384, "Type": "celery.app.trace", "Logger": "http_app_addons", "Hostname": "3b4862b183dc", "EnvVersion": "2.0", "Severity": 6, "Pid": 1692, "Fields": {"data": {"id": "f5ceff4f-dea0-45fc-9313-2861136d0eb5", "name": "olympia.ratings.tasks.addon_bayesian_rating", "return_value": "None", "runtime": 0.152622
{
"page_size": 25,
"page_count": 1,
"count": 10,
"next": null,
"previous": null,
"results": [
{
"id": 622,
"filename": "manifest.json",
// Props of the <DiffView> component:
type DiffProps = {
children: (hunks: HunkInfo[]) => ReactNode;
className?: string;
diffType: string;
hunks: Hunks;
tokens?: Tokens;
viewType: ViewType;
gutterType?: 'default' | 'anchor' | 'none';
<withRouter(PageBase) contentClassName="Addon Addon-extension" contentProps={{...}}>
<Translate(Connect(AddonHeadBase)) addon={{...}} />
<div className="Addon-header-wrapper">
<Card className="Addon-header-info-card" photonStyle={true}>
<Translate(AddonInstallErrorBase) error={[undefined]} />
<Connect(Translate(AddonCompatibilityErrorBase)) addon={{...}} />
<header className="Addon-header">
<div className="Addon-icon">
<div className="Addon-icon-wrapper">
<img alt="Preview of Chill Out" className="Addon-icon-image" src="https://addons.cdn.mozilla.net/webdev-64.png" />
const getFileInfoText = () => {
if (!versionInfo || !versionInfo.created || !versionInfo.filesize) {
return null;
}
return (
<div className="AddonVersionCard-fileInfo">
{i18n.sprintf(
i18n.gettext('Released %(dateReleased)s - %(fileSize)s'),
{
dateReleased: i18n.moment(versionInfo.created).format('ll'),
FAIL tests/unit/test_localesConfig.js
● /Users/bsilverberg/Documents/gitRepos/addons-frontend/tests/unit/test_localesConfig.js › Check Locale JS for entities › src/locale/de/amo.js should not have html entities
expect(received).toBeFalsy()
Received: true
36 | fs.readFile(localeJSFile, 'utf8', (err, data) => {
37 | if (!err) {
> 38 | expect(/&[^\s]+;/.test(data)).toBeFalsy();