Skip to content

Conversation

@lawrence-forooghian
Copy link
Collaborator

@lawrence-forooghian lawrence-forooghian commented May 2, 2023

Testing #1707, and also want to gather logs to find out about leaked dispatch queues. Results here.

This is so that we can see things like library logs, or any additional
logging we might add to help debug a test case.
… GitHub job running time limit

I’m trying to understand the reason that the upload artifacts step is
hung here [1], and I’m wondering if it’s because the job execution limit had
already been reached by my script.

[1] https://github.com/ably/ably-cocoa/runs/5979297645?check_suite_focus=true
To help with understanding issue described in 7260cda.
I’m hoping this will reduce the upload time (more by reducing the number
of files than the size).
This lets us choose the length and parallelism of our test runs.
In a subsequent commit, I’m going to want each test case to be able to
pass parameters to the setup code.
This is currently being passed to

- uniqueChannelName(…) — to include the execution ID in the channel name
- createUserQueue(…) — to include the execution ID in the queue label
- commonAppSetup(…) — to include the execution ID in the
  channelNamePrefix

and the intention is that it will be a unique identifier eventually used
to link together everything to do with a given test method execution —
e.g. for tagging log messages, labelling dispatch queues etc.
Just a refactor.

TODO I should be splitting this up into a commit per method, to make it
clearer
we're assuming that they want these to be the same thing, not obvious
why

TODO change this so that everything takes an explicit queue parameter,
and then go through and find all of the tests where AblyTests.queue is
referred to multiple times and turn them into a variable
This serves as a handy way of knowing when the corresponding dispatch
queue is being created and destroyed, and hence finding out whether
we’re leaking dispatch queues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants