code_before
stringlengths
16
1.81M
edits
stringlengths
4
328k
next_edit
stringlengths
0
76.5k
code_after
stringlengths
3
49.9M
label_window
sequencelengths
4
1.81k
instruction
stringlengths
20
51.9k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
Dns.propTypes = { dashboard: PropTypes.object.isRequired, settings: PropTypes.object.isRequired, setUpstream: PropTypes.func.isRequired, testUpstream: PropTypes.func.isRequired, getAccessList: PropTypes.func.isRequired, setAccessList: PropTypes.func.isRequired, access: PropTypes.object.isRequired, getDnsSettings: PropTypes.func.isRequired,
</s> remove dashboard: PropTypes.object.isRequired, </s> add </s> remove getDnsSettings: PropTypes.func.isRequired, </s> add </s> remove processingSetUpstream: PropTypes.bool.isRequired, </s> add </s> remove upstreamDns: PropTypes.string, bootstrapDns: PropTypes.string, allServers: PropTypes.bool, setUpstream: PropTypes.func.isRequired, </s> add
Dns.propTypes = { dashboard: PropTypes.object.isRequired, settings: PropTypes.object.isRequired, testUpstream: PropTypes.func.isRequired, getAccessList: PropTypes.func.isRequired, setAccessList: PropTypes.func.isRequired, access: PropTypes.object.isRequired, getDnsSettings: PropTypes.func.isRequired,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/components/Settings/Dns/index.js
testUpstream: PropTypes.func.isRequired, getAccessList: PropTypes.func.isRequired, setAccessList: PropTypes.func.isRequired, access: PropTypes.object.isRequired, getDnsSettings: PropTypes.func.isRequired, dnsConfig: PropTypes.object.isRequired, setDnsConfig: PropTypes.func.isRequired, getDnsConfig: PropTypes.func.isRequired, t: PropTypes.func.isRequired, };
</s> remove setUpstream: PropTypes.func.isRequired, </s> add </s> remove dashboard: PropTypes.object.isRequired, </s> add </s> remove processingSetUpstream: PropTypes.bool.isRequired, </s> add </s> remove upstreamDns: PropTypes.string, bootstrapDns: PropTypes.string, allServers: PropTypes.bool, setUpstream: PropTypes.func.isRequired, </s> add
testUpstream: PropTypes.func.isRequired, getAccessList: PropTypes.func.isRequired, setAccessList: PropTypes.func.isRequired, access: PropTypes.object.isRequired, dnsConfig: PropTypes.object.isRequired, setDnsConfig: PropTypes.func.isRequired, getDnsConfig: PropTypes.func.isRequired, t: PropTypes.func.isRequired, };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/components/Settings/Dns/index.js
.checkbox__input:disabled + .checkbox__label { cursor: default; } .checkbox__input:disabled + .checkbox__label:before { opacity: 0.6; }
</s> remove import { handleUpstreamChange, setUpstream, testUpstream, getDnsSettings } from '../actions'; </s> add import { testUpstream } from '../actions'; </s> remove setUpstream(url) { const { path, method } = this.GLOBAL_SET_UPSTREAM_DNS; const config = { data: url, headers: { 'Content-Type': 'application/json' }, }; return this.makeRequest(path, method, config); } </s> add </s> remove await apiClient.setDnsConfig(config); dispatch(addSuccessToast('config_successfully_saved')); </s> add const data = { ...config }; let hasDnsSettings = false; if (Object.prototype.hasOwnProperty.call(data, 'bootstrap_dns')) { data.bootstrap_dns = normalizeTextarea(config.bootstrap_dns); hasDnsSettings = true; } if (Object.prototype.hasOwnProperty.call(data, 'upstream_dns')) { data.upstream_dns = normalizeTextarea(config.upstream_dns); hasDnsSettings = true; } await apiClient.setDnsConfig(data); if (hasDnsSettings) { dispatch(addSuccessToast('updated_upstream_dns_toast')); } else { dispatch(addSuccessToast('config_successfully_saved')); } </s> remove dashboard: PropTypes.object.isRequired, </s> add
color: var(--gray);
.checkbox__input:disabled + .checkbox__label { cursor: default; color: var(--gray); } .checkbox__input:disabled + .checkbox__label:before { opacity: 0.6; }
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/components/ui/Checkbox.css
import { connect } from 'react-redux'; import { handleUpstreamChange, setUpstream, testUpstream, getDnsSettings } from '../actions'; import { getAccessList, setAccessList } from '../actions/access'; import { getRewritesList, addRewrite, deleteRewrite,
</s> remove import { renderSelectField } from '../../../../helpers/form'; </s> add </s> remove handleUpstreamChange, setUpstream, </s> add </s> remove this.props.getDnsSettings(); </s> add </s> remove this.props.setUpstream(values); </s> add this.props.setDnsConfig(values);
import { testUpstream } from '../actions';
import { connect } from 'react-redux'; import { testUpstream } from '../actions'; import { getAccessList, setAccessList } from '../actions/access'; import { getRewritesList, addRewrite, deleteRewrite,
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/containers/Dns.js
return props; }; const mapDispatchToProps = { handleUpstreamChange, setUpstream, testUpstream, getAccessList, setAccessList, getRewritesList, addRewrite,
</s> remove import { handleUpstreamChange, setUpstream, testUpstream, getDnsSettings } from '../actions'; </s> add import { testUpstream } from '../actions'; </s> remove dashboard, </s> add </s> remove setUpstream, </s> add </s> remove getDnsSettings, </s> add </s> remove upstreamDns, bootstrapDns, allServers, </s> add
return props; }; const mapDispatchToProps = { testUpstream, getAccessList, setAccessList, getRewritesList, addRewrite,
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/containers/Dns.js
getRewritesList, addRewrite, deleteRewrite, toggleRewritesModal, getDnsSettings, getDnsConfig, setDnsConfig, }; export default connect(
</s> remove handleUpstreamChange, setUpstream, </s> add </s> remove import { handleUpstreamChange, setUpstream, testUpstream, getDnsSettings } from '../actions'; </s> add import { testUpstream } from '../actions'; </s> remove processingSetUpstream: PropTypes.bool.isRequired, </s> add </s> remove upstreamDns, bootstrapDns, allServers, </s> add upstream_dns, bootstrap_dns, fastest_addr, parallel_requests,
getRewritesList, addRewrite, deleteRewrite, toggleRewritesModal, getDnsConfig, setDnsConfig, }; export default connect(
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/containers/Dns.js
placeholder, subtitle, disabled, modifier = 'checkbox--form', meta: { touched, error }, }) => ( <Fragment>
</s> remove <Fragment> <label className={`checkbox ${modifier}`}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </s> add <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> </s> remove <div className="col-12"> <div className="form__group form__group--settings"> <label className="form__label" htmlFor="upstream_dns"> <Trans>upstream_dns</Trans> </label> <Field id="upstream_dns" name="upstream_dns" component="textarea" type="text" className="form-control form-control--textarea" placeholder={t('upstream_dns')} disabled={processingSetUpstream || processingTestUpstream} /> </div> </div> <div className="col-12"> <div className="form__group form__group--settings"> <Field name="all_servers" type="checkbox" component={renderSelectField} placeholder={t('upstream_parallel')} disabled={processingSetUpstream} /> </div> </div> </s> add {INPUT_FIELDS.map(({ name, component, type, className, placeholder, getTitle, subtitle, disabled, }) => <div className="col-12 mb-4" key={name}> {typeof getTitle === 'function' && getTitle()} <Field id={name} name={name} component={component} type={type} className={className} placeholder={t(placeholder)} subtitle={t(subtitle)} disabled={processingSetConfig || processingTestUpstream || disabled} /> </div>)} </s> remove [actions.handleUpstreamChange]: (state, { payload }) => { const { upstreamDns } = payload; return { ...state, upstreamDns }; }, </s> add </s> remove {isDataLoading && <Loading />} {isDataReady && ( </s> add {isDataLoading ? <Loading /> : </s> remove const getFields = (processing, t) => Object.values(BLOCKING_MODES).map(mode => ( <Field key={mode} name="blocking_mode" type="radio" component={renderRadioField} value={mode} placeholder={t(mode)} disabled={processing} /> )); </s> add const checkboxes = [{ name: 'edns_cs_enabled', placeholder: 'edns_enable', subtitle: 'edns_cs_desc', }, { name: 'dnssec_enabled', placeholder: 'dnssec_enable', subtitle: 'dnssec_enable_desc', }, { name: 'disable_ipv6', placeholder: 'disable_ipv6', subtitle: 'disable_ipv6_desc', }]; const customIps = [{ description: 'blocking_ipv4_desc', name: 'blocking_ipv4', validateIp: ipv4, }, { description: 'blocking_ipv6_desc', name: 'blocking_ipv6', validateIp: ipv6, }]; const getFields = (processing, t) => Object.values(BLOCKING_MODES) .map(mode => ( <Field key={mode} name="blocking_mode" type="radio" component={renderRadioField} value={mode} placeholder={t(mode)} disabled={processing} /> ));
onClick,
placeholder, subtitle, disabled, onClick, modifier = 'checkbox--form', meta: { touched, error }, }) => ( <Fragment>
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/helpers/form.js
disabled, modifier = 'checkbox--form', meta: { touched, error }, }) => ( <Fragment> <label className={`checkbox ${modifier}`}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> </span> </label> {!disabled && touched &&
</s> remove </span> </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> </s> add </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> </s> remove {isDataLoading && <Loading />} {isDataReady && ( </s> add {isDataLoading ? <Loading /> : </s> remove const isDataLoading = dashboard.processingDnsSettings || access.processing || dnsConfig.processingGetConfig; const isDataReady = !dashboard.processingDnsSettings && !access.processing && !dnsConfig.processingGetConfig; </s> add const isDataLoading = access.processing || dnsConfig.processingGetConfig; </s> remove <div className="col-12"> <div className="form__group form__group--settings"> <label className="form__label" htmlFor="upstream_dns"> <Trans>upstream_dns</Trans> </label> <Field id="upstream_dns" name="upstream_dns" component="textarea" type="text" className="form-control form-control--textarea" placeholder={t('upstream_dns')} disabled={processingSetUpstream || processingTestUpstream} /> </div> </div> <div className="col-12"> <div className="form__group form__group--settings"> <Field name="all_servers" type="checkbox" component={renderSelectField} placeholder={t('upstream_parallel')} disabled={processingSetUpstream} /> </div> </div> </s> add {INPUT_FIELDS.map(({ name, component, type, className, placeholder, getTitle, subtitle, disabled, }) => <div className="col-12 mb-4" key={name}> {typeof getTitle === 'function' && getTitle()} <Field id={name} name={name} component={component} type={type} className={className} placeholder={t(placeholder)} subtitle={t(subtitle)} disabled={processingSetConfig || processingTestUpstream || disabled} /> </div>)}
<Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span>
disabled, modifier = 'checkbox--form', meta: { touched, error }, }) => ( <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> </span> </span> </label> {!disabled && touched &&
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/helpers/form.js
dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> </span> </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> ); export const renderServiceField = ({ input, placeholder,
</s> remove <Fragment> <label className={`checkbox ${modifier}`}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </s> add <Fragment> <label className={`checkbox ${modifier}`} onClick={onClick}> <span className="checkbox__marker" /> <input {...input} type="checkbox" className="checkbox__input" disabled={disabled} /> <span className="checkbox__label"> <span className="checkbox__label-text checkbox__label-text--long"> <span className="checkbox__label-title">{placeholder}</span> {subtitle && ( <span className="checkbox__label-subtitle" dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> </s> remove </Fragment> )} </s> add </Fragment>} </s> remove const isDataLoading = dashboard.processingDnsSettings || access.processing || dnsConfig.processingGetConfig; const isDataReady = !dashboard.processingDnsSettings && !access.processing && !dnsConfig.processingGetConfig; </s> add const isDataLoading = access.processing || dnsConfig.processingGetConfig; </s> remove {isDataLoading && <Loading />} {isDataReady && ( </s> add {isDataLoading ? <Loading /> :
</label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment>
dangerouslySetInnerHTML={{ __html: subtitle }} /> )} </span> </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> </label> {!disabled && touched && (error && <span className="form__message form__message--error">{error}</span>)} </Fragment> ); export const renderServiceField = ({ input, placeholder,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/helpers/form.js
const { blocking_ipv4, blocking_ipv6, ...values } = payload; return { ...state, ...values,
</s> remove [actions.handleUpstreamChange]: (state, { payload }) => { const { upstreamDns } = payload; return { ...state, upstreamDns }; }, </s> add </s> remove [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, </s> add </s> remove language, </s> add </s> remove [actions.setUpstreamRequest]: state => ({ ...state, processingSetUpstream: true }), [actions.setUpstreamFailure]: state => ({ ...state, processingSetUpstream: false }), [actions.setUpstreamSuccess]: (state, { payload }) => ({ ...state, ...payload, processingSetUpstream: false, }), </s> add
upstream_dns, bootstrap_dns,
const { blocking_ipv4, blocking_ipv6, upstream_dns, bootstrap_dns, ...values } = payload; return { ...state, ...values,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/dnsConfig.js
blocking_ipv4: blocking_ipv4 || DEFAULT_BLOCKING_IPV4, blocking_ipv6: blocking_ipv6 || DEFAULT_BLOCKING_IPV6, processingGetConfig: false, }; }, [actions.setDnsConfigRequest]: state => ({ ...state, processingSetConfig: true }), [actions.setDnsConfigFailure]: state =>
</s> remove [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, </s> add </s> remove [actions.setUpstreamRequest]: state => ({ ...state, processingSetUpstream: true }), [actions.setUpstreamFailure]: state => ({ ...state, processingSetUpstream: false }), [actions.setUpstreamSuccess]: (state, { payload }) => ({ ...state, ...payload, processingSetUpstream: false, }), </s> add </s> remove [actions.handleUpstreamChange]: (state, { payload }) => { const { upstreamDns } = payload; return { ...state, upstreamDns }; }, </s> add </s> remove upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, </s> add </s> remove submitting || invalid || processingSetUpstream || processingTestUpstream </s> add submitting || invalid || processingSetConfig || processingTestUpstream
upstream_dns: (upstream_dns && upstream_dns.join('\n')) || '', bootstrap_dns: (bootstrap_dns && bootstrap_dns.join('\n')) || '',
blocking_ipv4: blocking_ipv4 || DEFAULT_BLOCKING_IPV4, blocking_ipv6: blocking_ipv6 || DEFAULT_BLOCKING_IPV6, upstream_dns: (upstream_dns && upstream_dns.join('\n')) || '', bootstrap_dns: (bootstrap_dns && bootstrap_dns.join('\n')) || '', processingGetConfig: false, }; }, [actions.setDnsConfigRequest]: state => ({ ...state, processingSetConfig: true }), [actions.setDnsConfigFailure]: state =>
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/dnsConfig.js
const newSetting = { ...setting, enabled: !setting.enabled }; const newSettingsList = { ...settingsList, [settingKey]: newSetting }; return { ...state, settingsList: newSettingsList }; }, [actions.setUpstreamRequest]: state => ({ ...state, processingSetUpstream: true }), [actions.setUpstreamFailure]: state => ({ ...state, processingSetUpstream: false }), [actions.setUpstreamSuccess]: (state, { payload }) => ({ ...state, ...payload, processingSetUpstream: false, }), [actions.testUpstreamRequest]: state => ({ ...state, processingTestUpstream: true }), [actions.testUpstreamFailure]: state => ({ ...state, processingTestUpstream: false }), [actions.testUpstreamSuccess]: state => ({ ...state, processingTestUpstream: false }), }, {
</s> remove [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, </s> add </s> remove [actions.handleUpstreamChange]: (state, { payload }) => { const { upstreamDns } = payload; return { ...state, upstreamDns }; }, </s> add </s> remove processingSetUpstream: false, </s> add </s> remove }) => ( </s> add }) =>
const newSetting = { ...setting, enabled: !setting.enabled }; const newSettingsList = { ...settingsList, [settingKey]: newSetting }; return { ...state, settingsList: newSettingsList }; }, [actions.testUpstreamRequest]: state => ({ ...state, processingTestUpstream: true }), [actions.testUpstreamFailure]: state => ({ ...state, processingTestUpstream: false }), [actions.testUpstreamSuccess]: state => ({ ...state, processingTestUpstream: false }), }, {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
}, { processing: true, processingTestUpstream: false, processingSetUpstream: false, processingDhcpStatus: false, settingsList: {}, }, );
</s> remove processingDnsSettings: true, </s> add </s> remove upstreamDns: '', bootstrapDns: '', allServers: false, </s> add </s> remove [actions.setUpstreamRequest]: state => ({ ...state, processingSetUpstream: true }), [actions.setUpstreamFailure]: state => ({ ...state, processingSetUpstream: false }), [actions.setUpstreamSuccess]: (state, { payload }) => ({ ...state, ...payload, processingSetUpstream: false, }), </s> add </s> remove upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, </s> add
}, { processing: true, processingTestUpstream: false, processingDhcpStatus: false, settingsList: {}, }, );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
const { version, dns_port: dnsPort, dns_addresses: dnsAddresses, upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, protection_enabled: protectionEnabled, language, http_port: httpPort, } = payload; const newState = {
</s> remove language, </s> add </s> remove upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, </s> add </s> remove upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, </s> add upstream_dns, bootstrap_dns, </s> remove disabled={!upstreamDns || processingTestUpstream} </s> add disabled={!upstream_dns || processingTestUpstream}
const { version, dns_port: dnsPort, dns_addresses: dnsAddresses, protection_enabled: protectionEnabled, language, http_port: httpPort, } = payload; const newState = {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, protection_enabled: protectionEnabled, language, http_port: httpPort, } = payload; const newState = { ...state, isCoreRunning: true,
</s> remove upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, </s> add </s> remove upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, </s> add upstream_dns, bootstrap_dns, </s> remove [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, </s> add </s> remove upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, </s> add
upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, protection_enabled: protectionEnabled, http_port: httpPort, } = payload; const newState = { ...state, isCoreRunning: true,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
dns_port: dnsPort, dns_addresses: dnsAddresses, protection_enabled: protectionEnabled, http_port: httpPort, } = payload; const newState = { ...state, isCoreRunning: true, processing: false,
</s> remove upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, </s> add </s> remove language, </s> add </s> remove upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, </s> add </s> remove processingDnsSettings: true, </s> add </s> remove processingSetUpstream: false, </s> add
language,
dns_port: dnsPort, dns_addresses: dnsAddresses, protection_enabled: protectionEnabled, http_port: httpPort, language, } = payload; const newState = { ...state, isCoreRunning: true, processing: false,
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
processing: false, dnsVersion: version, dnsPort, dnsAddresses, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, protectionEnabled, language, httpPort, }; return newState;
</s> remove [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, </s> add </s> remove upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, </s> add </s> remove processingDnsSettings: true, </s> add
processing: false, dnsVersion: version, dnsPort, dnsAddresses, protectionEnabled, language, httpPort, }; return newState;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
}; return newState; }, [actions.handleUpstreamChange]: (state, { payload }) => { const { upstreamDns } = payload; return { ...state, upstreamDns }; }, [actions.getLanguageSuccess]: (state, { payload }) => { const newState = { ...state, language: payload }; return newState; },
</s> remove [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, </s> add </s> remove [actions.setUpstreamRequest]: state => ({ ...state, processingSetUpstream: true }), [actions.setUpstreamFailure]: state => ({ ...state, processingSetUpstream: false }), [actions.setUpstreamSuccess]: (state, { payload }) => ({ ...state, ...payload, processingSetUpstream: false, }), </s> add </s> remove setUpstream(url) { const { path, method } = this.GLOBAL_SET_UPSTREAM_DNS; const config = { data: url, headers: { 'Content-Type': 'application/json' }, }; return this.makeRequest(path, method, config); } </s> add </s> remove upstreamDns, bootstrapDns, allServers, </s> add upstream_dns, bootstrap_dns, fastest_addr, parallel_requests,
}; return newState; }, [actions.getLanguageSuccess]: (state, { payload }) => { const newState = { ...state, language: payload }; return newState; },
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
}; return newState; }, [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, [actions.getProfileRequest]: state => ({ ...state, processingProfile: true }), [actions.getProfileFailure]: state => ({ ...state, processingProfile: false }), [actions.getProfileSuccess]: (state, { payload }) => ({ ...state, name: payload.name,
</s> remove [actions.setUpstreamRequest]: state => ({ ...state, processingSetUpstream: true }), [actions.setUpstreamFailure]: state => ({ ...state, processingSetUpstream: false }), [actions.setUpstreamSuccess]: (state, { payload }) => ({ ...state, ...payload, processingSetUpstream: false, }), </s> add </s> remove [actions.handleUpstreamChange]: (state, { payload }) => { const { upstreamDns } = payload; return { ...state, upstreamDns }; }, </s> add </s> remove upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, </s> add </s> remove language, </s> add
}; return newState; }, [actions.getProfileRequest]: state => ({ ...state, processingProfile: true }), [actions.getProfileFailure]: state => ({ ...state, processingProfile: false }), [actions.getProfileSuccess]: (state, { payload }) => ({ ...state, name: payload.name,
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
isCoreRunning: true, processingVersion: true, processingClients: true, processingUpdate: false, processingDnsSettings: true, processingProfile: true, upstreamDns: '', bootstrapDns: '', allServers: false, protectionEnabled: false,
</s> remove upstreamDns: '', bootstrapDns: '', allServers: false, </s> add </s> remove processingSetUpstream: false, </s> add </s> remove upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, </s> add </s> remove [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, </s> add
isCoreRunning: true, processingVersion: true, processingClients: true, processingUpdate: false, processingProfile: true, upstreamDns: '', bootstrapDns: '', allServers: false, protectionEnabled: false,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
processingClients: true, processingUpdate: false, processingDnsSettings: true, processingProfile: true, upstreamDns: '', bootstrapDns: '', allServers: false, protectionEnabled: false, processingProtection: false, httpPort: 80, dnsPort: 53, dnsAddresses: [],
</s> remove processingDnsSettings: true, </s> add </s> remove processingSetUpstream: false, </s> add </s> remove upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', allServers, </s> add </s> remove [actions.getDnsSettingsRequest]: state => ({ ...state, processingDnsSettings: true }), [actions.getDnsSettingsFailure]: state => ({ ...state, processingDnsSettings: false }), [actions.getDnsSettingsSuccess]: (state, { payload }) => { const { upstream_dns: upstreamDns, bootstrap_dns: bootstrapDns, all_servers: allServers, } = payload; return { ...state, allServers, upstreamDns: (upstreamDns && upstreamDns.join('\n')) || '', bootstrapDns: (bootstrapDns && bootstrapDns.join('\n')) || '', processingDnsSettings: false, }; }, </s> add
processingClients: true, processingUpdate: false, processingDnsSettings: true, processingProfile: true, protectionEnabled: false, processingProtection: false, httpPort: 80, dnsPort: 53, dnsAddresses: [],
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: add fastest_addr setting Squashed commit of the following: commit e47fae25f7bac950bfb452fc8f18b9c0865b08ba Merge: a23285ec e2ddc82d Author: Simon Zolin <[email protected]> Date: Wed Apr 22 19:16:01 2020 +0300 Merge remote-tracking branch 'origin/master' into 715 commit a23285ec3ace78fe4ce19122a51ecf3e6cdd942c Author: ArtemBaskal <[email protected]> Date: Wed Apr 22 18:30:30 2020 +0300 Review changes commit f80d62a0d2038ff9d070ae9e9c77c33b92232d9c Author: ArtemBaskal <[email protected]> Date: Tue Apr 21 16:37:42 2020 +0300 + client: Add fastest addr option commit 9e713df80c5bf113c98794c0a20915c756a76938 Merge: e3bf4037 9b7c1181 Author: Simon Zolin <[email protected]> Date: Tue Apr 21 16:02:03 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit e3bf4037f49198e42bde55305d6f9077341b556a Author: Simon Zolin <[email protected]> Date: Tue Apr 21 15:40:49 2020 +0300 minor commit d6e6a823c5e51acc061b2850d362772efcb827e1 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 17:56:24 2020 +0300 * API changes . removed POST /set_upstreams_config . removed fields from GET /status: bootstrap_dns, upstream_dns, all_servers . added new fields to /dns_config and /dns_info commit 237a452d09cc48ff8f00e81c7fd35e7828bea835 Author: Simon Zolin <[email protected]> Date: Fri Apr 17 16:43:13 2020 +0300 * API: /dns_info, /dns_config: add "parallel_requests" instead of "all_servers" from /set_upstreams_config commit 9976723b9725ed19e0cce152d1d1198b13c4acc1 Author: Simon Zolin <[email protected]> Date: Mon Mar 23 10:28:25 2020 +0300 openapi commit 6f8ea16c6332606f29095b0094d71e8a91798f82 Merge: 36e4d4e8 c8285c41 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 19:18:48 2020 +0300 Merge remote-tracking branch 'origin/master' into 715-fastest-addr commit 36e4d4e82cadeaba5a11313f0d69d66a0924c342 Author: Simon Zolin <[email protected]> Date: Fri Mar 20 18:13:43 2020 +0300 + DNS: add fastest_addr setting
https://github.com/AdguardTeam/AdGuardHome/commit/0ffc0965dc38eb02a09c7a14a8fc8f821cfb0893
client/src/reducers/index.js
formatTime, formatDateTime, } from '../../helpers/helpers'; import { SERVICES, FILTERED_STATUS, TABLE_DEFAULT_PAGE_SIZE } from '../../helpers/constants'; import { getTrackerData } from '../../helpers/trackers/trackers'; import { formatClientCell } from '../../helpers/formatClientCell';
</s> remove maxWidth: 100, </s> add minWidth: 105, </s> remove <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTime(value)} </span> </div> </s> add <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div>
formatTodayDate,
formatTime, formatDateTime, formatTodayDate, } from '../../helpers/helpers'; import { SERVICES, FILTERED_STATUS, TABLE_DEFAULT_PAGE_SIZE } from '../../helpers/constants'; import { getTrackerData } from '../../helpers/trackers/trackers'; import { formatClientCell } from '../../helpers/formatClientCell';
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
+ client: show date in query logs
https://github.com/AdguardTeam/AdGuardHome/commit/108cf73a307f248b1dbc9cb943c75a1adf431f0a
client/src/components/Logs/index.js
checkWhiteList = reason => reason === FILTERED_STATUS.NOT_FILTERED_WHITE_LIST; getTimeCell = ({ value }) => ( <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTime(value)} </span> </div> ); getDomainCell = (row) => { const response = row.value; const trackerData = getTrackerData(response);
</s> remove maxWidth: 100, </s> add minWidth: 105,
<div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div>
checkWhiteList = reason => reason === FILTERED_STATUS.NOT_FILTERED_WHITE_LIST; getTimeCell = ({ value }) => ( <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div> <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div> <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div> <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div> <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div> ); getDomainCell = (row) => { const response = row.value; const trackerData = getTrackerData(response);
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: show date in query logs
https://github.com/AdguardTeam/AdGuardHome/commit/108cf73a307f248b1dbc9cb943c75a1adf431f0a
client/src/components/Logs/index.js
const columns = [ { Header: t('time_table_header'), accessor: 'time', maxWidth: 100, Cell: this.getTimeCell, }, { Header: t('domain_name_table_header'), accessor: 'domain',
</s> remove <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTime(value)} </span> </div> </s> add <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div>
minWidth: 105,
const columns = [ { Header: t('time_table_header'), accessor: 'time', minWidth: 105, Cell: this.getTimeCell, }, { Header: t('domain_name_table_header'), accessor: 'domain',
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
+ client: show date in query logs
https://github.com/AdguardTeam/AdGuardHome/commit/108cf73a307f248b1dbc9cb943c75a1adf431f0a
client/src/components/Logs/index.js
}; export const normalizeLogs = logs => logs.map((log) => { const { time, question, answer: response, reason,
</s> remove maxWidth: 100, </s> add minWidth: 105, </s> remove <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTime(value)} </span> </div> </s> add <div className="logs__row"> <span className="logs__text" title={formatDateTime(value)}> {formatTodayDate(value) === formatTodayDate(Date.now()) ? formatTime(value) : formatDateTime(value)} </span> </div>
export const formatTodayDate = (dateTime) => { const currentLanguage = i18n.languages[0] || 'en'; const parsedTime = dateParse(dateTime); const options = { year: 'numeric', month: 'numeric', day: 'numeric', hour12: false, }; return parsedTime.toLocaleString(currentLanguage, options); };
}; export const formatTodayDate = (dateTime) => { const currentLanguage = i18n.languages[0] || 'en'; const parsedTime = dateParse(dateTime); const options = { year: 'numeric', month: 'numeric', day: 'numeric', hour12: false, }; return parsedTime.toLocaleString(currentLanguage, options); }; export const normalizeLogs = logs => logs.map((log) => { const { time, question, answer: response, reason,
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
+ client: show date in query logs
https://github.com/AdguardTeam/AdGuardHome/commit/108cf73a307f248b1dbc9cb943c75a1adf431f0a
client/src/helpers/helpers.js
'name': 'build' 'env': 'GO_VERSION': '1.19.7' 'NODE_VERSION': '14' 'on': 'push': 'branches':
</s> remove 'GO_VERSION': '1.19.7' </s> add 'GO_VERSION': '1.19.8' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs= </s> remove golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
'GO_VERSION': '1.19.8'
'name': 'build' 'env': 'GO_VERSION': '1.19.8' 'NODE_VERSION': '14' 'on': 'push': 'branches':
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
.github/workflows/build.yml
'name': 'lint' 'env': 'GO_VERSION': '1.19.7' 'on': 'push': 'tags': - 'v*'
</s> remove 'GO_VERSION': '1.19.7' </s> add 'GO_VERSION': '1.19.8' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs=
'GO_VERSION': '1.19.8'
'name': 'lint' 'env': 'GO_VERSION': '1.19.8' 'on': 'push': 'tags': - 'v*'
[ "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
.github/workflows/lint.yml
'name': 'AdGuard Home - Build and publish release' # Make sure to sync any changes with the branch overrides below. 'variables': 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.2' 'stages': - 'Build frontend': 'manual': false 'final': false
</s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'GO_VERSION': '1.19.7' </s> add 'GO_VERSION': '1.19.8' </s> remove 'GO_VERSION': '1.19.7' </s> add 'GO_VERSION': '1.19.8'
'dockerGo': 'adguard/golang-ubuntu:6.3'
'name': 'AdGuard Home - Build and publish release' # Make sure to sync any changes with the branch overrides below. 'variables': 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.3' 'stages': - 'Build frontend': 'manual': false 'final': false
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
bamboo-specs/release.yaml
# Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.2' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config':
</s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'GO_VERSION': '1.19.7' </s> add 'GO_VERSION': '1.19.8' </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs=
'dockerGo': 'adguard/golang-ubuntu:6.3'
# Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.3' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config':
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
bamboo-specs/release.yaml
# Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.2'
</s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs= </s> remove golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
'dockerGo': 'adguard/golang-ubuntu:6.3'
# Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.3'
[ "keep", "keep", "keep", "keep", "replace" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
bamboo-specs/release.yaml
'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' 'variables': 'dockerGo': 'adguard/golang-ubuntu:6.2' 'stages': - 'Tests': 'manual': false 'final': false
</s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'GO_VERSION': '1.19.7' </s> add 'GO_VERSION': '1.19.8' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.2' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.3' </s> remove 'GO_VERSION': '1.19.7' </s> add 'GO_VERSION': '1.19.8'
'dockerGo': 'adguard/golang-ubuntu:6.3'
'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' 'variables': 'dockerGo': 'adguard/golang-ubuntu:6.3' 'stages': - 'Tests': 'manual': false 'final': false
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
bamboo-specs/test.yaml
github.com/kisielk/errcheck v1.6.3 github.com/kyoh86/looppointer v0.2.1 github.com/securego/gosec/v2 v2.15.0 golang.org/x/tools v0.7.0 golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 honnef.co/go/tools v0.4.3 mvdan.cc/gofumpt v0.4.0 mvdan.cc/unparam v0.0.0-20230312165513-e84e2d14e3b8 )
</s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs= </s> remove golang.org/x/sys v0.6.0 // indirect </s> add golang.org/x/sys v0.7.0 // indirect </s> remove golang.org/x/mod v0.9.0 // indirect </s> add golang.org/x/mod v0.10.0 // indirect </s> remove golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> remove golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> add golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/vuln v0.0.0-20230404205743-41aec7335792
github.com/kisielk/errcheck v1.6.3 github.com/kyoh86/looppointer v0.2.1 github.com/securego/gosec/v2 v2.15.0 golang.org/x/tools v0.7.0 golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 honnef.co/go/tools v0.4.3 mvdan.cc/gofumpt v0.4.0 mvdan.cc/unparam v0.0.0-20230312165513-e84e2d14e3b8 )
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
internal/tools/go.mod
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect golang.org/x/exp/typeparams v0.0.0-20230321023759-10a507213a29 // indirect golang.org/x/mod v0.9.0 // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.6.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect )
</s> remove golang.org/x/sys v0.6.0 // indirect </s> add golang.org/x/sys v0.7.0 // indirect </s> remove golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> add golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> remove golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs=
golang.org/x/mod v0.10.0 // indirect
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect golang.org/x/exp/typeparams v0.0.0-20230321023759-10a507213a29 // indirect golang.org/x/mod v0.10.0 // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.6.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect )
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
internal/tools/go.mod
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect golang.org/x/exp/typeparams v0.0.0-20230321023759-10a507213a29 // indirect golang.org/x/mod v0.9.0 // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.6.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect )
</s> remove golang.org/x/mod v0.9.0 // indirect </s> add golang.org/x/mod v0.10.0 // indirect </s> remove golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> add golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> remove golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs=
golang.org/x/sys v0.7.0 // indirect
golang.org/x/exp v0.0.0-20230321023759-10a507213a29 // indirect golang.org/x/exp/typeparams v0.0.0-20230321023759-10a507213a29 // indirect golang.org/x/mod v0.9.0 // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.7.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect )
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
internal/tools/go.mod
golang.org/x/exp/typeparams v0.0.0-20230321023759-10a507213a29/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
</s> remove golang.org/x/mod v0.9.0 // indirect </s> add golang.org/x/mod v0.10.0 // indirect </s> remove golang.org/x/sys v0.6.0 // indirect </s> add golang.org/x/sys v0.7.0 // indirect </s> remove golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs= </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792
golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/exp/typeparams v0.0.0-20230321023759-10a507213a29/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
internal/tools/go.sum
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
</s> remove golang.org/x/sys v0.6.0 // indirect </s> add golang.org/x/sys v0.7.0 // indirect </s> remove golang.org/x/mod v0.9.0 // indirect </s> add golang.org/x/mod v0.10.0 // indirect </s> remove golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> add golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs= </s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792
golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
internal/tools/go.sum
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 h1:ioRvkxpf+3iq9xvzP6AWjaBuROUad9SmjLr0QWBzxKw= golang.org/x/vuln v0.0.0-20230325131008-9550759f8614/go.mod h1:64LpnL2PuSMzFYeCmJjYiRbroOUG9aCZYznINnF5PHE= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
</s> remove golang.org/x/vuln v0.0.0-20230325131008-9550759f8614 </s> add golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 </s> remove golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> remove golang.org/x/sys v0.6.0 // indirect </s> add golang.org/x/sys v0.7.0 // indirect </s> remove golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> add golang.org/x/mod v0.10.0 h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk= golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= </s> remove golang.org/x/mod v0.9.0 // indirect </s> add golang.org/x/mod v0.10.0 // indirect
golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792 h1:NybXXIgk5dslpSHRStwyfI74htFvi9Cyk3mCr9ubE2I= golang.org/x/vuln v0.0.0-20230404205743-41aec7335792/go.mod h1:8gQW8OCBfaUiPaWAPDQf/9V1w+ymmmB/05SwB/EXZNs= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1801: upd-go Merge in DNS/adguard-home from upd-go to master Squashed commit of the following: commit 4d6abc98329c794b5ea3f67447dd69ea8b60205c Author: Ainar Garipov <[email protected]> Date: Wed Apr 5 16:07:29 2023 +0300 all: upd go, tools, i18n
https://github.com/AdguardTeam/AdGuardHome/commit/10bffd89c9954d51f12d6ad1da39cf6e61f029a8
internal/tools/go.sum
var regexRules = []string{"/example\\.org/", "@@||test.example.org^"} var maskRules = []string{"test*.example.org^", "exam*.com"} var tests = []struct { testname string rules []string hostname string result bool }{ {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false},
</s> remove {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false}, {"blocking", blockingRules, "example.org", true}, {"blocking", blockingRules, "test.example.org", true}, {"blocking", blockingRules, "test.test.example.org", true}, {"blocking", blockingRules, "testexample.org", false}, {"blocking", blockingRules, "onemoreexample.org", false}, {"whitelist", whitelistRules, "example.org", true}, {"whitelist", whitelistRules, "test.example.org", false}, {"whitelist", whitelistRules, "test.test.example.org", false}, {"whitelist", whitelistRules, "testexample.org", false}, {"whitelist", whitelistRules, "onemoreexample.org", false}, {"important", importantRules, "example.org", false}, {"important", importantRules, "test.example.org", true}, {"important", importantRules, "test.test.example.org", true}, {"important", importantRules, "testexample.org", false}, {"important", importantRules, "onemoreexample.org", false}, {"regex", regexRules, "example.org", true}, {"regex", regexRules, "test.example.org", false}, {"regex", regexRules, "test.test.example.org", false}, {"regex", regexRules, "testexample.org", true}, {"regex", regexRules, "onemoreexample.org", true}, {"mask", maskRules, "test.example.org", true}, {"mask", maskRules, "test2.example.org", true}, {"mask", maskRules, "example.com", true}, {"mask", maskRules, "exampleeee.com", true}, {"mask", maskRules, "onemoreexamsite.com", true}, {"mask", maskRules, "example.org", false}, {"mask", maskRules, "testexample.org", false}, {"mask", maskRules, "example.co.uk", false}, </s> add {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, </s> remove if ret.IsFiltered != test.result { t.Errorf("Hostname %s has wrong result (%v must be %v)", test.hostname, ret, test.result) </s> add if ret.IsFiltered != test.isFiltered { t.Errorf("Hostname %s has wrong result (%v must be %v)", test.hostname, ret.IsFiltered, test.isFiltered) } if ret.Reason != test.reason { t.Errorf("Hostname %s has wrong reason (%v must be %v)", test.hostname, ret.Reason.String(), test.reason.String())
testname string rules []string hostname string isFiltered bool reason Reason
var regexRules = []string{"/example\\.org/", "@@||test.example.org^"} var maskRules = []string{"test*.example.org^", "exam*.com"} var tests = []struct { testname string rules []string hostname string isFiltered bool reason Reason testname string rules []string hostname string isFiltered bool reason Reason testname string rules []string hostname string isFiltered bool reason Reason testname string rules []string hostname string isFiltered bool reason Reason }{ {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false},
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
dnsfilter -- Update tests to check for expected filter/nofilter reason as well.
https://github.com/AdguardTeam/AdGuardHome/commit/1102963fa09bb5708dfd9bff9449ffd303a47701
dnsfilter/dnsfilter_test.go
rules []string hostname string result bool }{ {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false}, {"blocking", blockingRules, "example.org", true}, {"blocking", blockingRules, "test.example.org", true}, {"blocking", blockingRules, "test.test.example.org", true}, {"blocking", blockingRules, "testexample.org", false}, {"blocking", blockingRules, "onemoreexample.org", false}, {"whitelist", whitelistRules, "example.org", true}, {"whitelist", whitelistRules, "test.example.org", false}, {"whitelist", whitelistRules, "test.test.example.org", false}, {"whitelist", whitelistRules, "testexample.org", false}, {"whitelist", whitelistRules, "onemoreexample.org", false}, {"important", importantRules, "example.org", false}, {"important", importantRules, "test.example.org", true}, {"important", importantRules, "test.test.example.org", true}, {"important", importantRules, "testexample.org", false}, {"important", importantRules, "onemoreexample.org", false}, {"regex", regexRules, "example.org", true}, {"regex", regexRules, "test.example.org", false}, {"regex", regexRules, "test.test.example.org", false}, {"regex", regexRules, "testexample.org", true}, {"regex", regexRules, "onemoreexample.org", true}, {"mask", maskRules, "test.example.org", true}, {"mask", maskRules, "test2.example.org", true}, {"mask", maskRules, "example.com", true}, {"mask", maskRules, "exampleeee.com", true}, {"mask", maskRules, "onemoreexamsite.com", true}, {"mask", maskRules, "example.org", false}, {"mask", maskRules, "testexample.org", false}, {"mask", maskRules, "example.co.uk", false}, } func TestMatching(t *testing.T) { for _, test := range tests { t.Run(fmt.Sprintf("%s-%s", test.testname, test.hostname), func(t *testing.T) {
</s> remove testname string rules []string hostname string result bool </s> add testname string rules []string hostname string isFiltered bool reason Reason </s> remove if ret.IsFiltered != test.result { t.Errorf("Hostname %s has wrong result (%v must be %v)", test.hostname, ret, test.result) </s> add if ret.IsFiltered != test.isFiltered { t.Errorf("Hostname %s has wrong result (%v must be %v)", test.hostname, ret.IsFiltered, test.isFiltered) } if ret.Reason != test.reason { t.Errorf("Hostname %s has wrong reason (%v must be %v)", test.hostname, ret.Reason.String(), test.reason.String())
{"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound},
rules []string hostname string result bool }{ {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, } func TestMatching(t *testing.T) { for _, test := range tests { t.Run(fmt.Sprintf("%s-%s", test.testname, test.hostname), func(t *testing.T) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
dnsfilter -- Update tests to check for expected filter/nofilter reason as well.
https://github.com/AdguardTeam/AdGuardHome/commit/1102963fa09bb5708dfd9bff9449ffd303a47701
dnsfilter/dnsfilter_test.go
ret, err := d.CheckHost(test.hostname) if err != nil { t.Errorf("Error while matching host %s: %s", test.hostname, err) } if ret.IsFiltered != test.result { t.Errorf("Hostname %s has wrong result (%v must be %v)", test.hostname, ret, test.result) } }) } }
</s> remove {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false}, {"blocking", blockingRules, "example.org", true}, {"blocking", blockingRules, "test.example.org", true}, {"blocking", blockingRules, "test.test.example.org", true}, {"blocking", blockingRules, "testexample.org", false}, {"blocking", blockingRules, "onemoreexample.org", false}, {"whitelist", whitelistRules, "example.org", true}, {"whitelist", whitelistRules, "test.example.org", false}, {"whitelist", whitelistRules, "test.test.example.org", false}, {"whitelist", whitelistRules, "testexample.org", false}, {"whitelist", whitelistRules, "onemoreexample.org", false}, {"important", importantRules, "example.org", false}, {"important", importantRules, "test.example.org", true}, {"important", importantRules, "test.test.example.org", true}, {"important", importantRules, "testexample.org", false}, {"important", importantRules, "onemoreexample.org", false}, {"regex", regexRules, "example.org", true}, {"regex", regexRules, "test.example.org", false}, {"regex", regexRules, "test.test.example.org", false}, {"regex", regexRules, "testexample.org", true}, {"regex", regexRules, "onemoreexample.org", true}, {"mask", maskRules, "test.example.org", true}, {"mask", maskRules, "test2.example.org", true}, {"mask", maskRules, "example.com", true}, {"mask", maskRules, "exampleeee.com", true}, {"mask", maskRules, "onemoreexamsite.com", true}, {"mask", maskRules, "example.org", false}, {"mask", maskRules, "testexample.org", false}, {"mask", maskRules, "example.co.uk", false}, </s> add {"sanity", []string{"||doubleclick.net^"}, "www.doubleclick.net", true, FilteredBlackList}, {"sanity", []string{"||doubleclick.net^"}, "nodoubleclick.net", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "doubleclick.net.ru", false, NotFilteredNotFound}, {"sanity", []string{"||doubleclick.net^"}, "wmconvirus.narod.ru", false, NotFilteredNotFound}, {"blocking", blockingRules, "example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "test.test.example.org", true, FilteredBlackList}, {"blocking", blockingRules, "testexample.org", false, NotFilteredNotFound}, {"blocking", blockingRules, "onemoreexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "example.org", true, FilteredBlackList}, {"whitelist", whitelistRules, "test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "test.test.example.org", false, NotFilteredWhiteList}, {"whitelist", whitelistRules, "testexample.org", false, NotFilteredNotFound}, {"whitelist", whitelistRules, "onemoreexample.org", false, NotFilteredNotFound}, {"important", importantRules, "example.org", false, NotFilteredWhiteList}, {"important", importantRules, "test.example.org", true, FilteredBlackList}, {"important", importantRules, "test.test.example.org", true, FilteredBlackList}, {"important", importantRules, "testexample.org", false, NotFilteredNotFound}, {"important", importantRules, "onemoreexample.org", false, NotFilteredNotFound}, {"regex", regexRules, "example.org", true, FilteredBlackList}, {"regex", regexRules, "test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "test.test.example.org", false, NotFilteredWhiteList}, {"regex", regexRules, "testexample.org", true, FilteredBlackList}, {"regex", regexRules, "onemoreexample.org", true, FilteredBlackList}, {"mask", maskRules, "test.example.org", true, FilteredBlackList}, {"mask", maskRules, "test2.example.org", true, FilteredBlackList}, {"mask", maskRules, "example.com", true, FilteredBlackList}, {"mask", maskRules, "exampleeee.com", true, FilteredBlackList}, {"mask", maskRules, "onemoreexamsite.com", true, FilteredBlackList}, {"mask", maskRules, "example.org", false, NotFilteredNotFound}, {"mask", maskRules, "testexample.org", false, NotFilteredNotFound}, {"mask", maskRules, "example.co.uk", false, NotFilteredNotFound}, </s> remove testname string rules []string hostname string result bool </s> add testname string rules []string hostname string isFiltered bool reason Reason
if ret.IsFiltered != test.isFiltered { t.Errorf("Hostname %s has wrong result (%v must be %v)", test.hostname, ret.IsFiltered, test.isFiltered) } if ret.Reason != test.reason { t.Errorf("Hostname %s has wrong reason (%v must be %v)", test.hostname, ret.Reason.String(), test.reason.String())
ret, err := d.CheckHost(test.hostname) if err != nil { t.Errorf("Error while matching host %s: %s", test.hostname, err) } if ret.IsFiltered != test.isFiltered { t.Errorf("Hostname %s has wrong result (%v must be %v)", test.hostname, ret.IsFiltered, test.isFiltered) } if ret.Reason != test.reason { t.Errorf("Hostname %s has wrong reason (%v must be %v)", test.hostname, ret.Reason.String(), test.reason.String()) if ret.IsFiltered != test.isFiltered { t.Errorf("Hostname %s has wrong result (%v must be %v)", test.hostname, ret.IsFiltered, test.isFiltered) } if ret.Reason != test.reason { t.Errorf("Hostname %s has wrong reason (%v must be %v)", test.hostname, ret.Reason.String(), test.reason.String()) } }) } }
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
dnsfilter -- Update tests to check for expected filter/nofilter reason as well.
https://github.com/AdguardTeam/AdGuardHome/commit/1102963fa09bb5708dfd9bff9449ffd303a47701
dnsfilter/dnsfilter_test.go
"net/url" "strconv" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghstrings" "github.com/AdguardTeam/golibs/jsonutil" "github.com/AdguardTeam/golibs/log" "golang.org/x/net/idna"
</s> remove return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove c := searchCriterion{ </s> add sc = searchCriterion{
"strings"
"net/url" "strconv" "strings" "time" "github.com/AdguardTeam/AdGuardHome/internal/aghstrings" "github.com/AdguardTeam/golibs/jsonutil" "github.com/AdguardTeam/golibs/log" "golang.org/x/net/idna"
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
"github.com/AdguardTeam/AdGuardHome/internal/aghstrings" "github.com/AdguardTeam/golibs/jsonutil" "github.com/AdguardTeam/golibs/log" ) type qlogConfig struct { Enabled bool `json:"enabled"`
</s> remove return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove ok, c, err = l.parseSearchCriterion(q, k, v) </s> add ok, c, err = l.parseSearchCriterion(q, v.urlField, v.ct) </s> remove paramNames := map[string]criterionType{ "search": ctTerm, "response_status": ctFilteringStatus, } for k, v := range paramNames { </s> add for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} {
"golang.org/x/net/idna"
"github.com/AdguardTeam/AdGuardHome/internal/aghstrings" "github.com/AdguardTeam/golibs/jsonutil" "github.com/AdguardTeam/golibs/log" "golang.org/x/net/idna" ) type qlogConfig struct { Enabled bool `json:"enabled"`
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
return false } // parseSearchCriterion parses a search criterion from the query parameter. func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { val := q.Get(name) if len(val) == 0 { return false, searchCriterion{}, nil }
</s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil </s> add return true, sc, nil </s> remove c := searchCriterion{ </s> add sc = searchCriterion{ </s> remove } if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true </s> add asciiVal: asciiVal, strict: strict,
func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) {
return false } // parseSearchCriterion parses a search criterion from the query parameter. func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { val := q.Get(name) if len(val) == 0 { return false, searchCriterion{}, nil }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
// parseSearchCriterion parses a search criterion from the query parameter. func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { val := q.Get(name) if len(val) == 0 { return false, searchCriterion{}, nil } c := searchCriterion{ criterionType: ct, value: val,
</s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { </s> remove c := searchCriterion{ </s> add sc = searchCriterion{ </s> remove if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil </s> add return true, sc, nil </s> remove } if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true </s> add asciiVal: asciiVal, strict: strict, </s> remove paramNames := map[string]criterionType{ "search": ctTerm, "response_status": ctFilteringStatus, } for k, v := range paramNames { </s> add for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} {
if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, )
// parseSearchCriterion parses a search criterion from the query parameter. func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { val := q.Get(name) if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) } c := searchCriterion{ criterionType: ct, value: val,
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
if len(val) == 0 { return false, searchCriterion{}, nil } c := searchCriterion{ criterionType: ct, value: val, } if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true
</s> remove } if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true </s> add asciiVal: asciiVal, strict: strict, </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil </s> add return true, sc, nil </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { </s> remove ok, c, err = l.parseSearchCriterion(q, k, v) </s> add ok, c, err = l.parseSearchCriterion(q, v.urlField, v.ct)
sc = searchCriterion{
if len(val) == 0 { return false, searchCriterion{}, nil } sc = searchCriterion{ criterionType: ct, value: val, } if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
c := searchCriterion{ criterionType: ct, value: val, } if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true } if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) }
</s> remove if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil </s> add return true, sc, nil </s> remove c := searchCriterion{ </s> add sc = searchCriterion{ </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove ok, c, err = l.parseSearchCriterion(q, k, v) </s> add ok, c, err = l.parseSearchCriterion(q, v.urlField, v.ct) </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) {
asciiVal: asciiVal, strict: strict,
c := searchCriterion{ criterionType: ct, value: val, asciiVal: asciiVal, strict: strict, asciiVal: asciiVal, strict: strict, asciiVal: asciiVal, strict: strict, } if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true } if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil } // parseSearchParams - parses "searchParams" from the HTTP request's query string func (l *queryLog) parseSearchParams(r *http.Request) (p *searchParams, err error) { p = newSearchParams()
</s> remove } if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true </s> add asciiVal: asciiVal, strict: strict, </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove c := searchCriterion{ </s> add sc = searchCriterion{ </s> remove ok, c, err = l.parseSearchCriterion(q, k, v) </s> add ok, c, err = l.parseSearchCriterion(q, v.urlField, v.ct)
return true, sc, nil
if getDoubleQuotesEnclosedValue(&c.value) { c.strict = true } return true, sc, nil return true, sc, nil return true, sc, nil return true, sc, nil return true, sc, nil } // parseSearchParams - parses "searchParams" from the HTTP request's query string func (l *queryLog) parseSearchParams(r *http.Request) (p *searchParams, err error) { p = newSearchParams()
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
// and scan all log records until we found enough log entries p.maxFileScanEntries = 0 } paramNames := map[string]criterionType{ "search": ctTerm, "response_status": ctFilteringStatus, } for k, v := range paramNames { var ok bool var c searchCriterion ok, c, err = l.parseSearchCriterion(q, k, v) if err != nil { return nil, err
</s> remove ok, c, err = l.parseSearchCriterion(q, k, v) </s> add ok, c, err = l.parseSearchCriterion(q, v.urlField, v.ct) </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { </s> remove if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil </s> add return true, sc, nil </s> remove c := searchCriterion{ </s> add sc = searchCriterion{
for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} {
// and scan all log records until we found enough log entries p.maxFileScanEntries = 0 } for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} { for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} { for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} { for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} { for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} { for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} { var ok bool var c searchCriterion ok, c, err = l.parseSearchCriterion(q, k, v) if err != nil { return nil, err
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
for k, v := range paramNames { var ok bool var c searchCriterion ok, c, err = l.parseSearchCriterion(q, k, v) if err != nil { return nil, err } if ok {
</s> remove paramNames := map[string]criterionType{ "search": ctTerm, "response_status": ctFilteringStatus, } for k, v := range paramNames { </s> add for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} { </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil </s> add return true, sc, nil </s> remove c := searchCriterion{ </s> add sc = searchCriterion{
ok, c, err = l.parseSearchCriterion(q, v.urlField, v.ct)
for k, v := range paramNames { var ok bool var c searchCriterion ok, c, err = l.parseSearchCriterion(q, v.urlField, v.ct) if err != nil { return nil, err } if ok {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/http.go
type criterionType int const ( // ctTerm is for searching by the domain name, the client's IP // address, the client's ID or the client's name. // // TODO(e.burkov): Make it support IDNA while #3012. ctTerm criterionType = iota // ctFilteringStatus is for searching by the filtering status. // // See (*searchCriterion).ctFilteringStatusCase for details. ctFilteringStatus
</s> remove paramNames := map[string]criterionType{ "search": ctTerm, "response_status": ctFilteringStatus, } for k, v := range paramNames { </s> add for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} { </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil </s> add return true, sc, nil
// ctTerm is for searching by the domain name, the client's IP address, // the client's ID or the client's name. The domain name search // supports IDNAs.
type criterionType int const ( // ctTerm is for searching by the domain name, the client's IP address, // the client's ID or the client's name. The domain name search // supports IDNAs. // ctTerm is for searching by the domain name, the client's IP address, // the client's ID or the client's name. The domain name search // supports IDNAs. // ctTerm is for searching by the domain name, the client's IP address, // the client's ID or the client's name. The domain name search // supports IDNAs. // ctTerm is for searching by the domain name, the client's IP address, // the client's ID or the client's name. The domain name search // supports IDNAs. ctTerm criterionType = iota // ctFilteringStatus is for searching by the filtering status. // // See (*searchCriterion).ctFilteringStatusCase for details. ctFilteringStatus
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
// searchCriterion is a search criterion that is used to match a record. type searchCriterion struct { value string criterionType criterionType // strict, if true, means that the criterion must be applied to the // whole value rather than the part of it. That is, equality and not // containment. strict bool }
</s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, ) </s> remove // ctTerm is for searching by the domain name, the client's IP // address, the client's ID or the client's name. // // TODO(e.burkov): Make it support IDNA while #3012. </s> add // ctTerm is for searching by the domain name, the client's IP address, // the client's ID or the client's name. The domain name search // supports IDNAs. </s> remove if ct == ctFilteringStatus && !aghstrings.InSlice(filteringStatusValues, c.value) { return false, c, fmt.Errorf("invalid value %s", c.value) } return true, c, nil </s> add return true, sc, nil </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { </s> remove paramNames := map[string]criterionType{ "search": ctTerm, "response_status": ctFilteringStatus, } for k, v := range paramNames { </s> add for _, v := range []struct { urlField string ct criterionType }{{ urlField: "search", ct: ctTerm, }, { urlField: "response_status", ct: ctFilteringStatus, }} {
asciiVal string
// searchCriterion is a search criterion that is used to match a record. type searchCriterion struct { value string asciiVal string criterionType criterionType // strict, if true, means that the criterion must be applied to the // whole value rather than the part of it. That is, equality and not // containment. strict bool }
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
// containment. strict bool } func (c *searchCriterion) ctDomainOrClientCaseStrict( term string, clientID string, name string, host string, ip string,
</s> remove func (c *searchCriterion) ctDomainOrClientCaseNonStrict( </s> add func ctDomainOrClientCaseNonStrict( </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) {
func ctDomainOrClientCaseStrict(
// containment. strict bool } func ctDomainOrClientCaseStrict( term string, clientID string, name string, host string, ip string,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
func ctDomainOrClientCaseStrict( term string, clientID string, name string, host string, ip string, ) (ok bool) {
</s> remove func (c *searchCriterion) ctDomainOrClientCaseStrict( </s> add func ctDomainOrClientCaseStrict( </s> remove func (c *searchCriterion) ctDomainOrClientCaseNonStrict( </s> add func ctDomainOrClientCaseNonStrict( </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) {
asciiTerm string,
func ctDomainOrClientCaseStrict( term string, asciiTerm string, clientID string, name string, host string, ip string, ) (ok bool) {
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
host string, ip string, ) (ok bool) { return strings.EqualFold(host, term) || strings.EqualFold(clientID, term) || strings.EqualFold(ip, term) || strings.EqualFold(name, term) }
</s> remove func (c *searchCriterion) ctDomainOrClientCaseNonStrict( </s> add func ctDomainOrClientCaseNonStrict( </s> remove func (c *searchCriterion) ctDomainOrClientCaseStrict( </s> add func ctDomainOrClientCaseStrict(
(asciiTerm != "" && strings.EqualFold(host, asciiTerm)) ||
host string, ip string, ) (ok bool) { return strings.EqualFold(host, term) || (asciiTerm != "" && strings.EqualFold(host, asciiTerm)) || strings.EqualFold(clientID, term) || strings.EqualFold(ip, term) || strings.EqualFold(name, term) }
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
return false } func (c *searchCriterion) ctDomainOrClientCaseNonStrict( term string, clientID string, name string, host string, ip string,
</s> remove func (c *searchCriterion) ctDomainOrClientCaseStrict( </s> add func ctDomainOrClientCaseStrict( </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) {
func ctDomainOrClientCaseNonStrict(
return false } func ctDomainOrClientCaseNonStrict( term string, clientID string, name string, host string, ip string,
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
} func ctDomainOrClientCaseNonStrict( term string, clientID string, name string, host string, ip string, ) (ok bool) {
</s> remove func (c *searchCriterion) ctDomainOrClientCaseNonStrict( </s> add func ctDomainOrClientCaseNonStrict( </s> remove func (c *searchCriterion) ctDomainOrClientCaseStrict( </s> add func ctDomainOrClientCaseStrict( </s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) {
asciiTerm string,
} func ctDomainOrClientCaseNonStrict( term string, asciiTerm string, clientID string, name string, host string, ip string, ) (ok bool) {
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
) (ok bool) { return containsFold(clientID, term) || containsFold(host, term) || containsFold(ip, term) || containsFold(name, term) } // quickMatch quickly checks if the line matches the given search criterion.
</s> remove func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) (ok bool, sc searchCriterion, err error) { </s> add func (l *queryLog) parseSearchCriterion(q url.Values, name string, ct criterionType) ( ok bool, sc searchCriterion, err error, ) { </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, )
(asciiTerm != "" && containsFold(host, asciiTerm)) ||
) (ok bool) { return containsFold(clientID, term) || containsFold(host, term) || (asciiTerm != "" && containsFold(host, asciiTerm)) || containsFold(ip, term) || containsFold(name, term) } // quickMatch quickly checks if the line matches the given search criterion.
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
name = cli.Name } if c.strict { return c.ctDomainOrClientCaseStrict(c.value, clientID, name, host, ip) } return c.ctDomainOrClientCaseNonStrict(c.value, clientID, name, host, ip) case ctFilteringStatus: // Go on, as we currently don't do quick matches against
</s> remove return c.ctDomainOrClientCaseNonStrict(c.value, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict( c.value, c.asciiVal, clientID, name, host, ip, ) </s> remove return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove term := strings.ToLower(c.value) </s> add </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, )
return ctDomainOrClientCaseStrict( c.value, c.asciiVal, clientID, name, host, ip, )
name = cli.Name } if c.strict { return ctDomainOrClientCaseStrict( c.value, c.asciiVal, clientID, name, host, ip, ) } return c.ctDomainOrClientCaseNonStrict(c.value, clientID, name, host, ip) case ctFilteringStatus: // Go on, as we currently don't do quick matches against
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
if c.strict { return c.ctDomainOrClientCaseStrict(c.value, clientID, name, host, ip) } return c.ctDomainOrClientCaseNonStrict(c.value, clientID, name, host, ip) case ctFilteringStatus: // Go on, as we currently don't do quick matches against // filtering statuses. return true default:
</s> remove return c.ctDomainOrClientCaseStrict(c.value, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict( c.value, c.asciiVal, clientID, name, host, ip, ) </s> remove return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove term := strings.ToLower(c.value) </s> add </s> remove if len(val) == 0 { return false, searchCriterion{}, nil </s> add if val == "" { return false, sc, nil } strict := getDoubleQuotesEnclosedValue(&val) var asciiVal string switch ct { case ctTerm: // Decode lowercased value from punycode to make EqualFold and // friends work properly with IDNAs. // // TODO(e.burkov): Make it work with parts of IDNAs somehow. loweredVal := strings.ToLower(val) if asciiVal, err = idna.ToASCII(loweredVal); err != nil { log.Debug("can't convert %q to ascii: %s", val, err) } else if asciiVal == loweredVal { // Purge asciiVal to prevent checking the same value // twice. asciiVal = "" } case ctFilteringStatus: if !aghstrings.InSlice(filteringStatusValues, val) { return false, sc, fmt.Errorf("invalid value %s", val) } default: return false, sc, fmt.Errorf( "invalid criterion type %v: should be one of %v", ct, []criterionType{ctTerm, ctFilteringStatus}, )
return ctDomainOrClientCaseNonStrict( c.value, c.asciiVal, clientID, name, host, ip, )
if c.strict { return c.ctDomainOrClientCaseStrict(c.value, clientID, name, host, ip) } return ctDomainOrClientCaseNonStrict( c.value, c.asciiVal, clientID, name, host, ip, ) case ctFilteringStatus: // Go on, as we currently don't do quick matches against // filtering statuses. return true default:
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
name = e.client.Name } ip := e.IP.String() term := strings.ToLower(c.value) if c.strict { return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) } return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip)
</s> remove return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove return c.ctDomainOrClientCaseStrict(c.value, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict( c.value, c.asciiVal, clientID, name, host, ip, ) </s> remove return c.ctDomainOrClientCaseNonStrict(c.value, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict( c.value, c.asciiVal, clientID, name, host, ip, ) </s> remove c := searchCriterion{ </s> add sc = searchCriterion{
name = e.client.Name } ip := e.IP.String() if c.strict { return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) } return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
ip := e.IP.String() term := strings.ToLower(c.value) if c.strict { return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) } return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip) }
</s> remove term := strings.ToLower(c.value) </s> add </s> remove return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove return c.ctDomainOrClientCaseStrict(c.value, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict( c.value, c.asciiVal, clientID, name, host, ip, ) </s> remove return c.ctDomainOrClientCaseNonStrict(c.value, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict( c.value, c.asciiVal, clientID, name, host, ip, ) </s> remove c := searchCriterion{ </s> add sc = searchCriterion{
return ctDomainOrClientCaseStrict(c.value, c.asciiVal, clientID, name, host, ip)
ip := e.IP.String() term := strings.ToLower(c.value) if c.strict { return ctDomainOrClientCaseStrict(c.value, c.asciiVal, clientID, name, host, ip) } return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip) }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
if c.strict { return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) } return c.ctDomainOrClientCaseNonStrict(term, clientID, name, host, ip) } func (c *searchCriterion) ctFilteringStatusCase(res filtering.Result) bool { switch c.value { case filteringStatusAll:
</s> remove return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict(c.value, c.asciiVal, clientID, name, host, ip) </s> remove term := strings.ToLower(c.value) </s> add </s> remove return c.ctDomainOrClientCaseStrict(c.value, clientID, name, host, ip) </s> add return ctDomainOrClientCaseStrict( c.value, c.asciiVal, clientID, name, host, ip, ) </s> remove return c.ctDomainOrClientCaseNonStrict(c.value, clientID, name, host, ip) </s> add return ctDomainOrClientCaseNonStrict( c.value, c.asciiVal, clientID, name, host, ip, ) </s> remove func (c *searchCriterion) ctDomainOrClientCaseNonStrict( </s> add func ctDomainOrClientCaseNonStrict(
return ctDomainOrClientCaseNonStrict(c.value, c.asciiVal, clientID, name, host, ip)
if c.strict { return c.ctDomainOrClientCaseStrict(term, clientID, name, host, ip) } return ctDomainOrClientCaseNonStrict(c.value, c.asciiVal, clientID, name, host, ip) } func (c *searchCriterion) ctFilteringStatusCase(res filtering.Result) bool { switch c.value { case filteringStatusAll:
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3012 idna search Merge in DNS/adguard-home from 3012-idna-search to master Closes #3012. Squashed commit of the following: commit 6a9fbfe16860df5db5982a70cfbf040967b6e6ae Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:28:10 2021 +0300 querylog: add todo commit 31292ba1aeb9e91ff4f6abae7ffdf806a87cae66 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:21:46 2021 +0300 querylog: imp docs, code commit 35757f76837cb8034f6079a351d01aa4706bfea7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 21:01:08 2021 +0300 queerylog: fix idn case match commit eecfc98b6449c5c7c5a23602e80e47002034bc25 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:32:00 2021 +0300 querylog: imp code, docs commit 8aa6242fe92a9c2daa674b976595b13be96b0cf7 Author: Eugene Burkov <[email protected]> Date: Tue Jun 29 20:00:54 2021 +0300 querylog: sup idn search
https://github.com/AdguardTeam/AdGuardHome/commit/116bedd72716c9e5ef2f3b13673bcc74fc7c11b6
internal/querylog/searchcriterion.go
) // How to test on a real Linux machine: // // 1. Run: // // sudo ipset create example_set hash:ip family ipv4 // // 2. Run: //
</s> remove // sudo ipset create example_set hash:ip family ipv4 </s> add // 2. Run "sudo ipset list example_set". The Members field should be empty. </s> remove // 2. Run: </s> add // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. </s> remove // sudo ipset list example_set </s> add // 4. Start AdGuardHome. </s> remove // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // 4. Start AdGuardHome. // // 5. Make requests to example.com and its subdomains. // // 6. Run: // // sudo ipset list example_set // // The Members field should contain the resolved IP addresses. </s> add // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. </s> remove // The Members field should be empty. </s> add // 5. Make requests to example.com and its subdomains.
// 1. Run "sudo ipset create example_set hash:ip family ipv4".
) // How to test on a real Linux machine: // // 1. Run "sudo ipset create example_set hash:ip family ipv4". // // sudo ipset create example_set hash:ip family ipv4 // // 2. Run: //
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/aghnet/ipset_linux.go
// How to test on a real Linux machine: // // 1. Run: // // sudo ipset create example_set hash:ip family ipv4 // // 2. Run: // // sudo ipset list example_set //
</s> remove // 1. Run: </s> add // 1. Run "sudo ipset create example_set hash:ip family ipv4". </s> remove // 2. Run: </s> add // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. </s> remove // sudo ipset list example_set </s> add // 4. Start AdGuardHome. </s> remove // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // 4. Start AdGuardHome. // // 5. Make requests to example.com and its subdomains. // // 6. Run: // // sudo ipset list example_set // // The Members field should contain the resolved IP addresses. </s> add // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. </s> remove // The Members field should be empty. </s> add // 5. Make requests to example.com and its subdomains.
// 2. Run "sudo ipset list example_set". The Members field should be empty.
// How to test on a real Linux machine: // // 1. Run: // // 2. Run "sudo ipset list example_set". The Members field should be empty. // // 2. Run: // // sudo ipset list example_set //
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/aghnet/ipset_linux.go
// 1. Run: // // sudo ipset create example_set hash:ip family ipv4 // // 2. Run: // // sudo ipset list example_set // // The Members field should be empty. //
</s> remove // sudo ipset create example_set hash:ip family ipv4 </s> add // 2. Run "sudo ipset list example_set". The Members field should be empty. </s> remove // sudo ipset list example_set </s> add // 4. Start AdGuardHome. </s> remove // 1. Run: </s> add // 1. Run "sudo ipset create example_set hash:ip family ipv4". </s> remove // The Members field should be empty. </s> add // 5. Make requests to example.com and its subdomains. </s> remove // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // 4. Start AdGuardHome. // // 5. Make requests to example.com and its subdomains. // // 6. Run: // // sudo ipset list example_set // // The Members field should contain the resolved IP addresses. </s> add // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses.
// 3. Add the line "example.com/example_set" to your AdGuardHome.yaml.
// 1. Run: // // sudo ipset create example_set hash:ip family ipv4 // // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // sudo ipset list example_set // // The Members field should be empty. //
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/aghnet/ipset_linux.go
// sudo ipset create example_set hash:ip family ipv4 // // 2. Run: // // sudo ipset list example_set // // The Members field should be empty. // // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. //
</s> remove // 2. Run: </s> add // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. </s> remove // The Members field should be empty. </s> add // 5. Make requests to example.com and its subdomains. </s> remove // sudo ipset create example_set hash:ip family ipv4 </s> add // 2. Run "sudo ipset list example_set". The Members field should be empty. </s> remove // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // 4. Start AdGuardHome. // // 5. Make requests to example.com and its subdomains. // // 6. Run: // // sudo ipset list example_set // // The Members field should contain the resolved IP addresses. </s> add // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. </s> remove // 1. Run: </s> add // 1. Run "sudo ipset create example_set hash:ip family ipv4".
// 4. Start AdGuardHome.
// sudo ipset create example_set hash:ip family ipv4 // // 2. Run: // // 4. Start AdGuardHome. // // The Members field should be empty. // // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. //
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/aghnet/ipset_linux.go
// 2. Run: // // sudo ipset list example_set // // The Members field should be empty. // // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // 4. Start AdGuardHome. //
</s> remove // sudo ipset list example_set </s> add // 4. Start AdGuardHome. </s> remove // 2. Run: </s> add // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. </s> remove // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // 4. Start AdGuardHome. // // 5. Make requests to example.com and its subdomains. // // 6. Run: // // sudo ipset list example_set // // The Members field should contain the resolved IP addresses. </s> add // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. </s> remove // sudo ipset create example_set hash:ip family ipv4 </s> add // 2. Run "sudo ipset list example_set". The Members field should be empty. </s> remove // 1. Run: </s> add // 1. Run "sudo ipset create example_set hash:ip family ipv4".
// 5. Make requests to example.com and its subdomains.
// 2. Run: // // sudo ipset list example_set // // 5. Make requests to example.com and its subdomains. // // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // 4. Start AdGuardHome. //
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/aghnet/ipset_linux.go
// sudo ipset list example_set // // The Members field should be empty. // // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. // // 4. Start AdGuardHome. // // 5. Make requests to example.com and its subdomains. // // 6. Run: // // sudo ipset list example_set // // The Members field should contain the resolved IP addresses. // newIpsetMgr returns a new Linux ipset manager. func newIpsetMgr(ipsetConf []string) (set IpsetManager, err error) { return newIpsetMgrWithDialer(ipsetConf, defaultDial) }
</s> remove // The Members field should be empty. </s> add // 5. Make requests to example.com and its subdomains. </s> remove // sudo ipset list example_set </s> add // 4. Start AdGuardHome. </s> remove // 2. Run: </s> add // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. </s> remove // sudo ipset create example_set hash:ip family ipv4 </s> add // 2. Run "sudo ipset list example_set". The Members field should be empty. </s> remove // 1. Run: </s> add // 1. Run "sudo ipset create example_set hash:ip family ipv4".
// 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses.
// sudo ipset list example_set // // The Members field should be empty. // // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // 6. Run "sudo ipset list example_set". The Members field should contain the // resolved IP addresses. // newIpsetMgr returns a new Linux ipset manager. func newIpsetMgr(ipsetConf []string) (set IpsetManager, err error) { return newIpsetMgrWithDialer(ipsetConf, defaultDial) }
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/aghnet/ipset_linux.go
github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 github.com/kisielk/errcheck v1.6.2 github.com/kyoh86/looppointer v0.1.7 github.com/securego/gosec/v2 v2.13.1 golang.org/x/tools v0.1.13-0.20220803210227-8b9a1fbdf5c3 golang.org/x/vuln v0.0.0-20220912202342-0ed43f12cb05 honnef.co/go/tools v0.3.3 mvdan.cc/gofumpt v0.3.1 mvdan.cc/unparam v0.0.0-20220831102321-2fc90a84c7ec )
</s> remove golang.org/x/tools v0.1.13-0.20220803210227-8b9a1fbdf5c3 h1:aE4T3aJwdCNz+s35ScSQYUzeGu7BOLDHZ1bBHVurqqY= golang.org/x/tools v0.1.13-0.20220803210227-8b9a1fbdf5c3/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/vuln v0.0.0-20220912202342-0ed43f12cb05 h1:NWQHMTdThZhCArzUbnu1Bh+l3LdwUfjZws+ivBR2sxM= golang.org/x/vuln v0.0.0-20220912202342-0ed43f12cb05/go.mod h1:7tDfEDtOLlzHQRi4Yzfg5seVBSvouUIjyPzBx4q5CxQ= </s> add golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 h1:o1LhIiY5L+hLK9DWqfFlilCrpZnw/s7WU4iCUkb/bao= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5/go.mod h1:VsjNM1dMo+Ofkp5d7y7fOdQZD8MTXSQ4w3EPk65AvKU= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 h1:L0qUjdplndgX880fozFRGC242wAtfsViyRXWGlpZQ54= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84/go.mod h1:7tDfEDtOLlzHQRi4Yzfg5seVBSvouUIjyPzBx4q5CxQ= </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect </s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 // indirect </s> remove // 1. Run: </s> add // 1. Run "sudo ipset create example_set hash:ip family ipv4". </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 h1:wM1k/lXfpc5HdkJJyW9GELpd8ERGdnh8sMGL6Gzq3Ho= golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 h1:h+EGohizhe9XlX18rfpa8k8RAc5XyaeamM+0VHRd4lc= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84
github.com/gordonklaus/ineffassign v0.0.0-20210914165742-4cc7213b9bc8 github.com/kisielk/errcheck v1.6.2 github.com/kyoh86/looppointer v0.1.7 github.com/securego/gosec/v2 v2.13.1 golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 honnef.co/go/tools v0.3.3 mvdan.cc/gofumpt v0.3.1 mvdan.cc/unparam v0.0.0-20220831102321-2fc90a84c7ec )
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/tools/go.mod
github.com/gookit/color v1.5.2 // indirect github.com/kyoh86/nolint v0.0.1 // indirect github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect
</s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 // indirect </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect </s> remove // 2. Run: </s> add // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. </s> remove // sudo ipset list example_set </s> add // 4. Start AdGuardHome. </s> remove // The Members field should be empty. </s> add // 5. Make requests to example.com and its subdomains.
golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e // indirect
github.com/gookit/color v1.5.2 // indirect github.com/kyoh86/nolint v0.0.1 // indirect github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e // indirect golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/tools/go.mod
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect )
</s> remove golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect </s> add golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e // indirect </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect </s> remove // 1. Run: </s> add // 1. Run "sudo ipset create example_set hash:ip family ipv4". </s> remove // 2. Run: </s> add // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. </s> remove // sudo ipset list example_set </s> add // 4. Start AdGuardHome.
golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 // indirect
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354 // indirect github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 // indirect golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect )
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/tools/go.mod
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect )
</s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 // indirect </s> remove golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect </s> add golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e // indirect </s> remove // 1. Run: </s> add // 1. Run "sudo ipset create example_set hash:ip family ipv4". </s> remove // 2. Run: </s> add // 3. Add the line "example.com/example_set" to your AdGuardHome.yaml. </s> remove // sudo ipset list example_set </s> add // 4. Start AdGuardHome.
golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 // indirect golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect golang.org/x/sync v0.0.0-20220819030929-7fc1605a5dde // indirect golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect )
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/tools/go.mod
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E= golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 h1:Ic/qN6TEifvObMGQy72k0n1LlJr7DjWWEi+MOsDOiSk= golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
</s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 h1:CZP0Rbk/s1EIiUMx5DS2MhK2ct52xpQxqddVD0FmF+o= golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= </s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 // indirect </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect </s> remove golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect </s> add golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e // indirect </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 h1:wM1k/lXfpc5HdkJJyW9GELpd8ERGdnh8sMGL6Gzq3Ho= golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 h1:h+EGohizhe9XlX18rfpa8k8RAc5XyaeamM+0VHRd4lc= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e h1:Ctm9yurWsg7aWwIpH9Bnap/IdSVxixymIb3MhiMEQQA= golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e h1:Ctm9yurWsg7aWwIpH9Bnap/IdSVxixymIb3MhiMEQQA= golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e h1:Ctm9yurWsg7aWwIpH9Bnap/IdSVxixymIb3MhiMEQQA= golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91 h1:Ic/qN6TEifvObMGQy72k0n1LlJr7DjWWEi+MOsDOiSk= golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/tools/go.sum
golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
</s> remove golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E= golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= </s> add golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e h1:Ctm9yurWsg7aWwIpH9Bnap/IdSVxixymIb3MhiMEQQA= golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= </s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 // indirect </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect </s> remove golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect </s> add golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e // indirect </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 h1:wM1k/lXfpc5HdkJJyW9GELpd8ERGdnh8sMGL6Gzq3Ho= golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 h1:h+EGohizhe9XlX18rfpa8k8RAc5XyaeamM+0VHRd4lc= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 h1:CZP0Rbk/s1EIiUMx5DS2MhK2ct52xpQxqddVD0FmF+o= golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/exp/typeparams v0.0.0-20220827204233-334a2380cb91/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 h1:CZP0Rbk/s1EIiUMx5DS2MhK2ct52xpQxqddVD0FmF+o= golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 h1:CZP0Rbk/s1EIiUMx5DS2MhK2ct52xpQxqddVD0FmF+o= golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/tools/go.sum
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 h1:wM1k/lXfpc5HdkJJyW9GELpd8ERGdnh8sMGL6Gzq3Ho= golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
</s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect </s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 // indirect </s> remove golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 // indirect </s> add golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e // indirect </s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 h1:CZP0Rbk/s1EIiUMx5DS2MhK2ct52xpQxqddVD0FmF+o= golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= </s> remove golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E= golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= </s> add golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e h1:Ctm9yurWsg7aWwIpH9Bnap/IdSVxixymIb3MhiMEQQA= golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 h1:h+EGohizhe9XlX18rfpa8k8RAc5XyaeamM+0VHRd4lc= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 h1:h+EGohizhe9XlX18rfpa8k8RAc5XyaeamM+0VHRd4lc= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 h1:h+EGohizhe9XlX18rfpa8k8RAc5XyaeamM+0VHRd4lc= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/tools/go.sum
golang.org/x/tools v0.0.0-20200710042808-f1c4188a97a1/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20201007032633-0806396f153e/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.13-0.20220803210227-8b9a1fbdf5c3 h1:aE4T3aJwdCNz+s35ScSQYUzeGu7BOLDHZ1bBHVurqqY= golang.org/x/tools v0.1.13-0.20220803210227-8b9a1fbdf5c3/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/vuln v0.0.0-20220912202342-0ed43f12cb05 h1:NWQHMTdThZhCArzUbnu1Bh+l3LdwUfjZws+ivBR2sxM= golang.org/x/vuln v0.0.0-20220912202342-0ed43f12cb05/go.mod h1:7tDfEDtOLlzHQRi4Yzfg5seVBSvouUIjyPzBx4q5CxQ= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
</s> remove golang.org/x/tools v0.1.13-0.20220803210227-8b9a1fbdf5c3 golang.org/x/vuln v0.0.0-20220912202342-0ed43f12cb05 </s> add golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 h1:wM1k/lXfpc5HdkJJyW9GELpd8ERGdnh8sMGL6Gzq3Ho= golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 h1:h+EGohizhe9XlX18rfpa8k8RAc5XyaeamM+0VHRd4lc= golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= </s> remove golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= </s> add golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35 h1:CZP0Rbk/s1EIiUMx5DS2MhK2ct52xpQxqddVD0FmF+o= golang.org/x/mod v0.6.0-dev.0.20220907135952-02c991387e35/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= </s> remove golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E= golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= </s> add golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e h1:Ctm9yurWsg7aWwIpH9Bnap/IdSVxixymIb3MhiMEQQA= golang.org/x/exp v0.0.0-20220921023135-46d9e7742f1e/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE= </s> remove golang.org/x/sys v0.0.0-20220909162455-aba9fc2a8ff2 // indirect </s> add golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect
golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 h1:o1LhIiY5L+hLK9DWqfFlilCrpZnw/s7WU4iCUkb/bao= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5/go.mod h1:VsjNM1dMo+Ofkp5d7y7fOdQZD8MTXSQ4w3EPk65AvKU= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 h1:L0qUjdplndgX880fozFRGC242wAtfsViyRXWGlpZQ54= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84/go.mod h1:7tDfEDtOLlzHQRi4Yzfg5seVBSvouUIjyPzBx4q5CxQ=
golang.org/x/tools v0.0.0-20200710042808-f1c4188a97a1/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= golang.org/x/tools v0.0.0-20201007032633-0806396f153e/go.mod h1:z6u4i615ZeAfBE4XtMziQW1fSVJXACjjbWkB/mvPzlU= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 h1:o1LhIiY5L+hLK9DWqfFlilCrpZnw/s7WU4iCUkb/bao= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5/go.mod h1:VsjNM1dMo+Ofkp5d7y7fOdQZD8MTXSQ4w3EPk65AvKU= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 h1:L0qUjdplndgX880fozFRGC242wAtfsViyRXWGlpZQ54= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84/go.mod h1:7tDfEDtOLlzHQRi4Yzfg5seVBSvouUIjyPzBx4q5CxQ= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 h1:o1LhIiY5L+hLK9DWqfFlilCrpZnw/s7WU4iCUkb/bao= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5/go.mod h1:VsjNM1dMo+Ofkp5d7y7fOdQZD8MTXSQ4w3EPk65AvKU= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 h1:L0qUjdplndgX880fozFRGC242wAtfsViyRXWGlpZQ54= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84/go.mod h1:7tDfEDtOLlzHQRi4Yzfg5seVBSvouUIjyPzBx4q5CxQ= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 h1:o1LhIiY5L+hLK9DWqfFlilCrpZnw/s7WU4iCUkb/bao= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5/go.mod h1:VsjNM1dMo+Ofkp5d7y7fOdQZD8MTXSQ4w3EPk65AvKU= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 h1:L0qUjdplndgX880fozFRGC242wAtfsViyRXWGlpZQ54= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84/go.mod h1:7tDfEDtOLlzHQRi4Yzfg5seVBSvouUIjyPzBx4q5CxQ= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5 h1:o1LhIiY5L+hLK9DWqfFlilCrpZnw/s7WU4iCUkb/bao= golang.org/x/tools v0.1.13-0.20220921142454-16b974289fe5/go.mod h1:VsjNM1dMo+Ofkp5d7y7fOdQZD8MTXSQ4w3EPk65AvKU= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84 h1:L0qUjdplndgX880fozFRGC242wAtfsViyRXWGlpZQ54= golang.org/x/vuln v0.0.0-20220921153644-d9be10b6cc84/go.mod h1:7tDfEDtOLlzHQRi4Yzfg5seVBSvouUIjyPzBx4q5CxQ= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: imp-scripts Merge in DNS/adguard-home from imp-scripts to master Squashed commit of the following: commit ab63a8a2dd1b64287e00a2a6f747fd48b530709e Author: Ainar Garipov <[email protected]> Date: Wed Sep 21 19:15:06 2022 +0300 all: imp scripts; upd tools; doc
https://github.com/AdguardTeam/AdGuardHome/commit/11e4f09165fa48522efc13896b0e830ea69e5bd2
internal/tools/go.sum
--- 'version': 2 'plan': 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' # Make sure to sync any changes with the branch overrides below. 'variables': 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7'
</s> remove 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' </s> add 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' </s> add - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases'
'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release'
--- 'version': 2 'plan': 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' # Make sure to sync any changes with the branch overrides below. 'variables': 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7'
[ "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' # Make sure to sync any changes with the branch overrides below. 'variables': 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Build frontend': 'manual': false 'final': false
</s> remove 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' </s> add 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' </s> remove - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' </s> add - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' </s> add - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' </s> remove # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7'
'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7'
'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' # Make sure to sync any changes with the branch overrides below. 'variables': 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Build frontend': 'manual': false 'final': false
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' 'Build frontend': 'docker': 'image': '${bamboo.dockerGo}' 'volumes':
</s> remove - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' </s> add - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' </s> remove 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
- 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases'
'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' 'Build frontend': 'docker': 'image': '${bamboo.dockerGo}' 'volumes':
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'jobs': - 'Publish to GitHub Releases' 'Build frontend': 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'Make release': 'docker': 'image': '${bamboo.dockerGo}' 'volumes':
</s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> remove - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' </s> add - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' </s> remove 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true'
'jobs': - 'Publish to GitHub Releases' 'Build frontend': 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'Make release': 'docker': 'image': '${bamboo.dockerGo}' 'volumes':
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'requirements': - 'adg-docker': 'true' 'Make release': 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'Make and publish docker': 'key': 'MPD' 'other': 'clean-working-dir': true
</s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> remove 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true'
'requirements': - 'adg-docker': 'true' 'Make release': 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' 'Make and publish docker': 'key': 'MPD' 'other': 'clean-working-dir': true
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'requirements': - 'adg-docker': 'true' 'Make and publish docker': 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'Publish to static storage': 'key': 'PUB' 'other': 'clean-working-dir': true
</s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh
'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
'requirements': - 'adg-docker': 'true' 'Make and publish docker': 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'Publish to static storage': 'key': 'PUB' 'other': 'clean-working-dir': true
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'requirements': - 'adg-docker': 'true' 'Publish to static storage': 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'Publish to GitHub Releases': 'key': 'PTGR' 'other': 'clean-working-dir': true
</s> remove 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true'
'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
'requirements': - 'adg-docker': 'true' 'Publish to static storage': 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'Publish to GitHub Releases': 'key': 'PTGR' 'other': 'clean-working-dir': true
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'requirements': - 'adg-docker': 'true' 'Publish to GitHub Releases': 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'triggers': # Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *'
</s> remove # Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' </s> add # Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' </s> remove 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> add 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
'requirements': - 'adg-docker': 'true' 'Publish to GitHub Releases': 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'triggers': # Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *'
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'requirements': - 'adg-docker': 'true' 'triggers': # Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' 'branches': 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30
</s> remove 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> add 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> remove 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> add 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> remove # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
# Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *'
'requirements': - 'adg-docker': 'true' 'triggers': # Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' # Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' # Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' 'branches': 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
# Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' 'branches': 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'notifications': - 'events': - 'plan-completed' 'recipients':
</s> remove # Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' </s> add # Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' </s> remove 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> add 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> remove - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> add - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> remove # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7'
'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true
# Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' 'branches': 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'notifications': - 'events': - 'plan-completed' 'recipients':
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'notifications': - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' 'labels': [] 'other': 'concurrent-build-plugin': 'system-default'
</s> remove - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' </s> add - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' </s> remove 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> add 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> remove 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> add 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> remove 'concurrent-build-plugin': 'system-default' </s> add 'concurrent-build-plugin': 'system-default' </s> remove 'concurrent-build-plugin': 'system-default' </s> add 'concurrent-build-plugin': 'system-default'
- 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa'
'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true 'notifications': - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' 'labels': [] 'other': 'concurrent-build-plugin': 'system-default'
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' 'labels': [] 'other': 'concurrent-build-plugin': 'system-default' 'branch-overrides': # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+':
</s> remove # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> add - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> remove 'concurrent-build-plugin': 'system-default' </s> add 'concurrent-build-plugin': 'system-default' </s> remove - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' </s> add - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' </s> remove # Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' </s> add # Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *'
'concurrent-build-plugin': 'system-default'
'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' 'labels': [] 'other': 'concurrent-build-plugin': 'system-default' 'branch-overrides': # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+':
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
'other': 'concurrent-build-plugin': 'system-default' 'branch-overrides': # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7'
</s> remove 'concurrent-build-plugin': 'system-default' </s> add 'concurrent-build-plugin': 'system-default' </s> remove 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' </s> add 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' </s> remove # Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' </s> add # Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' </s> remove 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> add 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true
# beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7'
'other': 'concurrent-build-plugin': 'system-default' 'branch-overrides': # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7'
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/release.yaml
env\ VERBOSE='1'\ sh ./scripts/snap/build.sh 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'Publish to Snapstore': 'artifact-subscriptions':
</s> remove 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'MPD' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x COMMIT="${bamboo.repository.revision.number}" export COMMIT readonly COMMIT # Explicitly checkout the revision that we need. git checkout "$COMMIT" # Install Qemu, create builder. docker version -f '{{ .Server.Experimental }}' docker buildx rm buildx-builder || : docker buildx create --name buildx-builder --driver docker-container\ --use docker buildx inspect --bootstrap # Login to DockerHub. docker login -u="${bamboo.dockerHubUsername}"\ -p="${bamboo.dockerHubPassword}" # Boot the builder. docker buildx inspect --bootstrap # Print Docker info. docker info # Prepare and push the build. env\ CHANNEL="${bamboo.channel}"\ DIST_DIR='dist'\ DOCKER_IMAGE_NAME='adguard/adguardhome'\ DOCKER_OUTPUT="type=image,name=adguard/adguardhome,push=true"\ VERBOSE='1'\ sh ./scripts/make/build-docker.sh 'environment': DOCKER_CLI_EXPERIMENTAL=enabled 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove set -e -f -u -x </s> add set -e -f -u -x
env\ VERBOSE='1'\ sh ./scripts/snap/build.sh 'requirements': - 'adg-docker': 'true' 'Publish to Snapstore': 'artifact-subscriptions':
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/snapcraft.yaml
--- 'version': 2 'plan': 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' 'variables': 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Tests':
</s> remove 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' </s> add 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' </s> remove 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' </s> add - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' </s> remove 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> add 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true
'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests'
--- 'version': 2 'plan': 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' 'variables': 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Tests':
[ "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' 'variables': 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Tests': 'manual': false 'final': false
</s> remove 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' </s> add 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' </s> remove - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' </s> add - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' </s> remove 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' </s> add 'project-key': 'AGH' 'key': 'AGHBSNAPSPECS' 'name': 'AdGuard Home - Build and publish release' </s> remove - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' </s> add - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases'
'dockerGo': 'adguard/golang-ubuntu:6.7'
'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' 'variables': 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Tests': 'manual': false 'final': false
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
'variables': 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' 'Test': 'docker': 'image': '${bamboo.dockerGo}' 'volumes':
</s> remove - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' </s> add - 'Build frontend': 'manual': false 'final': false 'jobs': - 'Build frontend' - 'Make release': 'manual': false 'final': false 'jobs': - 'Make release' - 'Make and publish docker': 'manual': false 'final': false 'jobs': - 'Make and publish docker' - 'Publish to static storage': 'manual': false 'final': false 'jobs': - 'Publish to static storage' - 'Publish to GitHub Releases': 'manual': false 'final': false 'jobs': - 'Publish to GitHub Releases' </s> remove 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> remove 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add 'channel': 'edge' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true'
- 'Tests': 'manual': false 'final': false 'jobs': - 'Test'
'variables': 'dockerGo': 'adguard/golang-ubuntu:6.7' 'stages': - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' - 'Tests': 'manual': false 'final': false 'jobs': - 'Test' 'Test': 'docker': 'image': '${bamboo.dockerGo}' 'volumes':
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
'jobs': - 'Test' 'Test': 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x make VERBOSE=1 ci go-tools lint 'final-tasks':
</s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'MR' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" # Run the build with the specified channel. echo "${bamboo.gpgSecretKeyPart1}${bamboo.gpgSecretKeyPart2}"\ | awk '{ gsub(/\\n/, "\n"); print; }'\ | gpg --import --batch --yes make\ CHANNEL=${bamboo.channel}\ GPG_KEY_PASSPHRASE=${bamboo.gpgPassword}\ FRONTEND_PREBUILT=1\ PARALLELISM=1\ VERBOSE=2\ build-release # TODO(a.garipov): Use more fine-grained artifact rules. 'artifacts': - 'name': 'AdGuardHome dists' 'pattern': 'dist/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove set -e -f -u -x </s> add set -e -f -u -x </s> remove make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh
'jobs': - 'Test' 'Test': 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x make VERBOSE=1 ci go-tools lint 'final-tasks':
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
'scripts': - | #!/bin/sh set -e -f -u -x make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements':
</s> remove make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build*/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' 'key': 'BF' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x # Explicitly checkout the revision that we need. git checkout "${bamboo.repository.revision.number}" make js-deps js-build 'artifacts': - 'name': 'AdGuardHome frontend' 'pattern': 'build/**' 'shared': true 'required': true 'requirements': - 'adg-docker': 'true' </s> remove 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PTGR' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x channel="${bamboo.channel}" readonly channel if [ "$channel" != 'release' ] && [ "${channel}" != 'beta' ] then echo "don't publish to GitHub Releases for this channel" exit 0 fi cd ./dist/ env\ GITHUB_TOKEN="${bamboo.githubPublicRepoPassword}"\ ../bamboo-deploy-publisher/deploy.sh adguard-home-github 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
set -e -f -u -x
'scripts': - | #!/bin/sh set -e -f -u -x make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements':
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
#!/bin/sh set -e -f -u -x make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'branches': 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1
</s> remove set -e -f -u -x </s> add set -e -f -u -x </s> remove 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> add 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> remove 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> add 'docker': 'image': '${bamboo.dockerGo}' 'volumes': '${system.YARN_DIR}': '${bamboo.cacheYarn}' '${system.GO_CACHE_DIR}': '${bamboo.cacheGo}' '${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}' 'key': 'TEST' 'other': 'clean-working-dir': true 'tasks': - 'checkout': 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh </s> remove 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> add 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
#!/bin/sh set -e -f -u -x make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' 'branches': 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
'requirements': - 'adg-docker': 'true' 'branches': 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'notifications': - 'events': - 'plan-status-changed' 'recipients':
</s> remove 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> add 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> remove - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' </s> add - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' </s> remove make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add make VERBOSE=1 ci go-tools lint 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> remove - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> add - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> remove # Don't use minute values that end with a zero or a five as these are often used # in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *' </s> add # Don't use minute values that end with a zero or a five as these are often # used in CI and so resources during these minutes can be quite busy. - 'cron': '0 42 13 ? * MON-FRI *'
'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true
'requirements': - 'adg-docker': 'true' 'branches': 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'notifications': - 'events': - 'plan-status-changed' 'recipients':
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'notifications': - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' 'labels': [] 'other': 'concurrent-build-plugin': 'system-default'
</s> remove - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> add - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> remove 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> add 'create': 'for-pull-request' 'delete': 'after-deleted-days': 1 'after-inactive-days': 5 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true </s> remove 'concurrent-build-plugin': 'system-default' </s> add 'concurrent-build-plugin': 'system-default' </s> remove 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> add 'create': 'manually' 'delete': 'after-deleted-days': 1 'after-inactive-days': 30 'integration': 'push-on-success': false 'merge-from': 'AdGuard Home - Build and publish release' 'link-to-jira': true </s> remove 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests' </s> add 'project-key': 'AGH' 'key': 'AHBRTSPECS' 'name': 'AdGuard Home - Build and run tests'
- 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo'
'merge-from': 'AdGuard Home - Build and run tests' 'link-to-jira': true 'notifications': - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' 'labels': [] 'other': 'concurrent-build-plugin': 'system-default'
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' 'labels': [] 'other': 'concurrent-build-plugin': 'system-default'
</s> remove - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' </s> add - 'events': - 'plan-status-changed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' </s> remove 'concurrent-build-plugin': 'system-default' </s> add 'concurrent-build-plugin': 'system-default' </s> remove - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> add - 'events': - 'plan-completed' 'recipients': - 'webhook': 'name': 'Build webhook' 'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo?channel=adguard-qa' </s> remove # beta-vX.Y branches are the branches into which the commits that are needed to # release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final release # is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> add # beta-vX.Y branches are the branches into which the commits that are needed # to release a new patch version are initially cherry-picked. - '^beta-v[0-9]+\.[0-9]+': # Build betas on release branches manually. 'triggers': [] # Set the default release channel on the release branch to beta, as we may # need to build a few of these. 'variables': 'channel': 'beta' 'dockerGo': 'adguard/golang-ubuntu:6.7' # release-vX.Y.Z branches are the branches from which the actual final # release is built. - '^release-v[0-9]+\.[0-9]+\.[0-9]+': # Disable integration branches for release branches. 'branch-config': 'integration': 'push-on-success': false 'merge-from': 'beta-v0.107' # Build final releases on release branches manually. 'triggers': [] # Set the default release channel on the final branch to release, as these # are the ones that actually get released. 'variables': 'channel': 'release' 'dockerGo': 'adguard/golang-ubuntu:6.7' </s> remove 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true' </s> add 'key': 'PUB' 'other': 'clean-working-dir': true 'tasks': - 'clean' - 'checkout': 'repository': 'bamboo-deploy-publisher' 'path': 'bamboo-deploy-publisher' 'force-clean-build': true - 'script': 'interpreter': 'SHELL' 'scripts': - | #!/bin/sh set -e -f -u -x cd ./dist/ CHANNEL="${bamboo.channel}" export CHANNEL ../bamboo-deploy-publisher/deploy.sh adguard-home-"$CHANNEL" 'final-tasks': - 'clean' 'requirements': - 'adg-docker': 'true'
'concurrent-build-plugin': 'system-default'
'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo' 'labels': [] 'other': 'concurrent-build-plugin': 'system-default'
[ "keep", "keep", "keep", "keep", "replace" ]
Pull request 1885: AG-23334-fix-snap-plan Merge in DNS/adguard-home from AG-23334-fix-snap-plan to master Squashed commit of the following: commit 5d632d1d63c56911e005d0e772e82a509302e948 Author: Ainar Garipov <[email protected]> Date: Wed Jun 21 17:42:36 2023 +0300 bamboo-specs: fix snap build; fmt
https://github.com/AdguardTeam/AdGuardHome/commit/123ca87388315bacc3a16ff4960c7470df936e09
bamboo-specs/test.yaml
"github.com/AdguardTeam/golibs/log" "github.com/AdguardTeam/golibs/netutil" ) func newARPDB() *cmdARPDB { return &cmdARPDB{ parse: parseArpA, ns: &neighs{ mu: &sync.RWMutex{}, ns: make([]Neighbor, 0),
</s> remove func newARPDB() *cmdARPDB { </s> add func newARPDB() (arp *cmdARPDB) { </s> remove func newARPDB() *cmdARPDB { </s> add func newARPDB() (arp *cmdARPDB) { </s> remove cmd: "arp", args: []string{"-a"}, </s> add cmd: "arp", // Use -n flag to avoid resolving the hostnames of the neighbors. By // default ARP attempts to resolve the hostnames via DNS. See man 8 // arp. // // See also https://github.com/AdguardTeam/AdGuardHome/issues/3157. args: []string{"-a", "-n"}, </s> remove cmd: "arp", args: []string{"-a"}, </s> add cmd: "arp", // Use -n flag to avoid resolving the hostnames of the neighbors. By // default ARP attempts to resolve the hostnames via DNS. See man 8 // arp. // // See also https://github.com/AdguardTeam/AdGuardHome/issues/3157. args: []string{"-a", "-n"}, </s> remove // Then, try "arp -a". </s> add // Then, try "arp -a -n".
func newARPDB() (arp *cmdARPDB) {
"github.com/AdguardTeam/golibs/log" "github.com/AdguardTeam/golibs/netutil" ) func newARPDB() (arp *cmdARPDB) { return &cmdARPDB{ parse: parseArpA, ns: &neighs{ mu: &sync.RWMutex{}, ns: make([]Neighbor, 0),
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Pull request: 3157 excessive ptrs Merge in DNS/adguard-home from 3157-excessive-ptrs to master Updates #3157. Squashed commit of the following: commit 6803988240dca2f147bb80a5b3f78d7749d2fa14 Author: Eugene Burkov <[email protected]> Date: Tue Apr 19 14:50:01 2022 +0300 aghnet: and again commit 1a7f4d1dbc8fd4d3ae620349917526a75fa71b47 Author: Eugene Burkov <[email protected]> Date: Tue Apr 19 14:49:20 2022 +0300 aghnet: docs again commit d88da1fc7135f3cd03aff10b02d9957c8ffdfd30 Author: Eugene Burkov <[email protected]> Date: Tue Apr 19 14:47:36 2022 +0300 aghnet: imp docs commit c45dbc7800e882c6c4110aab640c32b03046f89a Author: Eugene Burkov <[email protected]> Date: Tue Apr 19 14:41:19 2022 +0300 aghnet: keep alphabetical order commit b61781785d096ef43f60fb4f1905a4ed3cdf7c68 Author: Eugene Burkov <[email protected]> Date: Tue Apr 19 13:50:56 2022 +0300 aghnet: imp code quality commit 578dbd71ed2f2089c69343d7d4bf8bbc29150ace Author: Eugene Burkov <[email protected]> Date: Tue Apr 12 17:02:38 2022 +0300 aghnet: imp arp container
https://github.com/AdguardTeam/AdGuardHome/commit/12ee287d0b25cc1fb498e54c4484c995613e9bcb
internal/aghnet/arpdb_bsd.go