Skip to content

Commit d9b0474

Browse files
committed
Change default symbol server to a reliost instance.
1 parent 5279217 commit d9b0474

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

src/app-logic/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const PROFILER_SERVER_ORIGIN = 'https://api.profiler.firefox.com';
121121
// [1] https://github.com/mstange/profiler-symbol-server/
122122

123123
// This is the default server.
124-
export const SYMBOL_SERVER_URL = 'https://symbolication.services.mozilla.com';
124+
export const SYMBOL_SERVER_URL = 'https://mozilla.symbols.samplyprofiler.com';
125125

126126
// See the MarkerPhase type for more information.
127127
export const INSTANT: MarkerPhase = 0;

src/selectors/url-state.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ function _shouldAllowSymbolServerUrl(symbolServerUrl: string) {
360360
const otherAllowedHostnames = [
361361
'symbols.mozilla.org',
362362
'symbolication.services.mozilla.com',
363+
'mozilla.symbols.samplyprofiler.com',
363364
];
364365
if (!otherAllowedHostnames.includes(url.hostname)) {
365366
console.error(

src/test/__snapshots__/url-handling.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ exports[`symbolServerUrl will allow an allowed https host 1`] = `Array []`;
77
exports[`symbolServerUrl will error when switching to an allowed but non-https host 1`] = `
88
Array [
99
Array [
10-
"HTTPS is required for non-localhost symbol servers. Rejecting http://symbolication.services.mozilla.com/ and defaulting to https://symbolication.services.mozilla.com.",
10+
"HTTPS is required for non-localhost symbol servers. Rejecting http://symbolication.services.mozilla.com/ and defaulting to https://mozilla.symbols.samplyprofiler.com.",
1111
],
1212
]
1313
`;
1414

1515
exports[`symbolServerUrl will error when switching to an invalid host 1`] = `
1616
Array [
1717
Array [
18-
"The symbol server URL was not valid. Rejecting invalid and defaulting to https://symbolication.services.mozilla.com.",
18+
"The symbol server URL was not valid. Rejecting invalid and defaulting to https://mozilla.symbols.samplyprofiler.com.",
1919
[TypeError: Invalid URL: invalid],
2020
],
2121
]
@@ -24,7 +24,7 @@ Array [
2424
exports[`symbolServerUrl will error when switching to an unknown host 1`] = `
2525
Array [
2626
Array [
27-
"The symbol server URL was not in the list of allowed domains. Rejecting https://symbolication.services.mozilla.com.example.com/symbols and defaulting to https://symbolication.services.mozilla.com.",
27+
"The symbol server URL was not in the list of allowed domains. Rejecting https://symbolication.services.mozilla.com.example.com/symbols and defaulting to https://mozilla.symbols.samplyprofiler.com.",
2828
],
2929
]
3030
`;

src/test/store/receive-profile.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ import {
7777
simulateOldWebChannelAndFrameScript,
7878
simulateWebChannel,
7979
} from '../fixtures/mocks/web-channel';
80+
import { SYMBOL_SERVER_URL } from 'firefox-profiler/app-logic/constants';
8081

8182
function simulateSymbolStoreHasNoCache() {
8283
// SymbolStoreDB is a mock, but Flow doesn't know this. That's why we use
@@ -821,7 +822,7 @@ describe('actions/receive-profile', function () {
821822

822823
expect(
823824
window.fetchMock.callHistory.lastCall(
824-
'https://symbolication.services.mozilla.com/symbolicate/v5'
825+
`${SYMBOL_SERVER_URL}/symbolicate/v5`
825826
)?.options
826827
).toEqual(
827828
expect.objectContaining({
@@ -839,7 +840,7 @@ describe('actions/receive-profile', function () {
839840

840841
expect(
841842
window.fetchMock.callHistory.lastCall(
842-
'https://symbolication.services.mozilla.com/symbolicate/v5'
843+
`${SYMBOL_SERVER_URL}/symbolicate/v5`
843844
)?.options
844845
).toEqual(
845846
expect.objectContaining({
@@ -919,7 +920,7 @@ describe('actions/receive-profile', function () {
919920
'https://storage.googleapis.com/profile-store/FAKEHASH',
920921
unsymbolicatedProfile
921922
)
922-
.post('https://symbolication.services.mozilla.com/symbolicate/v5', {});
923+
.post(`${SYMBOL_SERVER_URL}/symbolicate/v5`, {});
923924

924925
simulateSymbolStoreHasNoCache();
925926

@@ -931,7 +932,7 @@ describe('actions/receive-profile', function () {
931932

932933
expect(
933934
window.fetchMock.callHistory.lastCall(
934-
'https://symbolication.services.mozilla.com/symbolicate/v5'
935+
`${SYMBOL_SERVER_URL}/symbolicate/v5`
935936
)?.options
936937
).toEqual(
937938
expect.objectContaining({
@@ -1431,7 +1432,7 @@ describe('actions/receive-profile', function () {
14311432

14321433
expect(
14331434
window.fetchMock.callHistory.lastCall(
1434-
'https://symbolication.services.mozilla.com/symbolicate/v5'
1435+
`${SYMBOL_SERVER_URL}/symbolicate/v5`
14351436
)?.options
14361437
).toEqual(
14371438
expect.objectContaining({

src/utils/fetch-assembly.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ export async function fetchAssembly(
7474
// local symbol servers. Check the symbol server URL to avoid hammering the
7575
// official Mozilla symbolication server with requests it can't handle.
7676
// This check can be removed once it adds support for /asm/v1.
77-
function _serverMightSupportAssembly(symbolServerUrl: string): boolean {
78-
return isLocalURL(symbolServerUrl);
77+
function _serverMightSupportAssembly(_symbolServerUrl: string): boolean {
78+
return true;
7979
}
8080

8181
// Convert the response from the JSON format into our own DecodedInstruction

0 commit comments

Comments
 (0)